gtk/gdk/win32
Tor Lillqvist 018d098240 Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now,
1999-10-14  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
GDK_FONT_FONT fonts (which is all we have for now, we don't
emulate fontsets). The X11 version uses plain XDrawString in that
case, too. The string passed to gdk_draw_text_wc seems to be in
fact (at least, when used by gtkentry and gtktext) either in a
single-byte charset, or a DBCS. Not Unicode.

This fixes the problem in gtkfontsel, where even if you had
selected a font with a non-Latin1 charset (windows-greek, for
instance), the preview still used Latin-1 glyphs.

* gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
use GetTextExtentPoint32W, use GetTextExtentPoint32A.
(gdk_font_load): Recognize the demibold etc weights, even if we
don't have the corresponding constants in the headers.
(gdk_font_hash_insert): Use same hash mechanism as in the X11
version. Should save font resources a bit, when we don't have
multiple HFONTs for the same font.

* gdk/win32/gdkprivate.h: Add the names field as in the X11
version.
1999-10-13 21:46:33 +00:00
..
rc Delete the gdk_DC when exiting, just to be sure. 1999-09-21 19:12:50 +00:00
gdk-win32.def Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdk.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdk.def Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkcc.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkcolor-win32.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkcolor.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkconfig.h Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11 to #ifdef 1999-09-29 23:47:22 +00:00
gdkcursor-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkcursor.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkdnd-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkdnd.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkdraw.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkdrawable-win32.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkevents-win32.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkevents.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkfont-win32.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkfont.c Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkgc-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkgc.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkglobals-win32.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkglobals.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkim-win32.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkim.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkimage-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkimage.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkinput-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkinput.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkinputprivate.h A few includes added for the picky MSVC compiler. 1999-10-02 22:53:45 +00:00
gdkmain-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkpixmap-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkpixmap.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkprivate-win32.h Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkprivate.h Don't use TextOutW for GDK_FONT_FONT fonts (which is all we have for now, 1999-10-13 21:46:33 +00:00
gdkproperty-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkproperty.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkregion-win32.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkregion.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkselection-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkselection.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkvisual-win32.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkvisual.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkwin32.h Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkwin32id.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
gdkwindow-win32.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkwindow.c Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkx.h Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
gdkxid.c Change GDK_WINDOWING_WIN32 usage to #ifdef also here. 1999-10-02 22:42:58 +00:00
makefile.cygwin Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00
makefile.msc Corresponding changes as in X11 backend. 1999-10-05 19:04:48 +00:00