mirror of https://github.com/buggins/dlangui.git
fix build error
This commit is contained in:
parent
d6d84c51b8
commit
65c32cdae5
|
@ -22,26 +22,29 @@ 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;
|
||||||
"Arial": 12,
|
__gshared static this() {
|
||||||
"Times New Roman": 12,
|
STD_FONT_FACES = [
|
||||||
"Courier New": 10,
|
"Arial": 12,
|
||||||
"DejaVu Serif": 10,
|
"Times New Roman": 12,
|
||||||
"DejaVu Sans": 10,
|
"Courier New": 10,
|
||||||
"DejaVu Sans Mono": 10,
|
"DejaVu Serif": 10,
|
||||||
"Liberation Serif": 11,
|
"DejaVu Sans": 10,
|
||||||
"Liberation Sans": 11,
|
"DejaVu Sans Mono": 10,
|
||||||
"Liberation Mono": 11,
|
"Liberation Serif": 11,
|
||||||
"Verdana": 10,
|
"Liberation Sans": 11,
|
||||||
"Menlo": 13,
|
"Liberation Mono": 11,
|
||||||
"Consolas": 12,
|
"Verdana": 10,
|
||||||
"DejaVuSansMono": 10,
|
"Menlo": 13,
|
||||||
"Lucida Sans Typewriter": 10,
|
"Consolas": 12,
|
||||||
"Lucida Console": 12,
|
"DejaVuSansMono": 10,
|
||||||
"FreeMono": 8,
|
"Lucida Sans Typewriter": 10,
|
||||||
"FreeSans": 8,
|
"Lucida Console": 12,
|
||||||
"FreeSerif": 8,
|
"FreeMono": 8,
|
||||||
];
|
"FreeSans": 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