Bug 160152 - High-Unicode-number characters are not handled in GDI metafile images (font does not cover/contain character)
Summary: High-Unicode-number characters are not handled in GDI metafile images (font d...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-11 14:39 UTC by Piotr Osada
Modified: 2024-03-12 16:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc source.png (37.28 KB, image/png)
2024-03-11 14:43 UTC, Piotr Osada
Details
GDI pasted into Impress (25.39 KB, image/png)
2024-03-11 14:43 UTC, Piotr Osada
Details
GDI pasted into Writer (123.53 KB, image/png)
2024-03-11 14:43 UTC, Piotr Osada
Details
Spreadsheet with Unicode “🡱” (U+1F871) (20.82 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-03-11 14:46 UTC, Piotr Osada
Details
LO24.2 Writer GDI result (41.71 KB, application/vnd.oasis.opendocument.text)
2024-03-11 14:47 UTC, Piotr Osada
Details
After set Arial font again.png (60.51 KB, image/png)
2024-03-11 21:23 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2024-03-11 14:39:54 UTC
Description:
In GDI graphics, some characters are broken (e.g. when copy and paste cells with  Unicode Character “🡱” (U+1F871)).

https://www.compart.com/en/unicode/U+1F871


Steps to Reproduce:
1. In Calc copy cell containing character: “🡱” (U+1F871).
2. Paste as GDI into Writer or Impress.

Actual Results:
Unicode Character “🡱” (U+1F871) appears as a question mark “?” (U+003F).

Expected Results:
Unicode “🡱” (U+1F871) should be displayed as Unicode “🡱” (U+1F871).


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: threaded
Comment 1 Piotr Osada 2024-03-11 14:43:01 UTC
Created attachment 193060 [details]
Calc source.png
Comment 2 Piotr Osada 2024-03-11 14:43:21 UTC
Created attachment 193061 [details]
GDI pasted into Impress
Comment 3 Piotr Osada 2024-03-11 14:43:41 UTC
Created attachment 193062 [details]
GDI pasted into Writer
Comment 4 Piotr Osada 2024-03-11 14:46:41 UTC
Created attachment 193063 [details]
Spreadsheet with Unicode “🡱” (U+1F871)
Comment 5 Piotr Osada 2024-03-11 14:47:57 UTC
Created attachment 193064 [details]
LO24.2 Writer GDI result
Comment 6 m_a_riosv 2024-03-11 19:21:06 UTC
Please what are the source and destination font?
Comment 7 Piotr Osada 2024-03-11 21:23:06 UTC
Created attachment 193068 [details]
After set Arial font again.png

(In reply to m_a_riosv from comment #6)
> Please what are the source and destination font?

The font was Arial. The original source of this table was edited many times through several months by Calc and Excel. And now I don't remember how, so I can't report how to reproduce such a table.

When "overwriting" font to Arial, it works fine. And also works good in:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: pl-PL
Calc: threaded
Comment 8 m_a_riosv 2024-03-11 22:11:32 UTC
So it is an issue, about using a font with the character.

Closed as not a bug, please if you are not agree, reopen it.
Comment 9 V Stuart Foote 2024-03-12 13:00:40 UTC
also, the "question mark" (U+003F) in OP is not the character--just the Unicode glyph for the font for an undefined/not-covered character in the font.

LO will let you identify the actual code point for the character(s) that is not covered by the font with the <Alt>+x Unicode toggle.

When it occurs, as noted you can change the font by selecting the marked characters and making a font selection from drop list to one that covers the code point. Likewise also may work to remove the direct formatting assignment of a font and allow system font fallback to locate a font with coverage.