FS#65485 - [noto-fonts-emoji] Do not enable fontconfig by default
Attached to Project:
Arch Linux
Opened by huyizheng (huyizheng) - Thursday, 13 February 2020, 15:40 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 25 March 2020, 14:16 GMT
Opened by huyizheng (huyizheng) - Thursday, 13 February 2020, 15:40 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 25 March 2020, 14:16 GMT
|
Details
Description:
Since now this package has `fontconfig` enabled by default. It adds itself as the fallback font to noto fonts, which may prevent user from using other emoji fonts when using noto fonts as default fonts. For example, I want to use `noto sans` as my default font, and `joypixels` as my default emoji. If I just write this to my `fonts.conf`: ``` <match target="pattern"> <test qual="any" name="family"> <string>sans-serif</string> </test> <edit mode="prepend" binding="strong" name="family"> <string>Noto Sans</string> <string>JoyPixels</string> </edit> </match> ``` It won't work anymore, because the `noto color emoji` will be inserted as a fallback of `noto sans`, and thus inserted in the front of `joypixels`. I think it's better just provides an `conf.aval` file, and use some message to notify people how to enable its fontconfig. Just like the package `joypixels`. Additional info: * package version(s) 20191016-3 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: |
This task depends upon
This font works without any extra configuration.
@chpii No, it doesn't work properly. Without this fontconfig file, install ttf-dejavu, croscore, carlito and caladea and see for yourself.
<match>
<test name="family" compare="contains"><string>Noto </string></test>
<!--edit name="family" mode="append" binding="same"-->
<edit name="family" mode="append">
<string>Noto Color Emoji</string>
</edit>
</match>
This is upstream bug which should be reopened: https://bugs.kde.org/show_bug.cgi?id=418125
I could not find upstream Qt bug KDE bug should be dependent on, but as far as I tested Qt does not support Emojis correctly either.
Unfortunately, even the weak binding breaks text representation in GTK, making the following string display six color emoji, even though only the first, the third, and the sixth should be colored:
🀄 🀄︎ 🀄️ ✒ ✒︎ ✒️
I have to insist that the config file is removed. You're papering over Qt's broken emoji handling by breaking Unicode-conforming applications.