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

            Bug ID: 171559
           Summary: WRITER: Embedded TTC CJK font is present in ODT, but
                    Japanese text still uses Chinese glyph forms on
                    systems without the font installed
           Product: LibreOffice
           Version: 26.2.2.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When using an embedded TTC CJK font in Writer, language-specific glyph
selection is not preserved on a system where the font is not installed locally.


Steps to Reproduce:
1. Install a TTC CJK font. In my case, I used Source Han Serif /
SourceHanSerif-Regular.ttc.  
   (Please replace this filename with the exact one if needed.)
2. In LibreOffice Writer, create a new ODT document.
3. Type the same Han text twice: 深海
   - one run/paragraph is assigned Chinese language
   - another run/paragraph is assigned Japanese language
4. Confirm that the text language property is set correctly for each
run/paragraph.
5. Set the font for both runs/paragraphs to the embedded TTC font.
6. Enable embedding of fonts into the document and save the file as ODT.
7. Verify that the ODT package actually contains the embedded font data.
8. Open the ODT on another computer where this font is NOT installed.


Actual Results:
The embedded font is present in the ODT file, but the Japanese text does not
use Japanese glyph variants.
It is still rendered with Chinese glyph forms, even though the text language is
explicitly set to Japanese.


Expected Results:
When the document is opened on a system without the font installed, Writer
should use the embedded font and still respect the assigned text language.
The run/paragraph marked as Japanese should use Japanese glyph variants, while
the one marked as Chinese should use Chinese glyph variants.



Reproducible: Always


User Profile Reset: Yes

Additional Info:
- The text language property was checked and is correct.
- This is not about missing font embedding: the font data is present inside the
ODT package.
- The problem appears specifically when relying on the embedded TTC font on a
machine where the font is not installed.
- The test string was 深海. The Unicode text content is the same; only the
assigned language differs.
- Chinese and Japanese IMEs were used for input, but the important point is
that the text language attribute in Writer was confirmed to be correct.
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes

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

Reply via email to