1 |
>>>>> "Allan" == Allan Gottlieb <gottlieb@×××.edu> writes: |
2 |
|
3 |
Allan> ... I use what [the] 6x13 [bdf] font. |
4 |
Allan> Its [xlfd] name is |
5 |
Allan> -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 |
6 |
|
7 |
Allan> Is there some way I can tell gnome-terminal to use |
8 |
Allan> -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 |
9 |
|
10 |
Yes, xft supports bitmap fonts and this one should be in the list. |
11 |
|
12 |
It can be a bit of work to get the right fontconfig name for a given |
13 |
xlfd name, so the best thing to do is to find the fonts.dir file that |
14 |
matches the xlfd to a filename, and find that same filename in the |
15 |
fonts.cache-1 file in that directory. |
16 |
|
17 |
The font you want is in /usr/share/fonts/misc/6x13-ISO8859-1.pcf.gz |
18 |
and that matches this line in /usr/share/fonts/misc/fonts-cache-1: |
19 |
|
20 |
,---- |
21 |
| "6x13-ISO8859-1.pcf.gz" 0 "Fixed-12:style=SemiCondensed:slant=0: |
22 |
| weight=100:width=87:pixelsize=13:spacing=110:foundry=Misc: |
23 |
| antialias=False:index=0:outline=False:scalable=False:dpi=75: |
24 |
| charset= |>^1!|>^1!|>^1!P0oWQ |>^1!|>^1!|>^1!: |
25 |
| lang=aa|...long-list...|zu: |
26 |
| fontversion=0:fontformat=PCF" |
27 |
`---- |
28 |
|
29 |
I've manually broken that to fit in 80 cols, and elided the full list |
30 |
of the lang attribute. |
31 |
|
32 |
This means that the string from Fixed to PCF is the full fontconfig |
33 |
name. In practice you can leave out a lot of that. This should let |
34 |
you view the font: |
35 |
|
36 |
:; xfd -fa 'Fixed-12:style=semicondensed:pixelsize=13:foundry=misc' |
37 |
|
38 |
the equivalent invocation for that font as a server-side font is: |
39 |
|
40 |
:; xfd -fn -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 |
41 |
|
42 |
To get gnome-terminal to use that font you may need to manually edit |
43 |
the gconf file. I'd first make a named profile in gnome-terminal's |
44 |
edit current profile dialog (from the right-click menu), and then |
45 |
look for that profile's name in: |
46 |
|
47 |
~/.gconf/apps/gnome-terminal/profiles/ |
48 |
|
49 |
The default profile is named Default, and its gconf file is: |
50 |
|
51 |
~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml |
52 |
|
53 |
In that file, look for: |
54 |
|
55 |
<entry name="font" |
56 |
|
57 |
and put the fontconfig name in the <stringvalue> container w/in that |
58 |
entry. |
59 |
|
60 |
There is also an x_font entry that appears to take an xlfd, so I'd |
61 |
change that, too. |
62 |
|
63 |
Depending on your dpi setting, you might even get lucky by using g-t's |
64 |
dialog to choose Fixed, style=semicondensed and one of the offered |
65 |
point sizes. On my 133dpi screen -- with X actually using that dpi -- |
66 |
I was unable to get the dialog to match 6x13. |
67 |
|
68 |
As an alternative, you can try Vera Mono or DevaVu Mono; they have |
69 |
about the same aspect ratio as the bdf fixed fonts and look as good |
70 |
if you have freetype installed w/o bindist in USE. Ie, when using |
71 |
the bycode interpreter, the hinting leaves the stems sharp and adds |
72 |
just a hint of smoothing to the curves and diagonals. It looks |
73 |
especially sweet on an LCD w/ fontconfig setup w/ rgba. |
74 |
|
75 |
-JimC |
76 |
-- |
77 |
James H. Cloos, Jr. <cloos@×××××××.com> <http://jhcloos.com> |
78 |
-- |
79 |
gentoo-user@g.o mailing list |