View previous topic :: View next topic |
Author |
Message |
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1744
|
Posted: Wed Feb 02, 2011 2:14 pm Post subject: I don't understand fonts at all |
|
|
I have (only) xorg-server installed.
That has worked well for me ever since it became an option.
I do have a relatively minimal installation, with only dejavu and urw-fonts installed.
In particular:
Code: |
$ ./xlsfonts
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed
$ xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 250 repeat rate: 30
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 20/10 threshold: 2
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 1800 Off: 3600
DPMS is Enabled
Monitor is On
Font cache:
Server does not have the FontCache Extension
|
And (of course) the gentoo twist:
Code: |
$ eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
[1] 10-autohint.conf
[2] 10-no-sub-pixel.conf
[3] 10-sub-pixel-bgr.conf
[4] 10-sub-pixel-rgb.conf
[5] 10-sub-pixel-vbgr.conf
[6] 10-sub-pixel-vrgb.conf
[7] 10-unhinted.conf
[8] 20-fix-globaladvance.conf *
[9] 20-unhint-small-dejavu-sans-mono.conf *
[10] 20-unhint-small-dejavu-sans.conf *
[11] 20-unhint-small-dejavu-serif.conf *
[12] 20-unhint-small-vera.conf *
[13] 25-unhint-nonlatin.conf
[14] 30-metric-aliases.conf *
[15] 30-urw-aliases.conf *
[16] 40-nonlatin.conf *
[17] 45-latin.conf *
[18] 49-sansserif.conf *
[19] 50-user.conf *
[20] 51-local.conf *
[21] 57-dejavu-sans-mono.conf *
[22] 57-dejavu-sans.conf *
[23] 57-dejavu-serif.conf *
[24] 60-latin.conf *
[25] 65-fonts-persian.conf *
[26] 65-khmer.conf
[27] 65-nonlatin.conf *
[28] 69-unifont.conf *
[29] 70-no-bitmaps.conf
[30] 70-yes-bitmaps.conf
[31] 80-delicious.conf *
[32] 90-synthetic.conf *
|
No application has ever complained before. However, I recently installed graphicsmagick, and when I try to do anything, I get:
Code: |
$ gm display /path/to/some/file
gm display: Unable to load font (-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1) [Resource temporarily unavailable].
gm display: Unable to load font (-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1) [Resource temporarily unavailable].
|
I assume I want to use /usr/share/fonts/dejavu/DejaVuSans.ttf for this.
So my question is how do I do that?
Do I need to create an xorg.conf, and put a FontPath entry into a Files section?
Do I need to run (or configure) something to map Helvetica to DejaVuSans?
Do I need to get inside the imagemagick source code to explicitly tell it to use DejaVuSans (and recompile)?
How X works with fonts (I used to remember having to run a "font server" many years ago) has always remained a complete mystery to me.
I will appreciate any enlightenment from a more knowledgeable source (that is just about anyone, actually). |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Wed Feb 02, 2011 4:12 pm Post subject: |
|
|
1. it seems that it's urw-fonts, that are wanted here (they provide Helvetica as-is)
2. there's a difference between imagemagick and graphicsmagick (the former uses fontconfig just fine) |
|
Back to top |
|
|
curmudgeon Veteran
Joined: 08 Aug 2003 Posts: 1744
|
Posted: Wed Feb 02, 2011 10:31 pm Post subject: |
|
|
Thank you for your thoughts (especially point one).
So you believe this issue comes from a problem in graphicsmagick?
Can you give more details about what might be happening? |
|
Back to top |
|
|
Wolfbone n00b
Joined: 29 Sep 2004 Posts: 30
|
Posted: Sat Feb 05, 2011 2:53 am Post subject: |
|
|
Installing media-fonts/font-adobe-100dpi fixed this problem for me, IIRC. If urw-fonts does contain a Helvetica, graphicsmagick doesn't seem to like it. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Feb 05, 2011 4:05 am Post subject: |
|
|
Actually, I mislead you a little bit there - urw-fonts contain Nimbus Sans L, which was designed to be compatible with
Helvetica metrics and is used as such via fontconfig.
Still, IMHO, if an app doesn't use something akin of fontconfig by this date, it's plain broken, especially if it uses just plain XLFDs. |
|
Back to top |
|
|
|