Pango font rendering on OSX



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:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffdfff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff 00040000 00000000 00000000 f0000000
0002: 0f000000 00000000 00000000 00000000 00000000 00010000 3f0008c0 00000000
0003: 00000000 00000000 00000000 00000000 00100000 10000200 00000001 00000000
0020: 77180000 46010047 00000010 e3f10000 000063ff 000017da 00000000 00000000
0021: 00c80000 00004045 78180000 00000000 000f0000 00000000 00000000 00000000
0022: 46268044 00000800 00000100 00000031 00000000 000c0000 00000000 00000000
0023: 01000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0025: 00000000 00000000 00000000 00000000 00000000 10040001 00008400 00000000
0026: 00030020 00000000 00000000 00000040 00000000 00000000 00000000 00000000
0027: 00080000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00e0: 00000030 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00f6: 00000000 ff800100 7ff7ffff ffffe7fe ffffffff fffffa5f b0000008 a60fffff
00f7: 00000000 83ff0052 00000000 07fffffe 00000000 01000002 00000000 ff7fffff
00f8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 80000000
00fb: 0000001f 00000000 00000000 00000000 00000000 00000000 00000000 00000000

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

knyttl goout cz
+420 607 008 510
http://goout.cz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]