[Fontconfig-bugs] [Bug 106460] New: emboldening isn't enabled on medium font when requesting bold

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 10 12:29:57 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106460

            Bug ID: 106460
           Summary: emboldening isn't enabled on medium font when
                    requesting bold
           Product: fontconfig
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: library
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: akira at tagoh.org
        QA Contact: freedesktop at behdad.org

$ fc-match -f "family: %{family}\nstyle: %{style}\nembolden: %{embolden}\n"
inconsolata  
family: Inconsolata
style: Medium
embolden: 
$ fc-match -f "family: %{family}\nstyle: %{style}\nembolden: %{embolden}\n"
inconsolata:bold         
family: Inconsolata
style: Medium
embolden: 

90-synthetic.conf won't be applied due to this:
commit 9efe0689ae130eda75a66ecd853cbe63712378a3
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Sep 15 14:28:12 2017 -0400

    Adjust emboldening logic

    Old logic was really bad.  If you requested weight=102 and got a medium
    font (weight=100), it would still enable emboldening...

    Adjust it to only embolden if request was >= bold and font was <= regular.

we need to change this logic again to get this working like:
$ fc-match -f "family: %{family}\nstyle: %{style}\nembolden: %{embolden}\n"
inconsolata:bold         
family: Inconsolata
style: Medium
embolden: True

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180510/3d5ce569/attachment.html>


More information about the Fontconfig-bugs mailing list