Re: Pango font rendering on OSX

2014-04-03 Thread Behdad Esfahbod
On 14-03-14 01:58 PM, Vojtěch Knyttl wrote:
> I can list it with fontconfig as well:

Does fc-list or fc-match find it?  Looks like that directory is not scanned by
fontconfig.

-- 
behdad
http://behdad.org/
___
gtk-i18n-list mailing list
gtk-i18n-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list


Pango font rendering on OSX

2014-03-14 Thread Vojtěch Knyttl

I am trying to render a custom font "Proxima Nova" with Pango or Weasyprint, 
which both yield the same result – some kind of default font is used.


The font is correctly installed on my OSX and I can use it in text editor or in 
webpage.


I can list it with fontconfig as well:

$ fc-scan Library/Fonts/* Pattern has 20 elts (size 32) family: "Proxima 
Nova"(s) "Proxima Nova Bl"(s) familylang: "en"(s) "en"(s) style: "Black"(s) 
"Regular"(s) stylelang: "en"(s) "en"(s) fullname: "ProximaNova-Black"(s) 
"Proxima Nova Black"(s) fullnamelang: "en"(s) "en"(s) slant: 0(i)(s) weight: 
210(i)(s) width: 100(i)(s) foundry: "unknown"(s) file: 
"Library/Fonts/ProximaNova-Black.otf"(s) index: 0(i)(s) outline: FcTrue(s) 
scalable: FcTrue(s) charset: :    7fff  
dfff   0001:     0004 
  f000 0002: 0f00     
0001 3f0008c0  0003:     0010 
1200 0001  0020: 7718 46010047 0010 e3f1 63ff 
17da   0021: 00c8 4045 7818  000f 
   0022: 46268044 0800 0100 0031  
000c   0023: 0100     
   0025:      
10040001 8400  0026: 00030020   0040  
   0027: 0008     
   00e0: 0030     
   00f6:  ff800100 7ff7 e7fe  
fa5f b008 a60f 00f7:  83ff0052  07fe  
0102  ff7f 00f8:      
  8000 00fb: 001f     
    

Rendering these with pango yields default fonts:

pango-view -t 'Some test text' --font 'Proxima Nova' pango-view -t 'Some test 
text' --font 'ProximaNova-Black' pango-view -t 'Some test text' --font 
'Asdfghjkl' pango-view -t 'Some test text' --font 'Times New Roman'  

But Verdana, Tahoma and some other works correctly:

pango-view -t 'Some test text' --font 'Verdana' pango-view -t 'Some test text' 
--font 'Tahoma'  

The same happens for weasyprint. Which fonts pango-view is actually using? How 
can I help it to start using my fonts?







Vojtěch Knyttl | GoOut

kny...@goout.cz
+420 607 008 510
http://goout.cz


___
gtk-i18n-list mailing list
gtk-i18n-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list