mirror of https://github.com/buggins/dlangui.git
add missing import
This commit is contained in:
parent
ac7743ad5c
commit
740857d7bd
|
@ -1470,6 +1470,7 @@ version (Windows) {
|
||||||
} else {
|
} else {
|
||||||
import dlangui.graphics.ftfonts;
|
import dlangui.graphics.ftfonts;
|
||||||
bool registerFonts(FreeTypeFontManager ft, string path) {
|
bool registerFonts(FreeTypeFontManager ft, string path) {
|
||||||
|
import std.file;
|
||||||
if (!exists(path) || !isDir(path))
|
if (!exists(path) || !isDir(path))
|
||||||
return false;
|
return false;
|
||||||
ft.registerFont(path ~ "DejaVuSans.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Normal);
|
ft.registerFont(path ~ "DejaVuSans.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Normal);
|
||||||
|
|
Loading…
Reference in New Issue