| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkFontHost_DEFINED | 10 #ifndef SkFontHost_DEFINED |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 kRGB_LCDOrder = 0, //!< this is the default | 84 kRGB_LCDOrder = 0, //!< this is the default |
| 85 kBGR_LCDOrder = 1, | 85 kBGR_LCDOrder = 1, |
| 86 kNONE_LCDOrder = 2 | 86 kNONE_LCDOrder = 2 |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 /** @deprecated set on Device creation. */ | 89 /** @deprecated set on Device creation. */ |
| 90 static void SetSubpixelOrder(LCDOrder order); | 90 static void SetSubpixelOrder(LCDOrder order); |
| 91 /** @deprecated get from Device. */ | 91 /** @deprecated get from Device. */ |
| 92 static LCDOrder GetSubpixelOrder(); | 92 static LCDOrder GetSubpixelOrder(); |
| 93 | 93 |
| 94 #ifdef SK_BUILD_FOR_ANDROID | |
| 95 /** | |
| 96 * Return the number of font units per em. | |
| 97 * | |
| 98 * @param fontID the font to query. | |
| 99 * @return the number of font units per em or 0 on error. | |
| 100 */ | |
| 101 static uint32_t GetUnitsPerEm(SkFontID fontID); | |
| 102 #endif | |
| 103 | |
| 104 /** If Skia is running in a constrained environment and the typeface | 94 /** If Skia is running in a constrained environment and the typeface |
| 105 implementation is handle based, the typeface data may become | 95 implementation is handle based, the typeface data may become |
| 106 unavailable asynchronously. If a font host or scaler context method is | 96 unavailable asynchronously. If a font host or scaler context method is |
| 107 unable to access font data, it may call this function as a request to | 97 unable to access font data, it may call this function as a request to |
| 108 make the handle contained in the typeface useable. | 98 make the handle contained in the typeface useable. |
| 109 */ | 99 */ |
| 110 static void EnsureTypefaceAccessible(const SkTypeface& typeface); | 100 static void EnsureTypefaceAccessible(const SkTypeface& typeface); |
| 111 | 101 |
| 112 /** | 102 /** |
| 113 * DEPRECATED -- will be DESTROYED | 103 * DEPRECATED -- will be DESTROYED |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 */ | 261 */ |
| 272 static size_t GetTableData(SkFontID fontID, SkFontTableTag tag, | 262 static size_t GetTableData(SkFontID fontID, SkFontTableTag tag, |
| 273 size_t offset, size_t length, void* data); | 263 size_t offset, size_t length, void* data); |
| 274 | 264 |
| 275 /////////////////////////////////////////////////////////////////////////// | 265 /////////////////////////////////////////////////////////////////////////// |
| 276 | 266 |
| 277 friend class SkTypeface; | 267 friend class SkTypeface; |
| 278 }; | 268 }; |
| 279 | 269 |
| 280 #endif | 270 #endif |
| OLD | NEW |