diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2010-12-19 17:01:29 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:08:40 +0300 |
commit | 02671ea910a79f74d360e5ac515c230e86e71eda (patch) | |
tree | f94377ea846ee76a6bf488eaef896d61f80b3edf /qt_tstfrm | |
parent | 30e916c7effefe3f33920a06f5c505c49cccc730 (diff) |
using freetype cache and mmap'ing font file to limit font memory usage.
Diffstat (limited to 'qt_tstfrm')
-rw-r--r-- | qt_tstfrm/tstwidgets.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp index 7525981e63..c7ef09c946 100644 --- a/qt_tstfrm/tstwidgets.cpp +++ b/qt_tstfrm/tstwidgets.cpp @@ -46,9 +46,11 @@ void GLDrawWidget::initializeGL() 3000 * sizeof(yg::gl::Vertex), 5000 * sizeof(unsigned short), 100, - 512, 256, 15)); + 512, 256, 15, + 2000000)); - m_resourceManager->addFont(GetPlatform().ReadPathForFile("dejavusans.ttf").c_str()); +// m_resourceManager->addFont(GetPlatform().ReadPathForFile("dejavusans.ttf").c_str()); + m_resourceManager->addFont(GetPlatform().ReadPathForFile("wqy-microhei.ttf").c_str()); /* m_resourceManager = make_shared_ptr(new yg::ResourceManager( 5000 * sizeof(yg::gl::Vertex), 10000 * sizeof(unsigned short), |