[Skencil-users] 0.6.x on Mandriva Font solution

Bernhard Reiter bernhard at intevation.de
Sun Jan 22 00:53:12 CET 2006


Hello everybody,

finally I figured out how to create good .sfd files for Skencil 0.6.
and attached is the font solution for Mandriva.
Tested on Mandrive 2006.0.

        * keep the alias.sfd file
        * use the following new sfd files instead of Skencil's original ones:
                gs.mdk.sfd
                gsopt.mdk.sfd
                std.mdk.sfd
        Add the following paths to the font_path in Sketch/Base/config.py
                /usr/share/fonts/default/Type1
                /usr/share/fonts/default/ghostscript

To avoid the warning for the rules fonts, you can also use 
the attached patch. There are probably solutions which are more beautiful. :)

During figuring out how this all works, I have written a small
python script to check if fonts in an sfd file can be displayed
by the X server at all.
https://wald.intevation.org/tracker/index.php?func=detail&aid=41&group_id=5&atid=103

Best,
	Bernhard R.

-- 
Professional Service around Free Software                (intevation.net)  

If Skencil is useful for you, consider tipping the project:
               http://www.skencil.org/payments.html
-------------- next part --------------
# standard postscript fonts, X11 names for Mandriva 2006
AvantGarde-DemiOblique,Avant Garde Gothic,Demi Oblique,-urw-avantgarde-semibold-o-normal,iso8859-1,pagdo
AvantGarde-Book,Avant Garde Gothic,Book,-urw-avantgarde-medium-r-normal,iso8859-1,pagk
AvantGarde-BookOblique,Avant Garde Gothic,Book Oblique,-urw-avantgarde-medium-o-normal,iso8859-1,pagko
Bookman-Demi,Bookman,Demi,-urw-Bookman-bold-r-normal,iso8859-1,pbkd
Bookman-DemiItalic,Bookman,Demi Italic,-urw-Bookman-bold-i-normal,iso8859-1,pbkdi
Bookman-Light,Bookman,Light,-urw-Bookman-medium-r-normal,iso8859-1,pbkl
Bookman-LightItalic,Bookman,Light Italic,-urw-Bookman-medium-i-normal,iso8859-1,pbkli
Courier-Bold,Courier,Bold,-urw-Courier-bold-r-normal,iso8859-1,pcrb
Courier-BoldOblique,Courier,Bold Oblique,-urw-Courier-bold-o-normal,iso8859-1,pcrbo
Courier,Courier,Roman,-urw-Courier-medium-r-normal,iso8859-1,pcrr
Courier-Oblique,Courier,Oblique,-urw-Courier-medium-o-normal,iso8859-1,pcrro
Helvetica-Bold,Helvetica,Bold,-urw-Helvetica-bold-r-normal,iso8859-1,phvb
Helvetica-Narrow-Bold,Helvetica,Narrow Bold,-urw-Helvetica-bold-r-condensed,iso8859-1,phvbn
Helvetica-BoldOblique,Helvetica,Bold Oblique,-urw-Helvetica-bold-i-normal,iso8859-1,phvbo
Helvetica-Narrow-BoldOblique,Helvetica,Narrow Bold Oblique,-urw-Helvetica-bold-o-condensed,iso8859-1,phvbon
Helvetica,Helvetica,Roman,-urw-Helvetica-medium-r-normal,iso8859-1,phvr
Helvetica-Narrow,Helvetica,Narrow,-urw-Helvetica-medium-r-condensed,iso8859-1,phvrn
Helvetica-Oblique,Helvetica,Oblique,-urw-Helvetica-medium-i-normal,iso8859-1,phvro
Helvetica-Narrow-Oblique,Helvetica,Narrow Oblique,-urw-Helvetica-medium-o-condensed,iso8859-1,phvron
NewCenturySchlbk-Bold,New Century Schoolbook,Bold,-urw-New Century Schoolbook-bold-r-normal,iso8859-1,pncb
NewCenturySchlbk-BoldItalic,New Century Schoolbook,Bold Italic,-urw-New Century Schoolbook-bold-i-normal,iso8859-1,pncbi
NewCenturySchlbk-Roman,New Century Schoolbook,Roman,-urw-New Century Schoolbook-medium-r-normal,iso8859-1,pncr
NewCenturySchlbk-Italic,New Century Schoolbook,Italic,-urw-New Century Schoolbook-medium-i-normal,iso8859-1,pncri
Palatino-Bold,Palatino,Bold,-urw-Palatino-bold-r-normal,iso8859-1,pplb
Palatino-BoldItalic,Palatino,Bold Italic,-urw-Palatino-bold-i-normal,iso8859-1,pplbi
Palatino-Roman,Palatino,Roman,-urw-Palatino-medium-r-normal,iso8859-1,pplr
Palatino-Italic,Palatino,Italic,-urw-Palatino-medium-i-normal,iso8859-1,pplri
Times-Bold,Times,Bold,-urw-Times-bold-r-normal,iso8859-1,ptmb
Times-BoldItalic,Times,Bold Italic,-urw-Times-bold-i-normal,iso8859-1,ptmbi
Times-Roman,Times,Roman,-urw-Times-medium-r-normal,iso8859-1,ptmr
Symbol,Symbol,Roman,-urw-Symbol-medium-r-normal,adobe-fontspecific,psyr
Times-Italic,Times,Italic,-urw-Times-medium-i-normal,iso8859-1,ptmri
ZapfChancery-MediumItalic,Zapf Chancery,Medium Italic,-urw-Zapf Chancery-medium-i-normal,iso8859-1,pzcmi
ZapfDingbats,Zapf Dingbats,Roman,-urw-Zapf Dingbats-medium-r-normal,adobe-fontspecific,pzdr
AvantGarde-Demi,Avant Garde Gothic,Demi,-urw-avantgarde-semibold-r-normal,iso8859-1,pagd
-------------- next part --------------
URWGothicL-Book,URW Gothic L,Book,-urw-URW Gothic L-medium-r-normal,iso8859-1,a010013l
URWGothicL-Demi,URW Gothic L,Demi,-urw-URW Gothic L-semibold-r-normal,iso8859-1,a010015l
URWGothicL-BookObli,URW Gothic L,Book Oblique,-urw-URW Gothic L-medium-o-normal,iso8859-1,a010033l
URWGothicL-DemiObli,URW Gothic L,Demi Oblique,-urw-URW Gothic L-semibold-o-normal,iso8859-1,a010035l
URWBookmanL-Ligh,URW Bookman L,Light,-urw-URW Bookman L-medium-r-normal,iso8859-1,b018012l
URWBookmanL-DemiBold,URW Bookman L,Demi Bold,-urw-URW Bookman L-bold-r-normal,iso8859-1,b018015l
URWBookmanL-LighItal,URW Bookman L,Light Italic,-urw-URW Bookman L-medium-i-normal,iso8859-1,b018032l
URWBookmanL-DemiBoldItal,URW Bookman L,Demi Bold Italic,-urw-URW Bookman L-bold-i-normal,iso8859-1,b018035l
CenturySchL-Roma,Century Schoolbook L,Roman,-urw-Century Schoolbook L-medium-r-normal,iso8859-1,c059013l
CenturySchL-Bold,Century Schoolbook L,Bold,-urw-Century Schoolbook L-bold-r-normal,iso8859-1,c059016l
CenturySchL-Ital,Century Schoolbook L,Italic,-urw-Century Schoolbook L-medium-i-normal,iso8859-1,c059033l
CenturySchL-BoldItal,Century Schoolbook L,Bold Italic,-urw-Century Schoolbook L-bold-i-normal,iso8859-1,c059036l
Dingbats,Dingbats,Roman,-urw-Dingbats-medium-r-normal,adobe-fontspecific,d050000l
NimbusSansL-Regu,Nimbus Sans L,Regular,-urw-Nimbus Sans L-medium-r-normal,iso8859-1,n019003l
NimbusSansL-Bold,Nimbus Sans L,Bold,-urw-Nimbus Sans L-bold-r-normal,iso8859-1,n019004l
NimbusSanL-ReguItal,Nimbus Sans L,Regular Italic,-urw-Nimbus Sans L-medium-i-normal,iso8859-1,n019023l
NimbusSanL-BoldItal,Nimbus Sans L,Bold Italic,-urw-Nimbus Sans L-bold-i-normal,iso8859-1,n019024l
NimbusSanL-ReguCond,Nimbus Sans L Condensed,Regular,-urw-Nimbus Sans L Condensed-medium-r-condensed,iso8859-1,n019043l
NimbusSanL-BoldCond,Nimbus Sans L Condensed,Bold,-urw-Nimbus Sans L Condensed-bold-r-condensed,iso8859-1,n019044l
NimbusSanL-ReguCondItal,Nimbus Sans L Condensed,Regular Italic,-urw-Nimbus Sans L Condensed-medium-i-condensed,iso8859-1,n019063l
NimbusSanL-BoldCondItal,Nimbus Sans L Condensed,Bold Italic,-urw-Nimbus Sans L Condensed-bold-i-condensed,iso8859-1,n019064l
NimbusRomanNo9L-Regu,Nimbus Roman No9 L,Regular,-urw-Nimbus Roman No9 L-medium-r-normal,iso8859-1,n021003l
NimbusRomNo9L-Medi,Nimbus Roman No9 L,Bold,-urw-Nimbus Roman No9 L-bold-r-normal,iso8859-1,n021004l
NimbusRomNo9L-ReguItal,Nimbus Roman No9 L,Regular Italic,-urw-Nimbus Roman No9 L-medium-i-normal,iso8859-1,n021023l
NimbusRomNo9L-MediItal,Nimbus Roman No9 L,Bold Italic,-urw-Nimbus Roman No9 L-bold-i-normal,iso8859-1,n021024l
NimbusMonL-Regu,Nimbus Mono L,Regular,-urw-Nimbus Mono L-medium-r-normal,iso8859-1,n022003l
NimbusMonL-Bold,Nimbus Mono L,Bold,-urw-Nimbus Mono L-bold-r-normal,iso8859-1,n022004l
NimbusMonL-ReguObli,Nimbus Mono L,Regular Oblique,-urw-Nimbus Mono L-medium-o-normal,iso8859-1,n022023l
NimbusMonL-BoldObli,Nimbus Mono L,Bold Oblique,-urw-Nimbus Mono L-bold-o-normal,iso8859-1,n022024l
URWPalladioL-Roma,URW Palladio L,Roman,-urw-URW Palladio L-medium-r-normal,iso8859-1,p052003l
URWPalladioL-Bold,URW Palladio L,Bold,-urw-URW Palladio L-bold-r-normal,iso8859-1,p052004l
URWPalladioL-Ital,URW Palladio L,Italic,-urw-URW Palladio L-medium-i-normal,iso8859-1,p052023l
URWPalladioL-BoldItal,URW Palladio L,Bold Italic,-urw-URW Palladio L-bold-i-normal,iso8859-1,p052024l
StandardSymL,Standard Symbols L,Roman,-urw-Standard Symbols L-medium-r-normal,adobe-fontspecific,s050000l
URWChanceryL-MediItal,URW Chancery L,Medium Italic,-urw-URW Chancery L-medium-i-normal,iso8859-1,z003034l
-------------- next part --------------
# optional ghostscript fonts
Utopia-Bold,Utopia,Bold,-adobe-Utopia-bold-r-normal,iso8859-1,putb
Utopia-BoldItalic,Utopia,Bold Italic,-adobe-Utopia-bold-i-normal,iso8859-1,putbi
Utopia-Regular,Utopia,Regular,-adobe-Utopia-medium-r-normal,iso8859-1,putr
Utopia-Italic,Utopia,Italic,-adobe-Utopia-medium-i-normal,iso8859-1,putri
CharterBT-Bold,Bitstream Charter,Bold,-bitstream-Bitstream Charter-bold-r-normal,iso8859-1,bchb
CharterBT-BoldItalic,Bitstream Charter,Bold Italic,-bitstream-Bitstream Charter-bold-i-normal,iso8859-1,bchbi
CharterBT-Roman,Bitstream Charter,Roman,-bitstream-Bitstream Charter-medium-r-normal,iso8859-1,bchr
CharterBT-Italic,Bitstream Charter,Italic,-bitstream-Bitstream Charter-medium-i-normal,iso8859-1,bchri
-------------- next part --------------
--- /usr/lib/skencil-0.6.16/Sketch/Base/config.py.old	2006-01-16 00:48:13.000000000 +0100
+++ /usr/lib/skencil-0.6.16/Sketch/Base/config.py	2006-01-16 00:59:39.000000000 +0100
@@ -380,12 +380,13 @@
     ruler_max_text_step = 100
 
     #ruler_font = '-*-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1'
-    ruler_font = '-misc-fixed-medium-*-*-*-11-*-*-*-*-*-iso8859-1'
+    ruler_font = '-misc-fixed-medium-r-normal-*-10-*-*-*-*-*-iso8859-1'
     #ruler_font = '-*-lucida-medium-r-*-*-11-*-*-*-*-*-iso8859-1'
-    ruler_text_type = 'rotated' # can be 'rotated', 'horizontal' or 'vertical'
+    ruler_text_type = 'horizontal' # can be 'rotated', 'horizontal' or 'vertical'
+    #ruler_text_type = 'rotated' # can be 'rotated', 'horizontal' or 'vertical'
     #ruler_text_type = 'horizontal'
     #ruler_font_rotated = '-*-helvetica-medium-r-*-*-[0 10 ~10 0]-*-*-*-*-*-iso8859-1'
-    ruler_font_rotated = '-misc-fixed-medium-*-*-*-[0 11 ~11 0]-*-*-*-*-*-iso8859-1'
+    ruler_font_rotated = '-misc-fixed-medium-*-*-*-[0 10 ~10 0]-*-*-*-*-*-iso8859-1'
     #ruler_font_rotated = '-*-lucida-medium-r-*-*-[0 11 ~11 0]-*-*-*-*-*-iso8859-1'
 
     #
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/skencil-users/attachments/20060122/3cf40028/attachment.pgp


More information about the Skencil-users mailing list