mirror of https://github.com/buggins/dlangui.git
adding freetype dll for win32
This commit is contained in:
parent
2a50741e52
commit
3491c35d89
Binary file not shown.
|
@ -30,5 +30,10 @@ class FreeTypeFontManager : FontManager {
|
||||||
override void cleanup() {
|
override void cleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).
|
||||||
|
bool registerFont(string filename, FontFamily family = FontFamily.SansSerif, string face = null, bool italic = false, int weight = 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
~this() {}
|
~this() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -417,6 +417,10 @@ int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int
|
||||||
Win32FontManager fontMan = new Win32FontManager();
|
Win32FontManager fontMan = new Win32FontManager();
|
||||||
FontManager.instance = fontMan;
|
FontManager.instance = fontMan;
|
||||||
|
|
||||||
|
/// testing freetype font manager
|
||||||
|
import dlangui.graphics.ftfonts;
|
||||||
|
FreeTypeFontManager ftfontMan = new FreeTypeFontManager();
|
||||||
|
|
||||||
version (USE_OPENGL) {
|
version (USE_OPENGL) {
|
||||||
import derelict.opengl3.gl3;
|
import derelict.opengl3.gl3;
|
||||||
DerelictGL3.load();
|
DerelictGL3.load();
|
||||||
|
|
Loading…
Reference in New Issue