~ubuntu-branches/ubuntu/feisty/pango1.0/feisty

« back to all changes in this revision

Viewing changes to pango/pangocairo-atsuifont.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-04-10 00:59:24 UTC
  • mfrom: (20.1.23 feisty)
  • Revision ID: james.westby@ubuntu.com-20070410005924-bbuu8vi6fw9f1fn1
Tags: 1.16.2-0ubuntu1
* New upstream version
  - Fixed various bug in the OpenType Layout code
  - Improved documentation
  - Improved ATSUI backend
  - Misc build system fixes
  - Bugs fixed in this release:
    - pangowin32-fontmap.c:using function without prototype
    - Don't create coverage every time it's asked for

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * pangocairo-atsuifont.c
3
3
 *
4
4
 * Copyright (C) 2000-2005 Red Hat Software
5
 
 * Copyright (C) 2005 Imendio AB
 
5
 * Copyright (C) 2005-2007 Imendio AB
6
6
 *
7
7
 * This library is free software; you can redistribute it and/or
8
8
 * modify it under the terms of the GNU Library General Public
263
263
PangoATSUIFont *
264
264
_pango_cairo_atsui_font_new (PangoCairoATSUIFontMap     *cafontmap,
265
265
                             PangoContext               *context,
266
 
                             const char                 *postscript_name,
 
266
                             PangoATSUIFace             *face,
267
267
                             const PangoFontDescription *desc)
268
268
{
 
269
  const char *postscript_name;
269
270
  PangoCairoATSUIFont *cafont;
270
271
  PangoATSUIFont *afont;
271
272
  CFStringRef cfstr;
273
274
  const PangoMatrix *pango_ctm;
274
275
  ATSUFontID font_id;
275
276
 
 
277
  postscript_name = _pango_atsui_face_get_postscript_name (face);
276
278
  cfstr = CFStringCreateWithCString (NULL, postscript_name,
277
279
                                     kCFStringEncodingUTF8);
278
280
 
288
290
  afont = PANGO_ATSUI_FONT (cafont);
289
291
 
290
292
  afont->desc = pango_font_description_copy (desc);
291
 
  afont->postscript_name = g_strdup (postscript_name);
 
293
  afont->face = face;
292
294
 
293
295
  cafont->size = (double) pango_font_description_get_size (desc) / PANGO_SCALE;
294
296
  cafont->font_id = font_id;