adding freetype dll for win32

This commit is contained in:
Vadim Lopatin 2014-03-12 11:15:22 +04:00
parent 2a50741e52
commit 3491c35d89
3 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -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() {}
} }

View File

@ -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();