mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
Use italic instead of oblique in font aliases.
2000-12-05 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkpango-fb.c: Use italic instead of oblique in font aliases. * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic, _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for other unsupported functions.
This commit is contained in:
parent
c149ce5963
commit
b7118c8094
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -1,3 +1,12 @@
|
||||
2000-12-05 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* gdk/linux-fb/gdkpango-fb.c:
|
||||
Use italic instead of oblique in font aliases.
|
||||
|
||||
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
|
||||
_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
|
||||
other unsupported functions.
|
||||
|
||||
2000-12-04 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
|
||||
|
@ -64,10 +64,10 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Sans", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Sans", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Arial", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"URW Gothic L", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Arial", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"URW Gothic L", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -78,9 +78,9 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Sans", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Sans", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Arial", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Arial", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"URW Gothic L", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
@ -94,10 +94,10 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Serif", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Serif", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Times New Roman", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"URW Bookman L", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Times New Roman", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"URW Bookman L", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -108,10 +108,10 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Serif", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Serif", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Times New Roman", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"URW Bookman L", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Times New Roman", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"URW Bookman L", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
|
||||
@ -124,10 +124,10 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Monospace", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Monospace", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Courier New", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Courier", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Courier New", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
{"Courier", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_NORMAL, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -138,10 +138,10 @@ static PangoFBAlias alias_table[] =
|
||||
}
|
||||
},
|
||||
{
|
||||
{"Monospace", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Monospace", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{
|
||||
{"Courier New", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Courier", PANGO_STYLE_OBLIQUE, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Courier New", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
{"Courier", PANGO_STYLE_ITALIC, PANGO_VARIANT_NORMAL, PANGO_WEIGHT_BOLD, PANGO_STRETCH_NORMAL},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
@ -443,6 +443,15 @@ gdk_fb_fill_span_generic (GdkDrawable *drawable,
|
||||
spot.green = ~spot.green;
|
||||
spot.blue = ~spot.blue;
|
||||
}
|
||||
else if (func == GDK_XOR)
|
||||
{
|
||||
(gc_private->get_color) (drawable, gc, curx, y, &spot);
|
||||
spot.pixel ^= gc_private->values.foreground.pixel;
|
||||
}
|
||||
else if (func != GDK_COPY)
|
||||
{
|
||||
g_warning ("Unsupported GdkFunction %d\n", func);
|
||||
}
|
||||
else if (ts)
|
||||
{
|
||||
int wid, hih;
|
||||
@ -1165,7 +1174,7 @@ _gdk_fb_gc_calc_state (GdkGC *gc,
|
||||
if (!gc_private->values.clip_mask &&
|
||||
!gc_private->values.tile &&
|
||||
!gc_private->values.stipple &&
|
||||
gc_private->values.function != GDK_INVERT)
|
||||
gc_private->values.function == GDK_COPY)
|
||||
{
|
||||
switch (gc_private->depth)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user