Fontconfig <matrix> settings are ignored
Reported by
dumb...@gmail.com,
Aug 20 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36 Example URL: https://www.google.com/search?q=test Steps to reproduce the problem: 1. Add this config to ~/.fonts.conf or /etc/fonts/local.conf: <match target="font"> <test name="family" qual="any" > <string>Arial</string> </test> <test compare="less" name="weight" > <const>bold</const> </test> <test compare="more_eq" name="pixelsize" qual="any" > <double>5</double> </test> <test compare="less_eq" name="pixelsize" qual="any" > <double>50</double> </test> <edit name="matrix" mode="assign" > <times> <name>matrix</name> <matrix> <double>1.5</double> <double>0.0</double> <double>0.0</double> <double>1.0</double> </matrix> </times> </edit> </match> 2. Start up chrome and go to a page with Verdana 9-10px on it (e.g. https://www.google.com/search?q=test ). What is the expected behavior? Text should be 1.5x stretched in the x direction. What went wrong? Text is unchanged. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? Yes Chrome version: 50.0.2661.75 Channel: stable OS Version: 4.4.8-1-lts x86_64 GNU/Linux Flash Version: Shockwave Flash 14.0 r0 This works fine in Firefox. Based on debugging in a variety of different ways, it seems Chromium is matching the rule, but simply ignoring the <matrix> edit. This bug is a continuation of https://bugs.chromium.org/p/chromium/issues/detail?id=53785 .
,
Aug 22 2016
Correct, chrome does not support fontconfig matrix settings.
,
Aug 22 2016
Please point me to the correct solution of setting matrix attributes for particular fonts in Chromium. We utterly need it (mainly to compensate some fonts e.g. for visually impaired people). |
||
►
Sign in to add a comment |
||
Comment 1 by junov@chromium.org
, Aug 22 2016