fix build error

This commit is contained in:
Vadim Lopatin 2016-01-21 11:59:13 +03:00
parent d6d84c51b8
commit 65c32cdae5
1 changed files with 23 additions and 20 deletions

View File

@ -22,7 +22,9 @@ import std.file;
import std.string;
import std.utf;
__gshared int[string] STD_FONT_FACES = [
__gshared int[string] STD_FONT_FACES;
__gshared static this() {
STD_FONT_FACES = [
"Arial": 12,
"Times New Roman": 12,
"Courier New": 10,
@ -42,6 +44,7 @@ __gshared int[string] STD_FONT_FACES = [
"FreeSans": 8,
"FreeSerif": 8,
];
}
int stdFontFacePriority(string face) {
if (auto p = (face in STD_FONT_FACES))