mirror of https://github.com/buggins/dlangui.git
add missing import
This commit is contained in:
parent
afea75828e
commit
ac7743ad5c
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue