OLD | NEW |
1 | 1 |
2 | 2 |
3 /* | 3 /* |
4 * Copyright 2006 The Android Open Source Project | 4 * Copyright 2006 The Android Open Source Project |
5 * | 5 * |
6 * Use of this source code is governed by a BSD-style license that can be | 6 * Use of this source code is governed by a BSD-style license that can be |
7 * found in the LICENSE file. | 7 * found in the LICENSE file. |
8 */ | 8 */ |
9 | 9 |
10 | 10 |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 | 707 |
708 void setTextEncoding(TextEncoding encoding); | 708 void setTextEncoding(TextEncoding encoding); |
709 | 709 |
710 struct FontMetrics { | 710 struct FontMetrics { |
711 SkScalar fTop; //!< The greatest distance above the baseline fo
r any glyph (will be <= 0) | 711 SkScalar fTop; //!< The greatest distance above the baseline fo
r any glyph (will be <= 0) |
712 SkScalar fAscent; //!< The recommended distance above the baseline
(will be <= 0) | 712 SkScalar fAscent; //!< The recommended distance above the baseline
(will be <= 0) |
713 SkScalar fDescent; //!< The recommended distance below the baseline
(will be >= 0) | 713 SkScalar fDescent; //!< The recommended distance below the baseline
(will be >= 0) |
714 SkScalar fBottom; //!< The greatest distance below the baseline fo
r any glyph (will be >= 0) | 714 SkScalar fBottom; //!< The greatest distance below the baseline fo
r any glyph (will be >= 0) |
715 SkScalar fLeading; //!< The recommended distance to add between lin
es of text (will be >= 0) | 715 SkScalar fLeading; //!< The recommended distance to add between lin
es of text (will be >= 0) |
716 SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) | 716 SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) |
| 717 SkScalar fMaxCharWidth; //!< the max charactor width (>= 0) |
717 SkScalar fXMin; //!< The minimum bounding box x value for all gl
yphs | 718 SkScalar fXMin; //!< The minimum bounding box x value for all gl
yphs |
718 SkScalar fXMax; //!< The maximum bounding box x value for all gl
yphs | 719 SkScalar fXMax; //!< The maximum bounding box x value for all gl
yphs |
719 SkScalar fXHeight; //!< the height of an 'x' in px, or 0 if no 'x'
in face | 720 SkScalar fXHeight; //!< the height of an 'x' in px, or 0 if no 'x'
in face |
720 }; | 721 }; |
721 | 722 |
722 /** Return the recommend spacing between lines (which will be | 723 /** Return the recommend spacing between lines (which will be |
723 fDescent - fAscent + fLeading). | 724 fDescent - fAscent + fLeading). |
724 If metrics is not null, return in it the font metrics for the | 725 If metrics is not null, return in it the font metrics for the |
725 typeface/pointsize/etc. currently set in the paint. | 726 typeface/pointsize/etc. currently set in the paint. |
726 @param metrics If not null, returns the font metrics for the | 727 @param metrics If not null, returns the font metrics for the |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 #ifdef SK_BUILD_FOR_ANDROID | 1058 #ifdef SK_BUILD_FOR_ANDROID |
1058 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1059 SkPaintOptionsAndroid fPaintOptionsAndroid; |
1059 | 1060 |
1060 // In order for the == operator to work properly this must be the last field | 1061 // In order for the == operator to work properly this must be the last field |
1061 // in the struct so that we can do a memcmp to this field's offset. | 1062 // in the struct so that we can do a memcmp to this field's offset. |
1062 uint32_t fGenerationID; | 1063 uint32_t fGenerationID; |
1063 #endif | 1064 #endif |
1064 }; | 1065 }; |
1065 | 1066 |
1066 #endif | 1067 #endif |
OLD | NEW |