| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 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 "SkBase64.h" | 9 #include "SkBase64.h" |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| (...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 DeleteDC(hdc); | 1848 DeleteDC(hdc); |
| 1849 | 1849 |
| 1850 return info; | 1850 return info; |
| 1851 } | 1851 } |
| 1852 | 1852 |
| 1853 //Dummy representation of a Base64 encoded GUID from create_unique_font_name. | 1853 //Dummy representation of a Base64 encoded GUID from create_unique_font_name. |
| 1854 #define BASE64_GUID_ID "XXXXXXXXXXXXXXXXXXXXXXXX" | 1854 #define BASE64_GUID_ID "XXXXXXXXXXXXXXXXXXXXXXXX" |
| 1855 //Length of GUID representation from create_id, including NULL terminator. | 1855 //Length of GUID representation from create_id, including NULL terminator. |
| 1856 #define BASE64_GUID_ID_LEN SK_ARRAY_COUNT(BASE64_GUID_ID) | 1856 #define BASE64_GUID_ID_LEN SK_ARRAY_COUNT(BASE64_GUID_ID) |
| 1857 | 1857 |
| 1858 SK_COMPILE_ASSERT(BASE64_GUID_ID_LEN < LF_FACESIZE, GUID_longer_than_facesize); | 1858 static_assert(BASE64_GUID_ID_LEN < LF_FACESIZE, "GUID_longer_than_facesize"); |
| 1859 | 1859 |
| 1860 /** | 1860 /** |
| 1861 NameID 6 Postscript names cannot have the character '/'. | 1861 NameID 6 Postscript names cannot have the character '/'. |
| 1862 It would be easier to hex encode the GUID, but that is 32 bytes, | 1862 It would be easier to hex encode the GUID, but that is 32 bytes, |
| 1863 and many systems have issues with names longer than 28 bytes. | 1863 and many systems have issues with names longer than 28 bytes. |
| 1864 The following need not be any standard base64 encoding. | 1864 The following need not be any standard base64 encoding. |
| 1865 The encoded value is never decoded. | 1865 The encoded value is never decoded. |
| 1866 */ | 1866 */ |
| 1867 static const char postscript_safe_base64_encode[] = | 1867 static const char postscript_safe_base64_encode[] = |
| 1868 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | 1868 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2507 | 2507 |
| 2508 private: | 2508 private: |
| 2509 SkTDArray<ENUMLOGFONTEX> fLogFontArray; | 2509 SkTDArray<ENUMLOGFONTEX> fLogFontArray; |
| 2510 }; | 2510 }; |
| 2511 | 2511 |
| 2512 /////////////////////////////////////////////////////////////////////////////// | 2512 /////////////////////////////////////////////////////////////////////////////// |
| 2513 | 2513 |
| 2514 SkFontMgr* SkFontMgr_New_GDI() { | 2514 SkFontMgr* SkFontMgr_New_GDI() { |
| 2515 return SkNEW(SkFontMgrGDI); | 2515 return SkNEW(SkFontMgrGDI); |
| 2516 } | 2516 } |
| OLD | NEW |