Bug 27827

Summary: The fallback font doesn't have good support in Niqqud
Product: Mageia Reporter: Omer I.S. <omeritzicschwartz>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: Normal CC: davidwhodgins, mageia, omeritzicschwartz, ouaurelien, shlomif
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Omer I.S. 2020-12-15 13:13:35 CET
Description of problem:
The fallback font does not support Hebrew Niqqud as well.

How reproducible:
Try typing "אַבְּגדּהֶוֹזחטיכךָּלמנסעפצץקרשֱׁת" with the fallback font, and with Noto Sans Hebrew or Arial; Then, compare between the text with each font.
Comment 1 Lewis Smith 2020-12-15 20:17:00 CET
This is the n'th bug about Hebrew fonts we have seen (27635, 27639). I am not expert enough in Hebrew to judge the affair. The other two bugs were closed 'wontfix' on the basis that you can always install other fonts that you prefer. Accepting that you can at least get started with what is provided out-of-the-box.

I CC possibly interested parties for their comment, pending probably closing this also 'wontfix' or 'invalid'.

CC: (none) => davidwhodgins, lewyssmith, mageia, shlomif

Comment 2 Martin Whitaker 2020-12-15 20:35:22 CET
A fallback font should only be used if the font you have selected is not available. What font are you selecting?

The fallback font is determined by the fontconfig rules, so it should be possible to make fontconfig prefer a different font. But I am no expert on fontconfig rules and can't read Hebrew, so can't really help with that.
Comment 3 Omer I.S. 2020-12-15 22:10:09 CET
(In reply to Martin Whitaker from comment #2)
> A fallback font should only be used if the font you have selected is not
> available. What font are you selecting?
> 
> The fallback font is determined by the fontconfig rules, so it should be
> possible to make fontconfig prefer a different font. But I am no expert on
> fontconfig rules and can't read Hebrew, so can't really help with that.

The selected font is Noto Sans Hebrew, this is the default font selection of KDE Plasma.
I am not expert on fontconfig rules too, but I can help with the font choosing and testing it.
Omer I.S. 2020-12-15 22:16:37 CET

CC: (none) => omeritzicschwartz

Comment 4 Martin Whitaker 2020-12-15 22:20:40 CET
In a terminal window, what is output when you enter

  fc-match -s 'Noto Sans Hebrew'
Comment 5 Omer I.S. 2020-12-15 23:09:13 CET
(In reply to Martin Whitaker from comment #4)
> In a terminal window, what is output when you enter
> 
>   fc-match -s 'Noto Sans Hebrew'

The output is:
DejaVuSans.ttf: "DejaVu Sans" "Book"
opens___.ttf: "OpenSymbol" "Regular"
Hack-Regular.ttf: "Hack" "Regular"
DejaVuMathTeXGyre.ttf: "DejaVu Math TeX Gyre" "Regular"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
SourceCodePro-Regular.otf: "Source Code Pro" "Regular"
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
Carlito-Regular.ttf: "Carlito" "Regular"
Caladea-Regular.ttf: "Caladea" "Regular"
C059-Roman.ttf: "C059" "Roman"
goldengi.ttf: "Golden Girdle" "Normal"
MiriamMonoCLM-Book.ttf: "Miriam Mono CLM" "Book"
b018012l.pfb: "URW Bookman L" "Light"
s050000l.pfb: "Standard Symbols L" "Regular"
MiriamCLM-Book.ttf: "מרים" "קל"
unifont.ttf: "Unifont" "Regular"
unifont_upper.ttf: "Unifont Upper" "Regular"
ElliniaCLM-Light.pfb: "Ellinia CLM" "Light"
LiberationSerif-Italic.ttf: "Liberation Serif" "Italic"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
6x13.pcf.gz: "Fixed" "SemiCondensed"
9x15.pcf.gz: "Fixed" "Regular"
D050000L.ttf: "D050000L" "Regular"
StandardSymbolsPS.ttf: "Standard Symbols PS" "Regular"
Comment 6 Martin Whitaker 2020-12-15 23:54:47 CET
And the output from

  rpm -q google-noto-sans-hebrew-fonts

and

  fc-list | grep -i hebrew
Comment 7 Omer I.S. 2020-12-16 01:39:49 CET
(In reply to Martin Whitaker from comment #6)
> And the output from
> 
>   rpm -q google-noto-sans-hebrew-fonts
> 
> and
> 
>   

Noto Sans Hebrew is not installed on my PC, so the output of "rpm -q google-noto-sans-hebrew-fonts" is: package google-noto-sans-hebrew-fonts is not installed.

The output of "fc-list | grep -i hebrew" is:
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 21: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 43: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 53: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 64: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 75: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 86: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 98: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 110: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/39-culmus.conf", line 120: Having multiple values in <test> isn't supported and may not work as expected
Lewis Smith 2020-12-17 20:42:18 CET

CC: lewyssmith => (none)

Comment 8 Aurelien Oudelet 2020-12-18 21:44:34 CET
(In reply to Omer I.S. from comment #7)
> (In reply to Martin Whitaker from comment #6)
> > And the output from
> > 
> >   rpm -q google-noto-sans-hebrew-fonts
> > 
> > and
> > 
> >   
> 
> Noto Sans Hebrew is not installed on my PC, so the output of "rpm -q
> google-noto-sans-hebrew-fonts" is: package google-noto-sans-hebrew-fonts is
> not installed.

Oh my God. I'm sorry this is contradictory from your original post, but please install this package and you will have good hebrew font support.

I acknowledge that this should be installed. Why it is not the case?

CC: (none) => ouaurelien

Comment 9 Aurelien Oudelet 2020-12-18 21:45:20 CET
If I remember well, this is a duplicate of a previous request.
Comment 10 Martin Whitaker 2020-12-19 10:25:55 CET
google-noto-sans-hebrew-fonts is not installed because it is not listed in rpmsrate and no other package requires it.

As was said in one of the earlier bug reports, rpmsrate causes fonts-type1-hebrew to be installed by default when the language is Hebrew. But we would need additional fontconfig rules to steer the font selection process to make one of those be selected as the fallback font.

Again as said earlier, adding all the google-noto fonts in rpmsrate would cause problems with the ISO size. We would need to replace the current recommendations. And that would still not help with other DEs that don't select Noto Sans as the default font.

There maybe is a good argument for changing the fonts recommended by rpmsrate to be the google-noto fonts, but a major change like that needs wider discussion, and should be done according to https://wiki.mageia.org/en/Features_policy.
Comment 11 Omer I.S. 2020-12-19 16:55:37 CET
Almost every open font used by the desktop environments does not support Hebrew, so DejaVu font, the fallback font, is used, and DejaVu still does not support Niqqud as well. The pre-installed fonts are not good alternatives. May you include Noto Sans Hebrew only, please?
Comment 12 Omer I.S. 2020-12-19 17:41:38 CET
*LibreOffice's Liberation Sans font can replace Noto Sans.
Comment 13 Omer I.S. 2020-12-21 12:20:04 CET
Closing as wontfix.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX