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

            Bug ID: 159671
           Summary: Vertical metrics not loaded properly from .ttc files
           Product: LibreOffice
           Version: 7.6.4.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: suteteco...@mutsuba.info

Description:
I have five fonts, in which some vertical alternates are identical across all
fonts but have different vertical metrics in one of them (proportional font).
I have generated them as one .ttc file with the most recent version of
FontForge.

When typing those vertical alternates with the proportional font, LibreOffice
uses the vertical metrics of the other fonts. This only happens if the vector
data is the same (see below for details), and only for vertical metrics (not
horizontal ones).

Steps to Reproduce:
1.Set writing to vertical.
2.Change font to that in which vertical metrics is different.
2.Type () (CJK double-byte punctuation)

Actual Results:
( displays as intended, but ) does not.
 )gets displayed with the metrics of the other fonts (fixed width) of the ttc.

Expected Results:
The correct vertical metrics should be loaded.


Reproducible: Always


User Profile Reset: No

Additional Info:
Why these two characters behave differently is I think LO checks the vector
data to decide if it needs to load the different vertical metrics.
( has different vector data and different metrics,
 ) has the same vector data and different metrics.

Inkscape and GIMP are not affected by this bug.

I used the ttx command from fonttools to inspect the .ttc file, and in the
vertical metrics table (vmtx) there are two entries:

    <mtx name="uniFE37" height="4096" tsb="2737"/>
    <mtx name="uniFE37#1" height="2048" tsb="688"/>

In the character map table (cmap) of the different font, U+FE37 is properly
linked to the alternate vertical metrics:

        <map code="0xfe36" name="uniFE36"/><!-- PRESENTATION FORM FOR VERTICAL
RIGHT PARENTHESIS -->
        <map code="0xfe37" name="uniFE37#1"/><!-- PRESENTATION FORM FOR
VERTICAL LEFT CURLY BRACKET -->
        <map code="0xfe38" name="uniFE38"/><!-- PRESENTATION FORM FOR VERTICAL
RIGHT CURLY BRACKET -->

So the problem is not the ttc.

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

Reply via email to