Chromium Code Reviews| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 733 struct FontMetrics { | 733 struct FontMetrics { |
| 734 SkScalar fTop; //!< The greatest distance above the baseline fo r any glyph (will be <= 0) | 734 SkScalar fTop; //!< The greatest distance above the baseline fo r any glyph (will be <= 0) |
| 735 SkScalar fAscent; //!< The recommended distance above the baseline (will be <= 0) | 735 SkScalar fAscent; //!< The recommended distance above the baseline (will be <= 0) |
| 736 SkScalar fDescent; //!< The recommended distance below the baseline (will be >= 0) | 736 SkScalar fDescent; //!< The recommended distance below the baseline (will be >= 0) |
| 737 SkScalar fBottom; //!< The greatest distance below the baseline fo r any glyph (will be >= 0) | 737 SkScalar fBottom; //!< The greatest distance below the baseline fo r any glyph (will be >= 0) |
| 738 SkScalar fLeading; //!< The recommended distance to add between lin es of text (will be >= 0) | 738 SkScalar fLeading; //!< The recommended distance to add between lin es of text (will be >= 0) |
| 739 SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) | 739 SkScalar fAvgCharWidth; //!< the average charactor width (>= 0) |
| 740 SkScalar fMaxCharWidth; //!< the max charactor width (>= 0) | 740 SkScalar fMaxCharWidth; //!< the max charactor width (>= 0) |
| 741 SkScalar fXMin; //!< The minimum bounding box x value for all gl yphs | 741 SkScalar fXMin; //!< The minimum bounding box x value for all gl yphs |
| 742 SkScalar fXMax; //!< The maximum bounding box x value for all gl yphs | 742 SkScalar fXMax; //!< The maximum bounding box x value for all gl yphs |
| 743 SkScalar fXHeight; //!< the height of an 'x' in px, or 0 if no 'x' in face | 743 SkScalar fXHeight; //!< The height of an 'x' in px, or 0 if no 'x' in face |
| 744 SkScalar fCapHeight; //!< The cap height (will be => 0) | |
|
bungeman-skia
2013/12/12 17:12:35
add or '0' if cannot be determined here.
While yo
Yuki
2013/12/13 09:32:14
Done.
| |
| 744 }; | 745 }; |
| 745 | 746 |
| 746 /** Return the recommend spacing between lines (which will be | 747 /** Return the recommend spacing between lines (which will be |
| 747 fDescent - fAscent + fLeading). | 748 fDescent - fAscent + fLeading). |
| 748 If metrics is not null, return in it the font metrics for the | 749 If metrics is not null, return in it the font metrics for the |
| 749 typeface/pointsize/etc. currently set in the paint. | 750 typeface/pointsize/etc. currently set in the paint. |
| 750 @param metrics If not null, returns the font metrics for the | 751 @param metrics If not null, returns the font metrics for the |
| 751 current typeface/pointsize/etc setting in this | 752 current typeface/pointsize/etc setting in this |
| 752 paint. | 753 paint. |
| 753 @param scale If not 0, return width as if the canvas were scaled | 754 @param scale If not 0, return width as if the canvas were scaled |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1075 #ifdef SK_BUILD_FOR_ANDROID | 1076 #ifdef SK_BUILD_FOR_ANDROID |
| 1076 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1077 SkPaintOptionsAndroid fPaintOptionsAndroid; |
| 1077 | 1078 |
| 1078 // In order for the == operator to work properly this must be the last field | 1079 // In order for the == operator to work properly this must be the last field |
| 1079 // in the struct so that we can do a memcmp to this field's offset. | 1080 // in the struct so that we can do a memcmp to this field's offset. |
| 1080 uint32_t fGenerationID; | 1081 uint32_t fGenerationID; |
| 1081 #endif | 1082 #endif |
| 1082 }; | 1083 }; |
| 1083 | 1084 |
| 1084 #endif | 1085 #endif |
| OLD | NEW |