/** Unrotated variant of fCTFont. * * In 10.10.1 CTFontGetAdvancesForGlyphs applies the font transform to the width of the * advances, but always sets the height to 0. This font is used to get the advances of the * unrotated glyph, and then the rotation is applied separately. * * CT vertical metrics are pre-rotated (in em space, before transform) 90deg clock-wise. * This makes kCTFontOrientationDefault dangerous, because the metrics from * kCTFontOrientationHorizontal are in a different space from kCTFontOrientationVertical. * With kCTFontOrientationVertical the advances must be unrotated. * * Sometimes, creating a copy of a CTFont with the same size but different trasform will select * different underlying font data. As a result, avoid ever creating more than one CTFont per * SkScalerContext to ensure that only one CTFont is used. * * As a result of the above (and other constraints) this font contains the size, but not the * transform. The transform must always be applied separately.
*/
SkUniqueCFRef<CTFontRef> fCTFont;
/** The transform without the font size. */
CGAffineTransform fTransform;
CGAffineTransform fInvTransform;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.