summaryrefslogtreecommitdiff
path: root/fontconfig/fontconfig.h
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2021-06-24 14:44:39 +0900
committerAkira TAGOH <akira@tagoh.org>2021-06-28 08:51:58 +0000
commitda1c9f7a6ce7cb90a132ed6f251f879d3e3624a1 (patch)
tree1d4e5199e40a49f4815aaad68ed43bab83f12404 /fontconfig/fontconfig.h
parentd62d984e2bfe5b9c7767e8ad657ec93652d52bbd (diff)
Fix score evaluation for multiple values in properties
Sometimes fonts has multiple values in family and sub-family in order to unify other variants into one. they basically make difference in sub-family though, they also still have standalone family and sub-family. in that case, sub-family is likely to be Regular. fontconfig couldn't recognize the difference between :family=Foo:style=Regular and :family=Foo Caption:style=Regular for example because fontconfig didn't give different score on matching result for the position of multiple values in a cache. Thus, when querying a font like :family=Foo:style=Regular may results :family=Foo Caption:style=Regular. (see the test case for more details) To fix this situation, giving different score according to the position of multiple values in a cache as well as the position of multiple values in a query. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/283
Diffstat (limited to 'fontconfig/fontconfig.h')
0 files changed, 0 insertions, 0 deletions