[Libreoffice-bugs] [Bug 108720] Do not render previews of symbol fonts

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 24 20:53:41 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=108720

--- Comment #4 from Caolán McNamara <caolanm at redhat.com> ---
include/svtools/sampletext.hxx isSymbolFont currently takes a const vcl::Font
&rFont and checks its charset and its family name, so I suggest changing
isSymbolFont to take a rtl_TextEncoding eCharSet and OUString familyname
argument instead.

Then where we currently pass in rFont to pass in rFont.GetCharSet(),
rFont.GetFamilyName() and in svx/source/styles/CommonStylePreviewRenderer.cxx
where we now have
if (IsStarSymbol(pFontItem->GetFamilyName()))
change that to
if (isSymbolFont(pFontItem->GetCharSet(), pFontItem->GetFamilyName())
and presumably that should then do the right thing

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170624/0faf7912/attachment.html>


More information about the Libreoffice-bugs mailing list