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

--- Comment #96 from Michael H <[email protected]> ---
Opentype vs OpenDocument.

(I frequently misquote which spec I'm referring to at times, and dealing with
fonts dips into both. )

Here's a more technical peak at random pieces of my work process that may help
fill in my suggestions and claims. 

Here is the tabular data I compiled while reverse engineering Opendocument XML
and then overlaying Opentype feature tags that Harfbuzz might support, which
the LibreOffice interface only supports through the font name. I did not keep
track of success/failure for each opentype tag.  Some opentype features are
supported, while some produce not discernible change in the resulting .odt
file. 

https://docs.google.com/spreadsheets/d/1i7wKEsOSfxmw1h4AQyLOrugCgS7gqUZ055TJKmvIXfk/edit?usp=sharing


Note the Columns AVWT AVXT and AVZT represent western, complex (South Asian),
and chinese (CJK) typography features. Other than classifying the complex and
Eastern feature tags, I didn't do much testing.  

The other tabs are classifications of sections in a .fodt file header before
the body text which affect text styles, and my limited probably inaccurate
notes toward what each parameter allows. 

But this file is my reference I use to figure out how to piece together
rendering good typography from feature rich static opentype fonts in
LibreOffice via the .fodt XML file method. 


--------------
And this is my source for the opentype tag list, (although I was using a
2013ish edition from microsoft when I did this work roughly 2018.) 

https://learn.microsoft.com/es-es/typography/opentype/spec/features_ae

---------
And this is my reference for font data ... the data tab on this web app
provides to me the details that go into the values above. 

Specifically I allude to usWeightClass and usWidthClass in the OS/2 table as a
replacement for longer text names (fontSubFamily, postScriptName, or UniqueID)
found in the name table. I haven't run into trouble with the weight, but
honestly I haven't done much with the width class because it requires adjusting
how the XML deals with the fonts.  I believe it's a parallel to usWeightClass
in the way it would be implemented.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to