diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-24 08:54:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-24 10:06:26 +0000 |
commit | b30e298c3f8d9202a14e0ca08120ccde31e413ee (patch) | |
tree | ca6cb130002c55994838cdc6cc1816973c276cb6 /vcl/inc | |
parent | dcbfa4be9bd95ad035770190abc625b64efd462f (diff) |
move the FontConfigFontOptions out of FreetypeFontInstance now
Change-Id: Ic6ff21533a53df16fed4ee086f78ff368cb23afd
Reviewed-on: https://gerrit.libreoffice.org/31130
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/cairotextrender.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/unx/fc_fontoptions.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/unx/fontmanager.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 4 |
4 files changed, 2 insertions, 8 deletions
diff --git a/vcl/inc/unx/cairotextrender.hxx b/vcl/inc/unx/cairotextrender.hxx index 0735d05979e6..1aeaf06ae474 100644 --- a/vcl/inc/unx/cairotextrender.hxx +++ b/vcl/inc/unx/cairotextrender.hxx @@ -26,7 +26,6 @@ #include <deque> -class FontConfigFontOptions; class FreetypeFont; class GlyphCache; typedef struct _cairo cairo_t; @@ -95,8 +94,6 @@ public: #endif }; -FontConfigFontOptions* GetFCFontOptions( const FontAttributes& rFontAttributes, int nSize); - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/unx/fc_fontoptions.hxx b/vcl/inc/unx/fc_fontoptions.hxx index 48661def39a2..3c346107f260 100644 --- a/vcl/inc/unx/fc_fontoptions.hxx +++ b/vcl/inc/unx/fc_fontoptions.hxx @@ -53,6 +53,7 @@ public: bool DontUseHinting() const { return (meHinting == FontHinting::No) || (GetHintStyle() == FontHintStyle::NONE); } void SyncPattern(const OString& rFileName, int nFontFace, bool bEmbolden); FcPattern* GetPattern() const; + static void cairo_font_options_substitute(FcPattern* pPattern); private: FcPattern* mpPattern; }; diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx index 057436a5d6a8..7f0e057addf7 100644 --- a/vcl/inc/unx/fontmanager.hxx +++ b/vcl/inc/unx/fontmanager.hxx @@ -492,7 +492,7 @@ public: in different fonts in e.g. english and japanese */ void matchFont( FastPrintFontInfo& rInfo, const css::lang::Locale& rLocale ); - static FontConfigFontOptions* getFontOptions( const FastPrintFontInfo&, int nSize, void (*subcallback)(void*)); + static FontConfigFontOptions* getFontOptions( const FastPrintFontInfo&, int nSize); void Substitute( FontSelectPattern &rPattern, OUString& rMissingCodes ); diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 9d3f011595b3..ac52a6a0d9a0 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -252,13 +252,9 @@ public: virtual ~FreetypeFontInstance() override; void SetFreetypeFont(FreetypeFont* p); - void HandleFontOptions(); private: FreetypeFont* mpFreetypeFont; - std::shared_ptr<FontConfigFontOptions> mxFontOptions; - bool mbGotFontOptions; - }; class VCL_DLLPUBLIC ServerFontLayout : public GenericSalLayout |