Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


On Fri, 2019-03-29 at 09:37 -0700, I Write wrote:
In LibreOffice, when Tools->Options->"Fonts Lists"->"Show preview of
fonts" is checked, a sample text is displayed to the right of some
fonts that contain non-latin glyphs (for example, Malgun Gothic shows
Korean characters). I am working with a font for a new writing
system/language (added to Unicode 7.0) so there isn't many
applications that support the writing system. Where can I find the
algorithm in Libreoffice that determines what text to display
(preview) for a non-latin font, so that I can modified it for my
language?

This is mostly svtools/source/misc/sampletext.cxx
(
https://cgit.freedesktop.org/libreoffice/core/tree/svtools/source/misc/sampletext.cxx
)

makeShortRepresentativeTextForScript makes the short text which is put
beside the fontname in the font dropdown. While
makeRepresentativeTextForLanguage is the long text shown in font
preview

In your case I expect the font enters
getScript(const vcl::FontCapabilities &rFontCapabilities) and either...

a) the target script of your font can't be guessed,
b) its guessed correct, but makeShortRepresentativeTextForScript has no
entry for the script

Is there a way to incorporate this for future releases of
Libreoffice?

Sure, submit a patch with your additions like this: 
https://wiki.documentfoundation.org/Development/gerrit/SubmitPatch
and feel free to put me on cc on the gerrit review


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.