Hello, looks like I found a bug. I wanted to turn on slight hinting for bold fonts as new freetype lcd filter + full hinting works fine on small fonts with hinting information included, but totally kills bold and serif without them. I used this configuration: ? ? ? ?<match> ? ? ? ? ? ? ? ?<test target="pattern" name="weight" compare="more"> ? ? ? ? ? ? ? ? ? ? ? ?<int>100</int> ? ? ? ? ? ? ? ?</test> ? ? ? ? ? ? ? ?<edit mode="assign" name="hintstyle"> ? ? ? ? ? ? ? ? ? ? ? ?<int>1</int> ? ? ? ? ? ? ? ?</edit> ? ? ? ?</match> But seems it doesn''t work at all
On 04/28/2010 06:45 PM, Baybal Ni wrote:> Hello, looks like I found a bug. > > I wanted to turn on slight hinting for bold fonts as new freetype lcd > filter + full hinting works fine on small fonts with hinting > information included, but totally kills bold and serif without them. > > I used this configuration: > > <match> > <test target="pattern" name="weight" compare="more"> > <int>100</int> > </test> > <edit mode="assign" name="hintstyle"> > <int>1</int> > </edit> > </match> > > But seems it doesn''t work at allYou need to at least explain what you mean by "doesn''t work at all". Preferably, run fontconfig from master and copy the output of "fc-pattern -c -d" with your "not working" query. behdad
On 4 May 2010 07:59, Behdad Esfahbod <behdad at behdad.org> wrote:> On 04/28/2010 06:45 PM, Baybal Ni wrote: >> ?Hello, looks like I found a bug. >> >> ?I wanted to turn on slight hinting for bold fonts as new freetype lcd >> ?filter + full hinting works fine on small fonts with hinting >> ?information included, but totally kills bold and serif without them. >> >> ?I used this configuration: >> >> ? ? ? ? <match> >> ? ? ? ? ? ? ? ? <test target="pattern" name="weight" compare="more"> >> ? ? ? ? ? ? ? ? ? ? ? ? <int>100</int> >> ? ? ? ? ? ? ? ? </test> >> ? ? ? ? ? ? ? ? <edit mode="assign" name="hintstyle"> >> ? ? ? ? ? ? ? ? ? ? ? ? <int>1</int> >> ? ? ? ? ? ? ? ?</edit> >> ? ? ? ? </match> >> >> ?But seems it doesn''t work at all > > > You need to at least explain what you mean by "doesn''t work at all". > Preferably, run fontconfig from master and copy the output of "fc-pattern -c > -d" with your "not working" query. > > behdad >Where I can find this "fc-pattern" program? I can''t find it neither in master, neither in release tarballs.
On 05/04/2010 04:26 PM, Baybal Ni wrote:> Where I can find this "fc-pattern" program? I can''t find it neither in > master, neither in release tarballs.My bad. Should be in master now. behdad
/fc-pattern -c -d Sans:weight=120 Fontconfig error: Cannot load default config file Pattern has 17 elts (size 32) family: "Sans"(s) slant: 0(i)(s) weight: 120(i)(s) width: 100(i)(s) size: 12(f)(s) pixelsize: 12.5(f)(s) hintstyle: 3(i)(s) hinting: FcTrue(s) verticallayout: FcFalse(s) autohint: FcFalse(s) globaladvance: FcTrue(s) dpi: 75(f)(s) scale: 1(f)(s) lang: "en"(s) fontversion: 2147483647(i)(s) embeddedbitmap: FcTrue(s) decorative: FcFalse(s) On 4 May 2010 19:35, Behdad Esfahbod <behdad at behdad.org> wrote:> On 05/04/2010 04:26 PM, Baybal Ni wrote: >> Where I can find this "fc-pattern" program? I can''t find it neither in >> master, neither in release tarballs. > > My bad. ?Should be in master now. > > behdad >
On 05/04/2010 11:23 PM, Baybal Ni wrote:> Fontconfig error: Cannot load default config fileSeems like you didn''t "make install". behdad
On 4 May 2010 21:00, Behdad Esfahbod <behdad at behdad.org> wrote:> On 05/04/2010 11:23 PM, Baybal Ni wrote: >> Fontconfig error: Cannot load default config file > > Seems like you didn''t "make install". > > behdad >with make install: bin/fc-pattern -c -d Sans:weight=101:size=10 Pattern has 17 elts (size 32) family: "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "Nachlieli"(w) "Lucida Sans Unicode"(w) "Yudit Unicode"(w) "Kerkis"(w) "ArmNet Helvetica"(w) "Artsounk"(w) "BPG UTF8 M"(w) "Waree"(w) "Loma"(w) "Garuda"(w) "Umpush"(w) "Saysettha Unicode"(w) "JG Lao Old Arial"(w) "GF Zemen Unicode"(w) "Pigiarniq"(w) "B Davat"(w) "B Compset"(w) "Kacst-Qr"(w) "Urdu Nastaliq Unicode"(w) "Raghindi"(w) "Mukti Narrow"(w) "malayalam"(w) "Sampige"(w) "padmaa"(w) "Hapax Berb?re"(w) "MS Gothic"(w) "UmePlus P Gothic"(w) "SimSun"(w) "PMingLiu"(w) "WenQuanYi Zen Hei"(w) "WenQuanYi Bitmap Song"(w) "AR PL ShanHeiSun Uni"(w) "AR PL New Sung"(w) "MgOpen Modata"(w) "VL Gothic"(w) "IPAMonaGothic"(w) "IPAGothic"(w) "Sazanami Gothic"(w) "Kochi Gothic"(w) "AR PL KaitiM GB"(w) "AR PL KaitiM Big5"(w) "AR PL ShanHeiSun Uni"(w) "AR PL SungtiL GB"(w) "AR PL Mingti2L Big5"(w) "?? ????"(w) "ZYSong18030"(w) "TSCu_Paranar"(w) "UnDotum"(w) "Baekmuk Dotum"(w) "Baekmuk Gulim"(w) "KacstQura"(w) "Lohit Bengali"(w) "Lohit Gujarati"(w) "Lohit Hindi"(w) "Lohit Marathi"(w) "Lohit Maithili"(w) "Lohit Kashmiri"(w) "Lohit Konkani"(w) "Lohit Nepali"(w) "Lohit Sindhi"(w) "Lohit Punjabi"(w) "Lohit Tamil"(w) "Meera"(w) "Lohit Malayalam"(w) "Lohit Kannada"(w) "Lohit Telugu"(w) "Lohit Oriya"(w) "LKLUG"(w) "FreeSans"(w) "Arial Unicode MS"(w) "Arial Unicode"(w) "Code2000"(w) "Code2001"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) slant: 0(i)(s) weight: 101(i)(s) width: 100(i)(s) size: 10(f)(s) pixelsize: 10.4167(f)(s) hintstyle: 1(i)(w) hinting: FcTrue(s) verticallayout: FcFalse(s) autohint: FcFalse(s) globaladvance: FcTrue(s) dpi: 75(f)(s) scale: 1(f)(s) lang: "en"(s) fontversion: 2147483647(i)(s) embeddedbitmap: FcTrue(s) decorative: FcFalse(s) it seems that it''s working, but something inhibiting my copy of fc from making changes to hintstyle
But still, even while config parser is now cleared of accusations something prevents freetype from obeying fontconfig.
On 05/08/2010 05:15 AM, Baybal Ni wrote:> But still, even while config parser is now cleared of accusations > something prevents freetype from obeying fontconfig.Depends on your system. Perhaps a cairo issue. Check these: http://bugs.freedesktop.org/show_bug.cgi?id=11838 http://bugs.freedesktop.org/show_bug.cgi?id=25118 behdad
Hello. I applied the patch from gentoo forum and got very strange results. Everything remained the same and the problem remained except that in google chrome browser which has (or at least had don''t know how it''s now) its own internal fork of fontconfig, fonts began to render accordingly to my FC settings. I think you should look for differences between your and google''s version. On 8 May 2010 12:00, Behdad Esfahbod <behdad at behdad.org> wrote:> On 05/08/2010 05:15 AM, Baybal Ni wrote: >> But still, even while config parser is now cleared of accusations >> something prevents freetype from obeying fontconfig. > > Depends on your system. ?Perhaps a cairo issue. ?Check these: > > http://bugs.freedesktop.org/show_bug.cgi?id=11838 > http://bugs.freedesktop.org/show_bug.cgi?id=25118 > > > behdad >
http://www.google.com/codesearch/p?hl=en#h0RrPvyPu-c/gfx/font_gtk.cc <- does anybody have any thoughts on this code? On 8 May 2010 19:53, Baybal Ni <nikulinpi at gmail.com> wrote:> Hello. I applied the patch from gentoo forum and got very strange > results. Everything remained the same and the problem remained except > that in google chrome browser which has (or at least had don''t know > how it''s now) its own internal fork of fontconfig, fonts began to > render accordingly to my FC settings. I think you should look for > differences between your and google''s version. > > On 8 May 2010 12:00, Behdad Esfahbod <behdad at behdad.org> wrote: >> On 05/08/2010 05:15 AM, Baybal Ni wrote: >>> But still, even while config parser is now cleared of accusations >>> something prevents freetype from obeying fontconfig. >> >> Depends on your system. ?Perhaps a cairo issue. ?Check these: >> >> http://bugs.freedesktop.org/show_bug.cgi?id=11838 >> http://bugs.freedesktop.org/show_bug.cgi?id=25118 >> >> >> behdad >> >
On 9 May 2010 03:53, Baybal Ni <nikulinpi at gmail.com> wrote:> Hello. I applied the patch from gentoo forum and got very strange > results. Everything remained the same and the problem remained except > that in google chrome browser which has (or at least had don''t know > how it''s now) its own internal fork of fontconfig, fonts began to > render accordingly to my FC settings. I think you should look for > differences between your and google''s version. >Hi, according to one of the Chromium developers, this is own it behaves: - for the UI it uses GTK settings for fonts (basically ~/.Xresources) - for page rendering it uses fontconfig settings For more information check http://neugierig.org/software/chromium/fonts/ Regards, Pedro
I found that only gtk apps behave this way, all other programs using FC work fine. GTK bug? On 12 May 2010 03:48, Pedro Ribeiro <pedrib at gmail.com> wrote:> On 9 May 2010 03:53, Baybal Ni <nikulinpi at gmail.com> wrote: >> Hello. I applied the patch from gentoo forum and got very strange >> results. Everything remained the same and the problem remained except >> that in google chrome browser which has (or at least had don''t know >> how it''s now) its own internal fork of fontconfig, fonts began to >> render accordingly to my FC settings. I think you should look for >> differences between your and google''s version. >> > > Hi, according to one of the Chromium developers, this is own it behaves: > > - for the UI it uses GTK settings for fonts (basically ~/.Xresources) > - for page rendering it uses fontconfig settings > > For more information check > http://neugierig.org/software/chromium/fonts/ > > Regards, > Pedro >
On 05/16/2010 12:04 AM, Baybal Ni wrote:> I found that only gtk apps behave this way, all other programs using > FC work fine. GTK bug?I already responded and pointed out two cairo bugs that are most probably the root of the problem. Now, it seems like you are looking for someone to provide you with a ready solution. Unfortunately I don''t have time to do so right now, and opening new bugs doesn''t really help. At the end of the day someone who understands our text stack needs to sit down and figure it out. So far no one that fits that description had taken it upon themselves :(. behdad> On 12 May 2010 03:48, Pedro Ribeiro <pedrib at gmail.com> wrote: >> On 9 May 2010 03:53, Baybal Ni <nikulinpi at gmail.com> wrote: >>> Hello. I applied the patch from gentoo forum and got very strange >>> results. Everything remained the same and the problem remained except >>> that in google chrome browser which has (or at least had don''t know >>> how it''s now) its own internal fork of fontconfig, fonts began to >>> render accordingly to my FC settings. I think you should look for >>> differences between your and google''s version. >>> >> >> Hi, according to one of the Chromium developers, this is own it behaves: >> >> - for the UI it uses GTK settings for fonts (basically ~/.Xresources) >> - for page rendering it uses fontconfig settings >> >> For more information check >> http://neugierig.org/software/chromium/fonts/ >> >> Regards, >> Pedro >> >