ATSUStyle				style; OSStatus				err;    CGAffineTransform		theTransform = CGAffineTransformMakeWithCairoFontScale(*scale); Fixed					theSize = FloatToFixed(CGSizeApplyAffineTransform(CGSizeMake(1.0, 1.0), theTransform).height); const ATSUAttributeTag  theFontStyleTags[] = { kATSUSizeTag }; const ByteCount         theFontStyleSizes[] = { sizeof(Fixed) }; ATSUAttributeValuePtr   theFontStyleValues[] = { &theSize };
ATSUStyle style; OSStatus err;
static ATSUStyle CreateSizedCopyOfStyle(ATSUStyle inStyle, cairo_font_scale_t	*scale){	ATSUStyle				style;	OSStatus				err;			// Set the style's size	CGAffineTransform		theTransform = CGAffineTransformMakeWithCairoFontScale(*scale);	Fixed					theSize = FloatToFixed(CGSizeApplyAffineTransform(CGSizeMake(1.0, 1.0), theTransform).height);	const ATSUAttributeTag  theFontStyleTags[] = { kATSUSizeTag };	const ByteCount         theFontStyleSizes[] = { sizeof(Fixed) };	ATSUAttributeValuePtr   theFontStyleValues[] = { &theSize };	err = ATSUCreateAndCopyStyle(inStyle, &style);		err = ATSUSetAttributes(	style,								sizeof(theFontStyleTags) / sizeof(ATSUAttributeTag),								theFontStyleTags, theFontStyleSizes, theFontStyleValues);			return style;}