mirror of https://github.com/buggins/dlangui.git
fix build error
This commit is contained in:
parent
d6d84c51b8
commit
65c32cdae5
|
|
@ -22,7 +22,9 @@ import std.file;
|
||||||
import std.string;
|
import std.string;
|
||||||
import std.utf;
|
import std.utf;
|
||||||
|
|
||||||
__gshared int[string] STD_FONT_FACES = [
|
__gshared int[string] STD_FONT_FACES;
|
||||||
|
__gshared static this() {
|
||||||
|
STD_FONT_FACES = [
|
||||||
"Arial": 12,
|
"Arial": 12,
|
||||||
"Times New Roman": 12,
|
"Times New Roman": 12,
|
||||||
"Courier New": 10,
|
"Courier New": 10,
|
||||||
|
|
@ -41,7 +43,8 @@ __gshared int[string] STD_FONT_FACES = [
|
||||||
"FreeMono": 8,
|
"FreeMono": 8,
|
||||||
"FreeSans": 8,
|
"FreeSans": 8,
|
||||||
"FreeSerif": 8,
|
"FreeSerif": 8,
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
int stdFontFacePriority(string face) {
|
int stdFontFacePriority(string face) {
|
||||||
if (auto p = (face in STD_FONT_FACES))
|
if (auto p = (face in STD_FONT_FACES))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue