Hello, On Sun, 24 Jul 2016, Aaron Digulla wrote:
On 24.07.2016 16:47, Daniel Bauer wrote:
Am 24.07.2016 um 14:22 schrieb Aaron Digulla:
On 24.07.2016 12:11, Daniel Bauer wrote:
I am here on leap 42.1, KDE 5, Libre Office Version: 5.1.3.2
Most of my system-wide installed fonts do not appear in the fonts dialog of libreOffice. I can use all fonts in Gimp, Digikam etc., but not in libreOffice.
That's weird. My guess would be that LO has a font cache somewhere. Look for a font that it finds and then run
grep -ri fontname .config/libreoffice/
from the command line. If it finds a match, rename the file to "filename.bak" and start LO. That should recreate the cache.
The command line tool "xlsfonts" can list all the fonts:
xlsfonts | less
Type "/fontname" to search for a font name.
I tried your suggestions but it did not help :-( . But while searching the font files to rename one, I found that the fonts that libreOffice does not see are *.pfb files.
Ah, yes. Type 1 are PostScript fonts. They are often used for professional typesetting but a lot of OpenSource software can't use them directly (you need a PostScript interpreter).
http://stackoverflow.com/questions/9322635/how-can-i-convert-postscript-type... has a couple of solutions for Windows and Mac. The two online resources (first comment and last answer) might work for you.
Star-/Open-/LibreOffice could always use *.pf[ab] under Linux. It might just need the .afm (Adobe Font Metrics) as well. And even comes with the .afm files for the Adobe standard fonts: $ rpm -qlf /usr/bin/ooffice |grep -E '\.(afm|pf[ab])$' | head -3 /usr/lib64/libreoffice/share/psprint/fontmetric/Courier-Bold.afm /usr/lib64/libreoffice/share/psprint/fontmetric/Courier-BoldOblique.afm /usr/lib64/libreoffice/share/psprint/fontmetric/Courier-Oblique.afm So, how to get those .afm? ==== man t1rawafm ==== NAME t1rawafm - produce raw AFM metrics from a PostScript Type 1 font SYNOPSIS t1rawafm -e ENCODING [OPTIONS...] font [outputfile] ==== $ rpm --qf '%{name}\n' -qf `which t1rawafm ` lcdf-typetools ==== man pf2afm ==== NAME pf2afm - Make an AFM file from Postscript (PFB/PFA/PFM) font files using ghostscript SYNOPSIS pf2afm fontfilename ==== $ rpm --qf '%{name}\n' -qf `which pf2afm ` ghostscript-library There's also t1utils and lcdf-typetools with more useful tools and pfbtops from 'groff'. Just put/generate the .afm alongside the .pf[ab] in /usr/share/fonts/Type1, update the font-databases (mkfontdir, mkfontscale, fc-cache), reload/restart the X-Font-Server, et voila... You have to remember: pfb/pfa are "just" Postscript files defining a font by defining shapes for glyphs in some encoding. etc. For sake of performance, the plain .ps files are "assembled" into either an ascii (pfa) or binary (pfb) format. Just have a look at e.g.: $ less /usr/share/fonts/Type1/cour.pfa vs. $ t1disasm /usr/share/fonts/Type1/cour.pfa | less In the latter, you get tons of plain PS commands like "<args ..> rrcurveto .. <arg> hlineto" etc. which define shapes in plain Postscript. HTH, -dnh, no random sig this time, and BTW: there _is_ one httpd daemon coded in postscript, IIRC! --
Stell mal Exchange-Cluster-Knoten in unterschiedliche Zeitzonen. Das ist lustig. (fuer hiesige Werte von "lustig"). -- J. P. Meier Da lerne ich doch lieber Sendmail. Oder programmiere einen Mailserver in Postscript. -- Arnim Sommer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org