On Tue, 2014-01-21 at 08:58 -0800, Perka Peric wrote:
Hello Caolán, thanks for writing to me.
Yes, I always mark my texts as "Serbian (Cyrillic)" ... but ... LO
(even the latest v4.1.4.2) for Windows doesn't have this [localized
forms for Serbian] functionality. It simply doesn't work in Windows.
I see you develop for Linux, but is there something developers can do
to fix the things for Windows, maybe some other OpenType library?
Yeah, that's right, it's not implemented for Windows. I'll reply to the
development list as well to document what needs to be done.
We're using ScriptShape under windows, I believe to get the desired
functionality we need to bump up to using ScriptShapeOpenType and set
the tagLangSys field to the opentype language tag for the language being
rendered which is available as ImplLayoutArgs::maLanguageTag which is
passed to UniscribeLayout::LayoutText. Then it would probably work out
of the box.
ScriptShapeOpenType and its friends are only in Windows 7+ so we'd
probably also need to GetProcAddress to use it only when it's available
at run time and fall back to ScriptShape if it's not. (see
https://bugs.freedesktop.org/show_bug.cgi?id=55494#c19 by our very own
Fridrich moonlighting over in harfbuzz for a tip on how to do that)
We probably also then need to remove SimpleWinLayout and use
UniscribeLayout for all languages and not just those deemed "complex".
This isn't something I personally plan to work on so its an open Windows
task for anyone to take on.
C.
Context
- Re: Windows OpenType support, Serbian cursive · Caolán McNamara
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.