The hope was the opposite -- eliminate the "font" property and separate out
each individual property of it to a separate face property. The problem was,
there was disagreement over how to design this. Kyle wants to have a "font"
property containing a list of all the actual font properties. I think it's
arbitrary to distinguish between font and other properties, and that all
properties should be equal at the face level.
Kirill 'Big K' Katsnelson wrote:
I am cleaning up the redisplay code to implement printing in
This patch uses system-provided underline and strike out fonts.
Struck out and underlined fonts are now supported on widgets, for no
reason, because nobody wants them to look like that anyway! :)
The idea is that each font instance has up to four HFONTs associated
with it, called variants, for all under/struck combinations. Only one
is created initially, with the rest being created and cached in
instance data as they are needed, during redisplay.
This patch accumulates Windows specific changes, winsys-independent
part is under way.
An RFC. There are now 2 ways to create an underlined face. One is to
specify font modifier 'underline', like "Courier
The other way is to create a non-underlined font, and set underline-p
property of the *face* to t. These faces won't be the same. Even worse,
the first face line height will be 1 greater than the second!
(Although, with 10pt size, they are same. Thanks Bill!).
Should the modifiers 'underline' and 'strikethru' go away from the
2000-01-17 Kirill 'Big K' Katsnelson <kkm(a)dtmx.com>
* faces.h (FACE_STRIKETHRU_P): Added.
* glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
of font variants.
* redisplay-msw.c (mswindows_apply_face_effects): Deleted.
(mswindows_set_dc_font): New function, aware of font variants,
separated from mswindows_update_dc.
* objects-msw.h (struct mswindows_font_instance_data): Added
* objects-msw.c (mswindows_finalize_font_instance): Delete all
cached fonts and the data structure.
(mswindows_initialize_font_instance): Added creation of font data
(mswindows_print_font_instance): Print at least something.
kkm-2000-01-17-1 Type: Plain Text (text/plain)
In order to save my hands, I am cutting back on my responses, especially
to XEmacs-related mail. You _will_ get a response, but please be patient.
If you need an immediate response and it is not apparent in your message,
please say so. Thanks for your understanding.