Lines Matching defs:SkFont
22 /** \class SkFont
23 SkFont controls options applied when drawing and measuring text.
25 class SK_API SkFont {
35 /** Constructs SkFont with default values.
37 @return default initialized SkFont
39 SkFont();
41 /** Constructs SkFont with default values with SkTypeface and size in points.
45 @return initialized SkFont
47 SkFont(sk_sp<SkTypeface> typeface, SkScalar size);
49 /** Constructs SkFont with default values with SkTypeface.
52 @return initialized SkFont
54 explicit SkFont(sk_sp<SkTypeface> typeface);
57 /** Constructs SkFont with default values with SkTypeface and size in points,
65 @return initialized SkFont
67 SkFont(sk_sp<SkTypeface> typeface, SkScalar size, SkScalar scaleX, SkScalar skewX);
70 /** Compares SkFont and font, and returns true if they are equivalent.
74 @return true if SkFont pair are equivalent
76 bool operator==(const SkFont& font) const;
78 /** Compares SkFont and font, and returns true if they are not equivalent.
82 @return true if SkFont pair are not equivalent
84 bool operator!=(const SkFont& font) const { return !(*this == font); }
190 @return initialized SkFont
192 SkFont makeWithSize(SkScalar size) const;