Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: include/ports/SkTypeface_mac.h

Issue 692553002: Add a flag indicating locally-created fonts to SkCreateTypefaceFromCTFont (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: just add isLocal flag to SkCreateTypefaceFromCTFont Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 10
11 #ifndef SkTypeface_mac_DEFINED 11 #ifndef SkTypeface_mac_DEFINED
12 #define SkTypeface_mac_DEFINED 12 #define SkTypeface_mac_DEFINED
13 13
14 #include "SkTypeface.h" 14 #include "SkTypeface.h"
15 #ifdef SK_BUILD_FOR_MAC 15 #ifdef SK_BUILD_FOR_MAC
16 #import <ApplicationServices/ApplicationServices.h> 16 #import <ApplicationServices/ApplicationServices.h>
17 #endif 17 #endif
18 18
19 #ifdef SK_BUILD_FOR_IOS 19 #ifdef SK_BUILD_FOR_IOS
20 #include <CoreText/CoreText.h> 20 #include <CoreText/CoreText.h>
21 #endif 21 #endif
22 /** 22 /**
23 * Like the other Typeface create methods, this returns a new reference to the 23 * Like the other Typeface create methods, this returns a new reference to the
24 * corresponding typeface for the specified CTFontRef. The caller must call 24 * corresponding typeface for the specified CTFontRef. The caller must call
25 * unref() when it is finished. 25 * unref() when it is finished.
26 * Set isLocalStream to true if font is creread dynamically by the caller and s hould
27 * be serialized entirely (with glyphs), rather than by storing just font name.
26 */ 28 */
27 SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef); 29 SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef, bool isLocalStre am = false);
28 30
29 #endif 31 #endif
OLDNEW
« no previous file with comments | « no previous file | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698