+2007-01-24 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/fonts.c (pango_font_get_metrics),
+ (pango_font_get_font_map): Remove PANGO_IS_FONT() check. Just
+ do NULL-checking.
+
2007-01-23 Behdad Esfahbod <behdad@gnome.org>
Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE'
#include "pango-fontmap.h"
#include "pango-impl-utils.h"
-static const char bad_font_warning[] = "%s called with bad font, expect ugly output";
+static const char bad_font_warning[] = "%s called with null font argument, expect ugly output";
struct _PangoFontDescription
{
pango_font_get_metrics (PangoFont *font,
PangoLanguage *language)
{
- if (G_UNLIKELY (!PANGO_IS_FONT (font)))
+ if (G_UNLIKELY (!font))
{
PangoFontMetrics *metrics;
PangoFontMap *
pango_font_get_font_map (PangoFont *font)
{
- if (G_UNLIKELY (!PANGO_IS_FONT (font)))
+ if (G_UNLIKELY (!font))
{
if (!_pango_warning_history.get_font_map)