Mailinglist Archive: opensuse (3254 mails)

< Previous Next >
Re: [SLE] Re: fonts in x11/SuSE 8 (and 7.3)
I've tried this and a lot of other things on my machine (7.3, XF4.2) to
get my TTF working again, but no avail. Following the first part of the
instructions below gets me a fonts.scale file that is around 26K in
size, listing all the fonts in the truetype directory. That's fine.
However, fonts.dir is still set to 2 bytes, only containing a "0". Not
sure why this is. I run /sbin/init.d/SuSEconfig.fonts and that doesn't
output any errors (should it?). When I go to run "xset fp rehash" as my
user I get the following output:

xset fp rehash
X Error of failed request: 86
Major opcode of failed request: 51 (X_SetFontPath)
Serial number of failed request: 8
Current serial number in output stream: 10

What does this actually mean? What's setup wrong in my X config? Any
pointers are appreciated. The files were first installed via K Font
Installer (KDE 3.0.3 btw), but then I uninstalled them and copied them
over manually as well. Let me know if you need more info. Thanks.

- Greg

On Thu, 2002-09-12 at 13:29, Mike Fabian wrote:
> jalal <the_jalal@xxxxxxxxxxx> writes:
>
> > Hi Rohit
> >
> > I used truetype fonts. I had a bunch from a Windows installation that
> > I copied over.
> >
> > I copied a set of truetype fonts that I had into the
> > /usr/X11R6/lib/X11/fonts directory, then I ran:
> >
> > ttmkfdir | sed s/^[0-9]*// > fonts.scale.myfonts
> > /sbin/conf.d/SuSEconfig.fonts
> > xset fp rehash
> >
> > which created the encoding files. (I noticed that sometimes the fonts
> > start to look screwed up again and SuSEconfig has replaced the first
> > line of fonts.scale with a 0. Edit and change back to whatever is the
> > first line of fonts.dir).
>
> That doesn't matter. You don't need to change this from 0 to the
> actual number. fonts.scale is not read neither by the X-server nor
> by the font server. Only fonts.dir is used.
>
> fonts.scale is only used by mkfontdir when it creates fonts.dir.
> See the man page of mkfontdir:
>
> man mkfontdir> Because scalable font files do not usually include the X font name,
> man mkfontdir> the file "fonts.scale" can be used to name the scalable fonts in the
> man mkfontdir> directory. The fonts listed in it are copied to fonts.dir by
> man mkfontdir> mkfontdir. "fonts.scale" has the same format as the "fonts.dir" file.
>
> It happens that mkfontdir ignores the number in the first line of
> fonts.scale. You can put any arbitrary number there and mkfontdir
> happily appends the contents of fonts.scale to fonts.dir and
> generates the correct number in the first line of fonts.dir.
>
> > However, there may be an easier way, which is:
> > In the control panel you can install fonts using the System->Font
> > Installer section. Select the folder that you have the fonts in for
> > the left hand pane, and it will get installed in to the directory in
> > the right hand pane.
> >
> > If you have an LCD screen, use sub-pixel hinting.
> >
> > I think thats all I did. But in the flurry of setting things up, I may
> > have missed something, apologies if so.
> >
> > cheers
> > jalal
> >
> > Rohit wrote:
> >> # The main criticism I would have is that the fonts look terrible until
> >> # things have been tweaked.
> >> Hi Jalal,
> >> I took your work from SLE list where you said the above lines. I did
> >> my
> >> first 8.0 install and I was worried to death as to why my fonts were so
> >> screwed up on the dual boot machine where everything seemed fantastic in
> >> Windows! Now I am a bit reassured - and that I do not have to go change my
> >> monitor.
> >> It is true that the fonts look perfectly screwed up. What do you
> >> suggest I
> >> should do to get some decent fonts in X11/KDE.
> >> Please let me know. Thanks a lot. If you gave concise, specific
> >> hints, I
> >> should be able to pick up from there.
> >> Thanks and regards,
> >> Rohit
> >>
> >
> >
> > --
> > Check the headers for your unsubscription address
> > For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> > Also check the archives at http://lists.suse.com
> > Please read the FAQs: suse-linux-e-faq@xxxxxxxx
> >
>
> --
> Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
> 睡眠不足はいい仕事の敵だ。
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx



< Previous Next >
References