This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: was "missing fonts?" in cygwin@cygwin.com


Siegmar Gross wrote:
>> I have upgraded Cygwin to X11R7.4. In the past I could read my e-mail
>> via "ssh" and "dtmail" from a Solaris machine with a nice font. Now I

I assume there are some warnings emitted by dtmail when it starts indicating
that it can't use the font it wants to use? I would be interested to know exactly what it says.


>> get a font which is about twice the size of the old one so that I get
>> too few lines in my dtmail-window and therefore have to scroll a lot.
>> I have already installed all available fonts from my mirror site
>> without solving this problem. I don't know which fonts are not available
>> in X11R7 which were available in X11R6. Does anybody know which font I
>> need and where I can download the missing font for X11R7?
[...]
> I installed the fonts from an older Cygwin distribution and used
> "xset +fp /home/Admin/fonts/75dpi" to prepend the old fonts to the
> font path. This solved my problem. Now I wanted to find out what was
> different. Therefore I compared /usr/share/fonts/75dpi and
> /usr/X11R6/lib/X11/fonts/75dpi from X11R7 and X11R6 (I had to
> "gunzip" the files first). Only the files "encodings.dir" were
> different. The old file contained an additional line
> ansi-1251 /usr/share/fonts/encodings/ansi-1251.enc.gz.
> Therefore I copied the file ansi-1251.enc.gz from X11R6 to
> /usr/share/fonts/encodings/ and rebuilt fonts.dir.

Thanks very much for taking the time to investigate this.

Yes, it appears the ansi-1251 encoding was removed upstream
http://cgit.freedesktop.org/xorg/font/encodings/commit/?id=1963f4ab3ce7625ff687cbd4a94605aef86c7c03

I suspect a better solution might be to gunzip microsoft-cp1251.enc.gz, patch it as follows to identify ansi-1251 as an alias of that, gzip it again, and rebuild the encodings.dir file with mkfontdir -n

diff --git a/microsoft-cp1251.enc b/microsoft-cp1251.enc
index cb7720f..948f526 100644
--- a/microsoft-cp1251.enc
+++ b/microsoft-cp1251.enc
@@ -1,4 +1,5 @@
 STARTENCODING microsoft-cp1251
+ALIAS ansi-1251
 # This file is derived from data provided by the Unicode Consortium
 STARTMAPPING unicode
 0x80   0x0402  # CYRILLIC CAPITAL LETTER DJE

> Unfortunately I
> had the same problem once more. With "xset +fp /usr/share/fonts/75dpi/"
> I could solve my problem so that it probably depended on the font
> path. "xset -q" on the new machine displays
>
> Font Path:
>   built-ins,/usr/share/fonts/misc/,/usr/share/fonts/TTF/,
>   /usr/share/fonts/OTF,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,
>   /usr/share/fonts/75dpi/
>
> and on the old machine
>
> Font Path:
>   /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,
>   /usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,
>   /usr/X11R6/lib/X11/fonts/100dpi/
>
> When I change the order of the font directories with
> "xset -fp /usr/share/fonts/100dpi/" and
> "xset fp+ /usr/share/fonts/100dpi/",
>
> I once more have a solution for my problem. Is there a reason why
> the order of the directories changed? Is it possible to switch the
> order of the directories back to the order of X11R6 in the
> distribution?

I have some difficulty in working out what purpose (if any) the encodings.dir file in the various font directories serves, but you might try updating the encodings.dir file in all the font directories, not just in the encodings directory, rather than rearranging the font path.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]