Albert Chin
2005-Nov-21 08:50 UTC
[Fontconfig] Environment var to set font trace debug output?
On Wed, Apr 02, 2003 at 08:53:57AM -0800, Keith Packard wrote:> > Around 10 o''clock on Apr 2, Albert Chin wrote: > > > $ rm .fonts.cache-1 > > $ FC_DEBUG=20 qtconfig >/tmp/a > > $ FC_DEBUG=20 qtconfig >/tmp/b > > > > Should I expect /tmp/a and /tmp/b to be the same? > > You''ve got FC_DBG_CACHE and FC_DBG_EDIT set, and certainly the output from > FC_DBG_CACHE will differ depending on how the cache is filled. You should > get the same output from FC_DBG_MATCH and FC_DBG_EDIT, so a better test > would be: > > $ FC_DEBUG=5 qtconfig > /tmp/aOk, I did: $ rm .fonts.cache-1 $ FC_DEBUG=5 qtconfig >/tmp/a $ FC_DEBUG=5 qtconfig >/tmp/b $ diff -u /tmp/a /tmp/b Output below. -- albert chin (china@thewrittenword.com) -- snip snip --- /tmp/a 2003-04-02 10:55:44.103477045 -0600 +++ /tmp/b 2003-04-02 10:55:55.414088802 -0600 @@ -222,27 +222,26 @@ weight: 100(i)(s) width: 100(i)(s) -Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 12 of 16 +Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 11 of 11 charset: set(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) index: 0(i)(s) lang: aa|ast|ay|bi|br|ch|co|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|ia|id|ie|io|is|it|lb|mg|nb|nl|nn|no|oc|om|pt|rm|sma|smj|so|sq|sv|sw|tn|ts|vo|vot|wa|xh|yap|zu(s) outline: FcTrue(s) scalable: FcTrue(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) weight: 100(i)(s) -FcConfigSubstitute Pattern 26 of 32 +FcConfigSubstitute Pattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) dpi: 99.9344(f)(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) globaladvance: FcTrue(s) hinting: FcTrue(s) @@ -258,8 +257,7 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) verticallayout: FcFalse(s) weight: 100(i)(s) width: 100(i)(s) @@ -275,13 +273,13 @@ FcConfigSubstitute test font any slant Equal roman FcConfigSubstitute test pattern any slant NotEqual roman No match -FcConfigSubstitute donePattern 26 of 32 +FcConfigSubstitute donePattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) dpi: 99.9344(f)(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) globaladvance: FcTrue(s) hinting: FcTrue(s) @@ -297,8 +295,7 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) verticallayout: FcFalse(s) weight: 100(i)(s) width: 100(i)(s) @@ -415,7 +412,7 @@ weight: 200(i)(s) width: 100(i)(s) -Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 12 of 16 +Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 11 of 11 charset: set(s) family: "Helvetica"(s) file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Bold.pfa"(s) @@ -425,11 +422,10 @@ outline: FcTrue(s) scalable: FcTrue(s) slant: 0(i)(s) - source: "FreeType"(s) style: "Bold"(s) weight: 200(i)(s) -FcConfigSubstitute Pattern 26 of 32 +FcConfigSubstitute Pattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) @@ -451,7 +447,6 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) style: "Bold"(s) verticallayout: FcFalse(s) weight: 200(i)(s) @@ -468,7 +463,7 @@ FcConfigSubstitute test font any slant Equal roman FcConfigSubstitute test pattern any slant NotEqual roman No match -FcConfigSubstitute donePattern 26 of 32 +FcConfigSubstitute donePattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) @@ -490,7 +485,6 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) style: "Bold"(s) verticallayout: FcFalse(s) weight: 200(i)(s) @@ -608,27 +602,26 @@ weight: 100(i)(s) width: 100(i)(s) -Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 12 of 16 +Best score 0 0 0 0 6 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 11 of 11 charset: set(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) index: 0(i)(s) lang: aa|ast|ay|bi|br|ch|co|da|de|en|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|ia|id|ie|io|is|it|lb|mg|nb|nl|nn|no|oc|om|pt|rm|sma|smj|so|sq|sv|sw|tn|ts|vo|vot|wa|xh|yap|zu(s) outline: FcTrue(s) scalable: FcTrue(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) weight: 100(i)(s) -FcConfigSubstitute Pattern 26 of 32 +FcConfigSubstitute Pattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) dpi: 99.9344(f)(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) globaladvance: FcTrue(s) hinting: FcTrue(s) @@ -644,8 +637,7 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) verticallayout: FcFalse(s) weight: 100(i)(s) width: 100(i)(s) @@ -661,13 +653,13 @@ FcConfigSubstitute test font any slant Equal roman FcConfigSubstitute test pattern any slant NotEqual roman No match -FcConfigSubstitute donePattern 26 of 32 +FcConfigSubstitute donePattern 25 of 32 antialias: FcTrue(s) autohint: FcFalse(s) charset: set(s) dpi: 99.9344(f)(s) family: "Helvetica"(s) - file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica-Oblique.pfa"(s) + file: "/usr/openwin/lib/X11/fonts/Type1/Helvetica.pfa"(s) fontversion: 0(i)(s) globaladvance: FcTrue(s) hinting: FcTrue(s) @@ -683,8 +675,7 @@ scale: 1(f)(s) size: 12(f)(s) slant: 0(i)(s) - source: "FreeType"(s) - style: "Oblique"(s) + style: "Regular"(s) verticallayout: FcFalse(s) weight: 100(i)(s) width: 100(i)(s)
Albert Chin
2005-Nov-21 08:50 UTC
[Fontconfig] Environment var to set font trace debug output?
On Wed, Apr 02, 2003 at 10:24:33AM -0600, Albert Chin wrote:> Is it possible to get a trace of which fonts are being selected by > fontconfig while an app is running? Maybe an environment variable that > needs to be set? I''m still trying to track down: > http://mail.fontconfig.org/pipermail/fontconfig/2003-March/000180.htmlOk, looked at the source and FC_DEBUG seems to be it. -- albert chin (china@thewrittenword.com)
Albert Chin
2005-Nov-21 08:50 UTC
[Fontconfig] Environment var to set font trace debug output?
On Wed, Apr 02, 2003 at 10:26:07AM -0600, Albert Chin wrote:> On Wed, Apr 02, 2003 at 10:24:33AM -0600, Albert Chin wrote: > > Is it possible to get a trace of which fonts are being selected by > > fontconfig while an app is running? Maybe an environment variable that > > needs to be set? I''m still trying to track down: > > http://mail.fontconfig.org/pipermail/fontconfig/2003-March/000180.html > > Ok, looked at the source and FC_DEBUG seems to be it.I have Qt 3.1.2 built with fontconfig-2.1.92. I have not run fc-cache and have no ~/.fonts.conf file. $ rm .fonts.cache-1 $ FC_DEBUG=20 qtconfig >/tmp/a $ FC_DEBUG=20 qtconfig >/tmp/b Should I expect /tmp/a and /tmp/b to be the same? I ran a diff against the two and on Solaris/IRIX, Helvetica-Oblique is selected on the first run and Helvetica is selected on the second run. Why? -- albert chin (china@thewrittenword.com)
Keith Packard
2005-Nov-21 08:50 UTC
[Fontconfig] Environment var to set font trace debug output?
Around 10 o''clock on Apr 2, Albert Chin wrote:> $ rm .fonts.cache-1 > $ FC_DEBUG=20 qtconfig >/tmp/a > $ FC_DEBUG=20 qtconfig >/tmp/b > > Should I expect /tmp/a and /tmp/b to be the same?You''ve got FC_DBG_CACHE and FC_DBG_EDIT set, and certainly the output from FC_DBG_CACHE will differ depending on how the cache is filled. You should get the same output from FC_DBG_MATCH and FC_DBG_EDIT, so a better test would be: $ FC_DEBUG=5 qtconfig > /tmp/a -keith
Albert Chin
2005-Nov-21 08:50 UTC
[Fontconfig] Environment var to set font trace debug output?
Is it possible to get a trace of which fonts are being selected by fontconfig while an app is running? Maybe an environment variable that needs to be set? I''m still trying to track down: http://mail.fontconfig.org/pipermail/fontconfig/2003-March/000180.html -- albert chin (china@thewrittenword.com)