[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] weird font problem on windows NT

From: Jason Rumney
Subject: Re: [h-e-w] weird font problem on windows NT
Date: Fri, 16 Jan 2004 13:43:52 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007

Horsley Tom wrote:

I have a copy of the X11 9x15 font that has been converted to a windows .fon
What is the character set ("Script" in the font dialog) of that font file? Many fonts converted from X fonts have random data in the character set field, so Emacs cannot recognize them as suitable for ASCII characters (and the font dialog lists them as "Other"). The best solution would be to fix the character set field in a font editor, or reconvert the font with a tool that fills in the character set field properly.

This is gnu emacs 21.2.1 (I also get the same behavior with 21.3).
Weirdly, an older emacs (I think it was 20.7) can access the 9x15 font
just fine.
In Emacs 20, the default was to consider all fonts to be "ASCII" fonts, and one had to construct a fontset to make use of international characters. In Emacs 21, the situation is reversed. Now fonts are automatically used for their appropriate character sets (and only those character sets), and one must construct a fontset to force Emacs to do any different. The easiest way to do this is:

(set-frame-font (create-fontset-from-ascii-font "FONTNAME"))

where previously you had

(set-frame-font "FONTNAME")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]