add missing import

This commit is contained in:
Vadim Lopatin 2015-03-27 09:16:05 +03:00
parent afea75828e
commit ac7743ad5c
1 changed files with 13 additions and 14 deletions

View File

@ -1468,7 +1468,7 @@ version (Windows) {
} }
} else { } else {
version(USE_FREETYPE) { import dlangui.graphics.ftfonts;
bool registerFonts(FreeTypeFontManager ft, string path) { bool registerFonts(FreeTypeFontManager ft, string path) {
if (!exists(path) || !isDir(path)) if (!exists(path) || !isDir(path))
return false; return false;
@ -1482,7 +1482,6 @@ version (Windows) {
ft.registerFont(path ~ "DejaVuSansMono-BoldOblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Bold); ft.registerFont(path ~ "DejaVuSansMono-BoldOblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Bold);
return true; return true;
} }
}
/// initialize font manager - default implementation /// initialize font manager - default implementation
/// On win32 - first it tries to init freetype, and falls back to win32 fonts. /// On win32 - first it tries to init freetype, and falls back to win32 fonts.