Bug 2296259 - fontconfig file is wrong and not working properly
Summary: fontconfig file is wrong and not working properly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rit-meera-new-fonts
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Rajeesh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-08 09:53 UTC by Akira TAGOH
Modified: 2024-07-21 02:14 UTC (History)
2 users (show)

Fixed In Version: rit-meera-new-fonts-1.6.1-0.fc40 rit-meera-new-fonts-1.6.1-0.fc39
Clone Of:
Environment:
Last Closed: 2024-07-21 01:39:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Akira TAGOH 2024-07-08 09:53:08 UTC
Current 65-meera-new-fonts.conf contains:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
        <!-- Generic alias this font to sans-serif -->
        <alias>
                <family>Meera New</family>
                <default>
                        <family>sans-serif</family>
                </default>
        </alias>

        <!-- For Malayalam sans-serif, prefer this font -->
        <match>
                <test name="lang" compare="contains">
                        <string>ml</string>
                </test>
                <test name="family">
                        <string>sans-serif</string>
                </test>
                <edit name="family" mode="prepend" binding="strong">
                        <string>Meera New</string>
                </edit>
        </match>
</fontconfig>

But it looks like upstream changed family name:
$ fc-query -f "%{family}\n" /usr/share/fonts/rit-meera-new-fonts/RIT-MeeraNew.otf
RIT Meera New

So even if rit-meera-new-fonts has a higher priority number in config more than google-noto-sans-malayalam(-vf)-fonts, the default fonts is being taken over by it when they are installed.

Reproducible: Always

Steps to Reproduce:
1.install both rit-meera-new-fonts and google-noto-sans-malalayam-vf-fonts
2.fc-match sans:lang=ml
3.
Actual Results:  
Noto Sans Malayalam will be picked up

Expected Results:  
RIT Meera New should be.

config file contains old family name of "Meera New". it should be replaced by "RIT Meera New".

I'm not sure when it happened. we may need a backport for stable releases perhaps.

Comment 1 Rajeesh 2024-07-08 11:13:18 UTC
Thanks a lot for noticing this issue!

I'll get it fixed upstream & update in Fedora ASAP.

BTW, did you notice the breakage using any automated tools, or manually? Would help catching similar issues in future.

Comment 2 Akira TAGOH 2024-07-09 05:47:41 UTC
I created common test cases for our fonts packages here: https://src.fedoraproject.org/tests/fonts

I'm planning to anounce this shortly though, that may helps to catch up a breakage may happens in the future.

Comment 3 Fedora Update System 2024-07-12 05:51:39 UTC
FEDORA-2024-a97edf161d (rit-meera-new-fonts-1.6.1-0.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a97edf161d

Comment 4 Fedora Update System 2024-07-12 05:51:47 UTC
FEDORA-2024-8aa0ff449e (rit-meera-new-fonts-1.6.1-0.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8aa0ff449e

Comment 5 Fedora Update System 2024-07-13 03:05:21 UTC
FEDORA-2024-8aa0ff449e has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8aa0ff449e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8aa0ff449e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-07-13 03:33:49 UTC
FEDORA-2024-a97edf161d has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-a97edf161d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-a97edf161d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-07-21 01:39:29 UTC
FEDORA-2024-8aa0ff449e (rit-meera-new-fonts-1.6.1-0.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2024-07-21 02:14:53 UTC
FEDORA-2024-a97edf161d (rit-meera-new-fonts-1.6.1-0.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.