diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-02-01 03:18:10 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:11:25 +0300 |
commit | 99ab5b5443f1e3f3cb1d28b0ece950e81aa54a0a (patch) | |
tree | bd580f0938aee00b793d1033d57e8eed8561e095 /qt_tstfrm | |
parent | f420b73f03cc0eb55898bcc0975849208b069935 (diff) |
added per-unicode-block font support. much less "unknown symbols" are drawn.
Diffstat (limited to 'qt_tstfrm')
-rw-r--r-- | qt_tstfrm/tstwidgets.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp index a4d0a1ee83..ad56b5484e 100644 --- a/qt_tstfrm/tstwidgets.cpp +++ b/qt_tstfrm/tstwidgets.cpp @@ -50,10 +50,9 @@ void GLDrawWidget::initializeGL() 10 * sizeof(unsigned short), 30, 512, 256, 15, - 2000000)); + GetPlatform().ReadPathForFile("unicode_blocks.txt").c_str(), 2000000)); -// m_resourceManager->addFont(GetPlatform().ReadPathForFile("dejavusans.ttf").c_str()); - m_resourceManager->addFont(GetPlatform().ReadPathForFile("wqy-microhei.ttf").c_str()); + m_resourceManager->addFonts(GetPlatform().GetFontNames()); m_frameBuffer = make_shared_ptr(new yg::gl::FrameBuffer()); |