Hello everyone, fontconfig debugging is a nightmare: Did somebody by chance write a script that mangles the output of FC_DEBUG enabled programs? The new output could be something like: REQUEST: <fontconfig-pattern> edit: family+=... edit: ... RESULT: ... result edit: ... FINAL: ... ...and so on... I need a good base to hack something on for my needs. Or does somebody have a good method to isolate what an application is actually asking for and what font it is actually using? It took me already ages to find out which font the firefox-flash-plugin was using for some sans-serif Chinese characters. And I know need to copy that behavior on my new system. For that, I want to see if the font request is the same, and why the result is different. Robert
On 01/08/2010 01:06 PM, Robert Siemer wrote:> Hello everyone, > > fontconfig debugging is a nightmare: Did somebody by chance write a > script that mangles the output of FC_DEBUG enabled programs?Not that I know of. behdad> The new output could be something like: > > REQUEST: <fontconfig-pattern> > edit: family+=... > edit: ... > RESULT: ... > result edit: ... > FINAL: ... > > ...and so on... > > > > I need a good base to hack something on for my needs. > > Or does somebody have a good method to isolate what an application is > actually asking for and what font it is actually using? It took me > already ages to find out which font the firefox-flash-plugin was using > for some sans-serif Chinese characters. And I know need to copy that > behavior on my new system. For that, I want to see if the font request > is the same, and why the result is different. > > > Robert > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig >
Robert Siemer wrote:> Hello everyone, > > fontconfig debugging is a nightmare: Did somebody by chance write a > script that mangles the output of FC_DEBUG enabled programs? > > The new output could be something like: > > REQUEST: <fontconfig-pattern> > edit: family+=... > edit: ... > RESULT: ... > result edit: ... > FINAL: ... > > ...and so on...It''s not exactly what you''re looking for, but anyway here''s my lame attempt to filter for request -> result (font families) You run in like this: $ FC_DEBUG=1 some_app | ./fcdebug1.py Beware, it''s not very sophisticated... :-) Please keep us posted if you create something better! -- "Thou shalt not follow the Null Pointer, for at its end Chaos and Madness lie." -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: fcdebug1.py Url: http://lists.freedesktop.org/archives/fontconfig/attachments/20100114/3cf00fef/attachment.ksh