View previous topic :: View next topic |
Author |
Message |
iandoug l33t
Joined: 11 Feb 2005 Posts: 832 Location: Cape Town, South Africa
|
Posted: Tue Mar 19, 2024 6:37 am Post subject: Colour fonts in LibreOffice and elsewhere |
|
|
Hi
Am trying to make the second font here work in Libreoffice.
https://ufi.web.ox.ac.uk/fonts
The font crashes KFontview. FontForge shows the "fallback" version, while LibreOffice shows the "regular glyph" version (see samples bottom of page here: https://ufi.web.ox.ac.uk/home )
Is this some setting / use flag, or the various program/libraries not supporting this format yet?
Thanks, Ian _________________ Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 324 Location: Naarm/Melbourne, Australia
|
Posted: Wed Mar 20, 2024 6:44 am Post subject: |
|
|
The relevant underlying library in all three cases is FreeType (media-libs/freetype), a font rasterization library (homepage), which can certainly handle OpenType fonts (.otf extension) in general, but not certain OpenType functionality; the FreeType FAQ says:
Quote: | [T]he engine already reads OpenType/CFF files perfectly. What it doesn't do is handling ‘OpenType Layout’ tables.
The predecessor of FreeType 2, the now defunct FreeType 1 series, came with a set of extensions that were used to load and manage OpenType Layout tables. It even had a demonstration program named ftstrtto to show its capabilities. However, this code is no longer maintained, and we strongly advise to not use it. |
Running fc-query(1) on Oxford-Ugaritic-Clay.otf results in output whose "capability" line is:
Quote: | capability: "otlayout:DFLT otlayout:latn otlayout:ugar" |
suggesting "otlayout:ugar" might be at least part of the issue here. If FreeType can't handle that, i can imagine different layers above FreeType (e.g. the Pango library, or applications) responding in differing ways. Including crashing, if kfontview is making bad assumptions regarding the response(s) it, or intervening layers, can potentially get from FreeType.
i'm certainly not an expert here, though, so perhaps others can confirm or debunk my speculations. In the absence of that happening, you could try asking the FreeType community whether the font is actually something that FreeType could work with, or whether it's somehow 'broken'; if the former, you could try e.g. reporting a possible bug in kfontview, and asking the LibreOffice community about its behaviour in this regard. |
|
Back to top |
|
|
iandoug l33t
Joined: 11 Feb 2005 Posts: 832 Location: Cape Town, South Africa
|
Posted: Wed Mar 20, 2024 7:18 am Post subject: |
|
|
Hi
Thanks.
I interrogated Gemini about the issue, best I could figure is that somewhere between freetype, harfbuzz, and Given Application, there are problems.
1. I made an SVG page with text using this font. Firefox can display it, as can Inkscape. Gimp can open it, but loses the gradients.
2. Trying to insert text in Inkscape using the font often results in clipping, depending on the character dimensions. This seems to be a common problem with some fonts in Inkscape.
So I eventually did a work-around ... took screenshots of text in Firefox, trimmed each character in Gimp, and inserted as images in Libreoffice. Not ideal but "works" for now.
Cheers, Ian _________________ Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|