Bug 127922 - 'Droid Sans Thai' font shows numeric characters incorrectly.
Summary: 'Droid Sans Thai' font shows numeric characters incorrectly.
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Rendering
  Show dependency treegraph
 
Reported: 2019-10-02 10:23 UTC by Nukool Chompuparn
Modified: 2022-08-23 19:49 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Cell B2, B5 and B6 with 'Droid Sans Thai' font, are correct. Cell B3, B4 and B7 with 'Droid Sans Thai' font, are incorrect. (222.33 KB, image/jpeg)
2019-10-02 10:32 UTC, Nukool Chompuparn
Details
I have made a U-turn to 6.3.1.2-2, cells B2, B3, B4, B5, B6 and B7 show normal numeric characters. (236.15 KB, image/jpeg)
2019-10-03 07:27 UTC, Nukool Chompuparn
Details
In 6.3.1.2-2, it is normal. But in 6.3.2.2-2 it was like in previous attachment. (12.78 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-07 03:15 UTC, Nukool Chompuparn
Details
6.3.3.2 is not ok. (140.25 KB, image/jpeg)
2019-11-09 06:43 UTC, Nukool Chompuparn
Details
Language settings (87.45 KB, image/jpeg)
2019-11-23 04:19 UTC, Nukool Chompuparn
Details
Format cells : Font (69.05 KB, image/jpeg)
2019-11-23 04:19 UTC, Nukool Chompuparn
Details
6.3.4.2 (162.49 KB, application/vnd.oasis.opendocument.text)
2019-12-23 06:44 UTC, Nukool Chompuparn
Details
Bug127922 on writer (107.30 KB, image/png)
2020-01-17 11:18 UTC, Hiunn-hué
Details
No glyph for 0-9 digits in Noto Sans Lao font (7.36 KB, image/png)
2020-02-18 03:26 UTC, Ming Hua
Details
The problem still exists in 6.4.4.2. (210.45 KB, image/png)
2020-05-27 06:16 UTC, Nukool Chompuparn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nukool Chompuparn 2019-10-02 10:23:23 UTC
Description:
'Droid Sans Thai' font shows numeric characters incorrectly.

Steps to Reproduce:
1. Cell with alpha-numeric content, it happens when begin or end with numeric characters.
2. It happens on every cell with numeric content.
3.

Actual Results:
Numeric characters show incorrectly.

Expected Results:
It did not occur in version 6.3.1.2.


Reproducible: Always


User Profile Reset: No



Additional Info:
It did not occur in version 6.3.1.2.
Comment 1 Nukool Chompuparn 2019-10-02 10:32:28 UTC
Created attachment 154694 [details]
Cell B2, B5 and B6 with 'Droid Sans Thai' font, are correct. Cell B3, B4 and B7 with 'Droid Sans Thai' font, are incorrect.

Cell B2, B5 and B6 with 'Droid Sans Thai' font, are correct.
Cell B3, B4 and B7 with 'Droid Sans Thai' font, are incorrect.

Cell B3 & B4 should be like cell B9 & B10 or B15 & B16 in other font names.
Cell B7 should be like cell B13 or B19 in other font names.
Comment 2 Nukool Chompuparn 2019-10-03 07:27:54 UTC
Created attachment 154718 [details]
I have made a U-turn to 6.3.1.2-2, cells B2, B3, B4, B5, B6 and B7 show normal numeric characters.
Comment 3 Xisco Faulí 2019-10-04 13:44:08 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 4 Nukool Chompuparn 2019-10-07 03:15:48 UTC
Created attachment 154788 [details]
In 6.3.1.2-2, it is normal. But in 6.3.2.2-2 it was like in previous attachment.
Comment 5 BogdanB 2019-10-09 06:43:04 UTC
It's ok on

Version: 6.3.2.2 (x64)
Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: ro-RO (ro_RO); UI-Language: en-US
Calc: threaded
Comment 6 Nukool Chompuparn 2019-10-09 08:54:45 UTC
(In reply to BogdanB from comment #5)
> It's ok on
> 
> Version: 6.3.2.2 (x64)
> Build ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
> CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
> Locale: ro-RO (ro_RO); UI-Language: en-US
> Calc: threaded

FYI please,
I am using Fedora 30 Workstation KDE of Fedora from Spins.
Comment 7 Nukool Chompuparn 2019-11-09 06:43:23 UTC
Created attachment 155652 [details]
6.3.3.2 is not ok.

I have not tried 6.3.2 yet.
But it happens in 6.3.3.2 again.
Comment 8 Kevin Suo 2019-11-22 12:25:49 UTC
Nukool Chompuparn: would you check and see whether this is a duplicate of bug 126248?
Comment 9 Nukool Chompuparn 2019-11-23 04:17:13 UTC
(In reply to Kevin Suo from comment #8)
> Nukool Chompuparn: would you check and see whether this is a duplicate of
> bug 126248?

Dear Kevin,

Sorry, I think it is different. Please see my Thai language settings from images attached right after this.
Comment 10 Nukool Chompuparn 2019-11-23 04:19:04 UTC
Created attachment 156053 [details]
Language settings
Comment 11 Nukool Chompuparn 2019-11-23 04:19:44 UTC
Created attachment 156054 [details]
Format cells : Font
Comment 12 Ming Hua 2019-11-23 07:10:58 UTC
As the reporter of bug 126248, I was looking into this bug to see if they are related, but I have no experience in Thai or Thai fonts.

After downloading Droid Sans Thai font from Internet (TTF format, 35584 bytes), I tried to preview it on Windows, and noticed that it doesn't show the same numeric characters as Nukool's "correct" screenshot.

@Nukool: Would you please clarify where is your Droid Sans Thai font from? (Fedora package?)  And can you attach the font or provide a download link if possible?
Comment 13 Nukool Chompuparn 2019-12-23 06:38:42 UTC
(In reply to Ming Hua from comment #12)
> As the reporter of bug 126248, I was looking into this bug to see if they
> are related, but I have no experience in Thai or Thai fonts.
> 
> After downloading Droid Sans Thai font from Internet (TTF format, 35584
> bytes), I tried to preview it on Windows, and noticed that it doesn't show
> the same numeric characters as Nukool's "correct" screenshot.
> 
> @Nukool: Would you please clarify where is your Droid Sans Thai font from?
> (Fedora package?)  And can you attach the font or provide a download link if
> possible?

Yes, it is from Fedora 31 for I didn't download or install it.

Today I have installed this version from Flatpak,
Version: 6.3.4.2
Build ID: 60da17e045e08f1793c57c00ba83cdfce946d0aa
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Flatpak
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

It's still the same. Please see attached image.
Comment 14 Nukool Chompuparn 2019-12-23 06:44:06 UTC
Created attachment 156739 [details]
6.3.4.2
Comment 15 Kevin Suo 2020-01-15 11:28:20 UTC
It is very likely that this is a duplicate of bug 126248, which in should affect both CJK and COMPLEX languages. 

Bug 126248 is already fixed on master, it is backporting to version 6.4 and 6.3.
Comment 16 Hiunn-hué 2020-01-17 11:16:52 UTC
Also reproduced on Writer.


Step: 
 1. Open Writer
 2. Enter some numbers
 3. Set the font to ...
    Noto Sans Gothic, 
    Noto Sans Hebrew, 
    Noto Sans Lao,
    Noto Sans Thai ... etc.


Env:

Version: 6.5.0.0.alpha0+
Build ID: 0322a41224a7264bbe03a068647ab093bcc88f90
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-12-23_08:08:16
Locale: en-US (zh_TW.UTF-8); UI-Language: en-US

and 

Version: 6.4.0.1
Build ID: 1b6477b31f0334bd8620a96f0aeeb449b587be9f
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: zh-TW (zh_TW.UTF-8); UI-Language: en-US
Comment 17 Hiunn-hué 2020-01-17 11:18:28 UTC
Created attachment 157217 [details]
Bug127922 on writer
Comment 18 Xisco Faulí 2020-02-17 14:48:50 UTC
Moving to NEW based on comment 16
Comment 19 Ming Hua 2020-02-18 03:26:01 UTC
Created attachment 157965 [details]
No glyph for 0-9 digits in Noto Sans Lao font

(In reply to Hiunn-hué from comment #16)
> Also reproduced on Writer.
> 
> 
> Step: 
>  1. Open Writer
>  2. Enter some numbers
>  3. Set the font to ...
>     Noto Sans Gothic, 
>     Noto Sans Hebrew, 
>     Noto Sans Lao,
>     Noto Sans Thai ... etc.
I'm honestly confused about what you mean by "reproduced", what exactly is the expected result here?

As I alluded to earlier in comment #12, I was suspecting that "Droid Sans Thai" font doesn't contain glyphs for 0-9 digits at all.  But I didn't bother to download and extract a Fedora package and test.

But I have Noto Sans Lao font installed on my Windows, so it's easy to test.  And as the attached screenshot (from Windows font previewing program) shows, Noto Sans Lao doesn't have any glyph for numbers.  Neither does Noto Sans Hebrew.  I don't have Gothic or Thai installed.

I think what you see is simply the numbers in the fallback font, whatever it is on your system.
Comment 20 Nukool Chompuparn 2020-05-27 06:13:56 UTC
(In reply to Ming Hua from comment #12)
> As the reporter of bug 126248, I was looking into this bug to see if they
> are related, but I have no experience in Thai or Thai fonts.
> 
> After downloading Droid Sans Thai font from Internet (TTF format, 35584
> bytes), I tried to preview it on Windows, and noticed that it doesn't show
> the same numeric characters as Nukool's "correct" screenshot.
> 
> @Nukool: Would you please clarify where is your Droid Sans Thai font from?
> (Fedora package?)  And can you attach the font or provide a download link if
> possible?

Sorry for a very late reply, Droid Sans Thai is from Fedora Workstation.

F.Y.I.
Now I have moved from Fedora 32 KDE Desktop Spin to Fedora 32 Cinnamon Desktop Spin. The problem still exists in 6.4.4.2 as well, please see attachment.
Comment 21 Nukool Chompuparn 2020-05-27 06:16:40 UTC
Created attachment 161313 [details]
The problem still exists in 6.4.4.2.
Comment 22 Nukool Chompuparn 2020-09-06 10:23:55 UTC
Droid Sans Thai font,very old and incomplete, comes along with Fedora OS.
In order to solve this problem, just use 'Noto Sans' instead.
Comment 23 ⁨خالد حسني⁩ 2022-08-23 19:49:13 UTC
The incorrect digits you are seeing are from Noto Color Emoji. Droid Sans Thai does not contain digits, and so fallback font is used. It seems that your FontConfig settings somehow prioritize Noto Color Emoji font and it ends up being used as fallback, and LibreOffice does not currently distinguish between color and monochrome fonts (bug 150398).

You probably need to figure how your FontConfig is configured and why Noto Color Emoji is given a higher priority, LO can be improved to handle color fonts especially but this is another issue.