[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-12-31 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #15 from خالد حسني  ---
(In reply to Thomas Szymczak from comment #14)
> Is this a bug in Firefox or the font used?

Most likely Firefox.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-12-30 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #14 from Thomas Szymczak  ---
Is this a bug in Firefox or the font used?

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-12-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

خالد حسني  changed:

   What|Removed |Added

 Resolution|--- |NOTOURBUG
 Status|NEW |RESOLVED

--- Comment #13 from خالد حسني  ---
The PDF is actually broken, the ToUnicode of the emoji font embedded in the PDF
maps everything to U+FFFD (�), so the text representation is unrecoverable.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-12-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #12 from خالد حسني  ---
This sounds like an encoding issue, possibly the PDF importer is mishandling
surrogate pairs and they end up converted to replacement character which is
often used in encoding errors.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #11 from Thomas Szymczak  ---
(In reply to Kevin Suo from comment #9)
> I am quite sure this is a font substitution issue in the sdext.pdfimport
> filter. What font are you using for the emoji? The pdf says it uses
> CairoFont-0-0 and CairoFont-1-1. When open in Draw, the font name is italic
> due to bug 143095. I don't have CairoFont installed so I don't know whether
> the emoji comes back when you manually set the font to CairoFont.

Are you saying we need to see what happens when we specify the font within the
PDF, or when I change the font after opening it?

Changing the font of the text after I open it doesn't help.

I then explored changing the font of the PDF by specifying it in the HTML. This
has strange behavior. If I switch the HTML to a serif font, the PDF I make by
printing it in Firefox also has a serif font when I open it in my default PDF
viewer (Atril). When I open it in Draw, it looks the same (sans-serif).

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #10 from Thomas Szymczak  ---
Created attachment 183256
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183256=edit
HTML source of emoji test, gzipped to avoid text encoding issues

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

Kevin Suo  changed:

   What|Removed |Added

 CC||suokunl...@126.com

--- Comment #9 from Kevin Suo  ---
I am quite sure this is a font substitution issue in the sdext.pdfimport
filter. What font are you using for the emoji? The pdf says it uses
CairoFont-0-0 and CairoFont-1-1. When open in Draw, the font name is italic due
to bug 143095. I don't have CairoFont installed so I don't know whether the
emoji comes back when you manually set the font to CairoFont.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-15 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

Roman Kuznetsov <79045_79...@mail.ru> changed:

   What|Removed |Added

 CC||79045_79...@mail.ru
 Ever confirmed|0   |1
   Keywords||filter:pdf
 Blocks||99746
 Status|UNCONFIRMED |NEW

--- Comment #8 from Roman Kuznetsov <79045_79...@mail.ru> ---
Confirm the problem in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 55ee3ede2bb0211e895053ed3a54bb1c99cc94ca
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded

Okular opens the PDF file correctly


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=99746
[Bug 99746] [META] PDF import filter in Draw
-- 
You are receiving this mail because:
You are the assignee for the bug.

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #7 from Thomas Szymczak  ---
I was able to reproduce this on another computer with the LibreOffice profile
reset. It was also running LO 7.3.6.2 on Ubuntu. This eliminates the config
files as a cause.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #6 from Thomas Szymczak  ---
Created attachment 183045
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183045=edit
What happens why I open emoji-test.pdf in Draw, then export it as a PDF again.
Now it looks wrong in any viewer.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #5 from Thomas Szymczak  ---
Unfortunately, the HTML file itself got corrupted when I uploaded it. Looks
like I hit an encoding bug while trying to report an encoding bug.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #4 from Thomas Szymczak  ---
Created attachment 183044
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183044=edit
How the file looks when I open it in Atril PDF reader (Correct rendering)

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #3 from Thomas Szymczak  ---
Created attachment 183043
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183043=edit
How the file looks when I open it in Draw

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #2 from Thomas Szymczak  ---
Created attachment 183042
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183042=edit
Then I printed the HTML file to PDF in Firefox, creating this file.

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

[Libreoffice-bugs] [Bug 151525] FILEOPEN: LibreOffice Draw renders emojis from some PDFs as the Unicode Replacement Character '�'

2022-10-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=151525

--- Comment #1 from Thomas Szymczak  ---
Created attachment 183041
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183041=edit
I typed a small HTML to show a Web page with emojis. I used this to create
emoji-test.pdf by opening the HTML file in Firefox and printing it to a file.

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