Lines Matching defs:font
952 * that vary only slightly when we create our key into the font cache, since the font scaler
960 static SkMask::Format compute_mask_format(const SkFont& font) {
961 switch (font.getEdging()) {
994 void SkScalerContext::MakeRecAndEffects(const SkFont& font, const SkPaint& paint,
1004 SkTypeface* typeface = font.getTypefaceOrDefault();
1007 rec->fTextSize = font.getSize();
1008 rec->fPreScaleX = font.getScaleX();
1009 rec->fPreSkewX = font.getSkewX();
1034 if (font.isEmbolden()) {
1038 SkScalar fakeBoldScale = SkScalarInterpFunc(font.getSize(),
1042 SkScalar extra = font.getSize() * fakeBoldScale;
1069 rec->fMaskFormat = compute_mask_format(font);
1101 if (font.isEmbeddedBitmaps()) {
1104 if (font.isSubpixel()) {
1107 if (font.isForceAutoHinting()) {
1110 if (font.isLinearMetrics()) {
1113 if (font.isBaselineSnap()) {
1123 rec->setHinting(font.getHinting());
1154 const SkFont& font, const SkPaint& paint, const SkSurfaceProps& surfaceProps,
1159 MakeRecAndEffects(font, paint, surfaceProps, scalerContextFlags, deviceMatrix, &rec, effects);