| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The Android Open Source Project | 2 * Copyright 2011 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkAdvancedTypefaceMetrics.h" | 8 #include "SkAdvancedTypefaceMetrics.h" |
| 9 #include "SkFontDescriptor.h" | 9 #include "SkFontDescriptor.h" |
| 10 #include "SkFontHost.h" | 10 #include "SkFontHost.h" |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 SkTypeface* SkTypeface::refMatchingStyle(Style style) const { | 247 SkTypeface* SkTypeface::refMatchingStyle(Style style) const { |
| 248 return this->onRefMatchingStyle(style); | 248 return this->onRefMatchingStyle(style); |
| 249 } | 249 } |
| 250 | 250 |
| 251 /////////////////////////////////////////////////////////////////////////////// | 251 /////////////////////////////////////////////////////////////////////////////// |
| 252 /////////////////////////////////////////////////////////////////////////////// | 252 /////////////////////////////////////////////////////////////////////////////// |
| 253 | 253 |
| 254 int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, | 254 int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, |
| 255 uint16_t glyphs[], int glyphCount) const { | 255 uint16_t glyphs[], int glyphCount) const { |
| 256 SkDebugf("onCharsToGlyphs unimplemented\n"); | 256 static bool printed = false; |
| 257 if (!printed) { |
| 258 // Only want to see this message once |
| 259 SkDebugf("\n *** onCharsToGlyphs unimplemented ***\n"); |
| 260 printed = true; |
| 261 } |
| 257 if (glyphs && glyphCount > 0) { | 262 if (glyphs && glyphCount > 0) { |
| 258 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); | 263 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); |
| 259 } | 264 } |
| 260 return 0; | 265 return 0; |
| 261 } | 266 } |
| OLD | NEW |