include/vcl/embeddedfontshelper.hxx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
New commits: commit 9e225cc8a403ec3e2449b187a1bd853942de747f Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sat Aug 9 15:10:08 2025 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Sat Aug 9 14:30:32 2025 +0200 Make some methods private Change-Id: Ia49b32ac7051d272e4d7747ba3b53000f7389bdc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189253 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins diff --git a/include/vcl/embeddedfontshelper.hxx b/include/vcl/embeddedfontshelper.hxx index e61d0823a05b..d744d954e923 100644 --- a/include/vcl/embeddedfontshelper.hxx +++ b/include/vcl/embeddedfontshelper.hxx @@ -28,6 +28,22 @@ class VCL_DLLPUBLIC EmbeddedFontsHelper private: std::vector<std::pair<OUString, OUString>> m_aAccumulatedFonts; + /** + Returns a URL for a file where to store contents of a given temporary font. + The file may or not may not exist yet, and will be cleaned up automatically as appropriate. + Use activateTemporaryFont() to actually enable usage of the font. + + @param fontName name of the font (e.g. 'Times New Roman') + @param extra additional text to use for name (e.g. to distinguish regular from bold, italic,...), "?" for unique + */ + static OUString fileUrlForTemporaryFont(const OUString& fontName, std::u16string_view extra); + + /** + Adds the accumulated fonts to the list of known fonts. The fonts are used only until application + exit. + */ + void activateFonts(); + public: /// Specification of what kind of operation is allowed when embedding a font enum class FontRights @@ -57,22 +73,6 @@ public: std::vector< unsigned char > const & key, bool eot = false, bool bSubsetted = false); - /** - Returns a URL for a file where to store contents of a given temporary font. - The file may or not may not exist yet, and will be cleaned up automatically as appropriate. - Use activateTemporaryFont() to actually enable usage of the font. - - @param fontName name of the font (e.g. 'Times New Roman') - @param extra additional text to use for name (e.g. to distinguish regular from bold, italic,...), "?" for unique - */ - static OUString fileUrlForTemporaryFont( const OUString& fontName, std::u16string_view extra ); - - /** - Adds the accumulated fonts to the list of known fonts. The fonts are used only until application - exit. - */ - void activateFonts(); - /** Returns if the restrictions specified in the font (if present) allow embedding the font for a particular purpose.