~ubuntu-branches/ubuntu/trusty/pango1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to pango/pangoatsui.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-02-23 10:42:39 UTC
  • mfrom: (1.6.2 upstream) (63.3.16 lucid)
  • Revision ID: james.westby@ubuntu.com-20100223104239-yt4u4nop2nqtw65f
Tags: 1.27.1-1
* New upstream development release:
  + debian/rules:
    - Include check-dist.mk to prevent accidental uploads to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  gpointer context_key;
34
34
 
35
35
  CGFontRef font_id;
 
36
  ATSFontRef font_ref;
36
37
 
37
38
  PangoFontMap *fontmap;
38
39
};
177
178
 
178
179
void
179
180
_pango_atsui_font_set_cgfont (PangoATSUIFont *font,
180
 
                                    CGFontRef      font_id)
 
181
                              CGFontRef      font_id)
181
182
{
182
183
  PangoATSUIFontPrivate *priv = font->priv;
183
184
 
184
185
  priv->font_id = font_id;
185
186
}
186
187
 
 
188
void
 
189
_pango_atsui_font_set_atsfont (PangoATSUIFont *font,
 
190
                               ATSFontRef      font_ref)
 
191
{
 
192
  PangoATSUIFontPrivate *priv = font->priv;
 
193
 
 
194
  priv->font_ref = font_ref;
 
195
}
 
196
 
187
197
/**
188
198
 * pango_atsui_font_get_cgfont:
189
199
 * @font: A #PangoATSUIFont
201
211
 
202
212
  return priv->font_id;
203
213
}
 
214
 
 
215
/**
 
216
 * pango_atsui_font_get_atsfont:
 
217
 * @font: A #PangoATSUIFont
 
218
 *
 
219
 * Returns the ATSFontRef of a font.
 
220
 *
 
221
 * Return value: the ATSFontRef associated to @font.
 
222
 *
 
223
 * Since: 1.28
 
224
 */
 
225
ATSFontRef
 
226
pango_atsui_font_get_atsfont (PangoATSUIFont *font)
 
227
{
 
228
  PangoATSUIFontPrivate *priv = font->priv;
 
229
 
 
230
  return priv->font_ref;
 
231
}