Bug 157924 - It opens almost all documents with distorted fonts
Summary: It opens almost all documents with distorted fonts
Status: CLOSED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-25 21:10 UTC by Max
Modified: 2023-11-23 21:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Видно що деякі літери не відповідають шрифту. (203.00 KB, image/png)
2023-10-25 21:11 UTC, Max
Details
The first file in .doc (25.00 KB, application/msword)
2023-11-02 21:44 UTC, Max
Details
The second file is in .pdf (93.02 KB, application/pdf)
2023-11-02 21:45 UTC, Max
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2023-10-25 21:10:34 UTC
Description:
When opening the document, the text has distorted fonts. But it distorts not all letters, but only some.

Steps to Reproduce:
1.Відкриваю документ
2. І бачу як спотворені деякі літери
[url=https://postimg.cc/svvQW52c][img]https://i.postimg.cc/svvQW52c/Screenshot-20231025-235221.png[/img][/url]

Actual Results:
When opening the document, some letters are distorted.

Expected Results:
When opening the document, some letters are distorted.


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: uk
Module: SpreadsheetDocument
[Information guessed from browser]
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-87-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-2400 CPU @ 3.10GHz
Memory: 15.6 ГіБ of RAM
Graphics Processor: GeForce GT 640/PCIe/SSE2
Comment 1 Max 2023-10-25 21:11:24 UTC
Created attachment 190422 [details]
Видно що деякі літери не відповідають шрифту.

When opening the document, some letters are distorted.
Comment 2 Buovjaga 2023-10-31 17:48:02 UTC
Is this only affecting Microsoft fonts? Which package did you use to install the Microsoft fonts?

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 3 Max 2023-11-01 21:53:00 UTC
Hi
I noticed that this problem appears with the "Times New Roman" font. Capital letters and numbers are distorted regardless of the font size.
Im used ttf-mscorefonts-installer

Доброго дня.
Помітив, що дана проблема проявляється з шрифтом "Times New Roman". Спотворюються великі літери і цифри не залежно від розміру шрифта.
Я використовую ttf-mscorefonts-installer
Comment 4 QA Administrators 2023-11-02 03:16:02 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2023-11-02 10:18:00 UTC
Please attach an example ODT (short) and an exported PDF.
Comment 6 Max 2023-11-02 21:44:30 UTC
Created attachment 190627 [details]
The first file in .doc
Comment 7 Max 2023-11-02 21:45:22 UTC
Created attachment 190628 [details]
The second file is in .pdf
Comment 8 Max 2023-11-02 21:47:20 UTC
I have attached files in two formats. I replaced only the surnames with asterisks.

Я додав файли у двох форматах. Зірочками тільки прізвища замінив.
Comment 9 Stéphane Guillou (stragu) 2023-11-09 00:34:58 UTC
Not reproduced with provided DOC in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ff3fb42b48c70ba5788507a6177bf0a9f3b50fdb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Nor in 7.6.3.1. I've got Times New Roman installed. Capitals and numbers don't look like the PDF or the screenshot.

The PDF you attached contins the font Arachnid:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
BAAAAA+TimesNewRomanPS-BoldMT        TrueType          WinAnsi          yes yes yes    241  0
CAAAAA+arachnid                      TrueType          WinAnsi          yes yes yes    236  0

This is what you are seeing: https://www.ffonts.net/arachnid.font

If I export a PDF file, I get:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
BAAAAA+TimesNewRomanPS-BoldMT        TrueType          WinAnsi          yes yes yes    286  0
CAAAAA+TimesNewRomanPSMT             TrueType          WinAnsi          yes yes yes    281  0

Is it possible that you don't have the TimesNewRomanPSMT font installed, and LO somehow uses Arachnid as a fallback font? Maybe try and apply the same font to the whole document?
Comment 10 Max 2023-11-09 21:31:41 UTC
That's what the terminal says about the TimesNewRoman font, and the Arachnid font really stuck there. Please tell me what to do?

fc-list | grep Times | grep ".ttf"
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf: Times New Roman:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Italic.ttf: Times New Roman:style=Italic,cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
/usr/share/fonts/truetype/msttcorefonts/timesbd.ttf: Times New Roman:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiona,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
/usr/local/share/fonts/a/arachnid___arachnid___arachnid.ttf: arachnid,Times New Roman:style=arachnid,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta,Regular
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold_Italic.ttf: Times New Roman:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf: Times New Roman:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiona,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
/usr/share/fonts/truetype/msttcorefonts/timesi.ttf: Times New Roman:style=Italic,cursiva,kurzíva,kursiv,Πλάγια,Kursivoitu,Italique,Dőlt,Corsivo,Cursief,kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
/usr/share/fonts/truetype/msttcorefonts/timesbi.ttf: Times New Roman:style=Bold Italic,Negreta cursiva,tučné kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito Itálico,Полужирный Курсив,Tučná kurzíva,Fet Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
/usr/share/fonts/truetype/msttcorefonts/times.ttf: Times New Roman:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
Comment 11 Max 2023-11-09 21:42:00 UTC
sudo rm arachnid___arachnid___arachnid.ttf
Comment 12 Stéphane Guillou (stragu) 2023-11-23 21:28:20 UTC
(In reply to Max from comment #10)
> /usr/local/share/fonts/a/arachnid___arachnid___arachnid.ttf: arachnid,Times
> New
> Roman:style=arachnid,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,
> Normale,Standaard,Normalny,Обычный,Normálne,Navadno,thường,Arrunta,Regular
So your arachnid somehow had the font family "Times New Roman" as well.
Removing that font would be the solution, yes.
Closing as "not our bug".
Thanks!