diff options
author | Akash Jain <akash96j@gmail.com> | 2016-08-17 21:31:22 +0530 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-10-18 20:41:30 +0200 |
commit | 5e65efcaa38ea5fbe655a18082a3ba7c8cf7d5fe (patch) | |
tree | f4d343cd38c51bf3ed86561aef951b3abf91db0f /vcl/quartz | |
parent | 3eda74cf7e9d23cc08f07c38f3bee04b565ff9db (diff) |
GSoC: Speed up CommonSalLayout by caching hb_face
Cache hb_face so it is not created again and again.
Switch from GDI to DirectWrite on Windows to obtain SFNT table data.
Change-Id: I9c532cd72e1f6b57313f3b7d42a6b9b0633eb0ef
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/ctfonts.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 28be80b0b08b..f183c10c3631 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -50,6 +50,7 @@ CoreTextStyle::CoreTextStyle( const FontSelectPattern& rFSD ) , mfFontRotation( 0.0 ) , maFontSelData( rFSD ) , mpStyleDict( nullptr ) + , mpHbFace( nullptr ) { const FontSelectPattern* const pReqFont = &rFSD; @@ -116,6 +117,8 @@ CoreTextStyle::~CoreTextStyle() { if( mpStyleDict ) CFRelease( mpStyleDict ); + if( mpHbFace ) + hb_face_destroy( mpHbFace ); } void CoreTextStyle::GetFontMetric( ImplFontMetricDataRef& rxFontMetric ) const |