

As you've noted yourself, when the font doesn't show, the fontbutton will have "sans regular 10" selected because it's the default font, but it is possible to manually select the font that gtk refuses to initialise to. I too have experienced fonts that gtk refuses to initialise to, and that's three different ways it refuses as listed above. in the fontbutton widget if you have it shown.Īll this can be seen within the files in the temporary folder /tmp/pfontview.XXXXXXXX so you can see exactly what is being requested. in Pango markup within the main text widget (GtkLabel).ģ. in a gtkrc file to style the preview edit widget.Ģ. This font name is used in three different ways:ġ. The process is very simple: place a symlink to a ttf file into ~/.fonts and then use fc-query to query that file and create a font name from family + style. Pfontview-0.1.2.png pfontview-0.1.2 (16.39 KiB) Downloaded 4469 times fc_query-0.8. Built on Slacko 5.3.3, stripped with -strip-unneeded (2.77 KiB) Downloaded 1641 times I guess we'll find out now if my assumption is correct

So, if the font information outputs "Bold" in your native language then I'll use it, else I request the English equivalent which will be available. which I'm assuming that I'm supposed to be using as a developer when I request bold on a non-English computer. In ROX-Filer you'd achieve this by right-clicking a ttf file and selecting "Set Run Action." and entering pfontview contains the few strings that will require translating for other languages and if you attempt it then dump your text here and I'll add it to the project.įc-query extracts font information not only in English but in whatever languages (I guess) that the font supports, so "Bold" can be "Negreta", "fed", "Fett", "Gras" etc. Pfontview expects a ttf file but you're unlikely to be using this on the command-line so make this the default application for ttf files.
#TTF FONT VIEWER DOWNLOAD#

#TTF FONT VIEWER INSTALL#
If you want to compile it then run "fc-list -V" to get the version of fontconfig on your computer so that you can download the correct source package, use the recommended configure options settings from the INSTALL file but change -prefix=/usr to -prefix=/tmp/fontconfig, make and then make install. I'm using Slacko 5.3.3 and it comes with fontconfig but fc-query is not included within the fontconfig builtin, so Slacko 5.3.3 users at least will require it but I've compiled fc-query on my computer and then processed it with "strip -strip-unneeded" which I've attached below - place it in ~/my-applications/bin or /usr/bin, you decide. Pfontview enables the previewing of TrueType fonts.
