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

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

Issue 23555004: export SkFontMgr_New_... experimental functions for testing in chrome (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « gm/fontmgr.cpp ('k') | src/ports/SkFontHost_win.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
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9
10
11 #ifndef SkTypeface_win_DEFINED 8 #ifndef SkTypeface_win_DEFINED
12 #define SkTypeface_win_DEFINED 9 #define SkTypeface_win_DEFINED
13 10
14 #include "SkTypeface.h" 11 #include "SkTypeface.h"
15 12
16 /** 13 /**
17 * Like the other Typeface create methods, this returns a new reference to the 14 * Like the other Typeface create methods, this returns a new reference to the
18 * corresponding typeface for the specified logfont. The caller is responsible 15 * corresponding typeface for the specified logfont. The caller is responsible
19 * for calling unref() when it is finished. 16 * for calling unref() when it is finished.
20 */ 17 */
21 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); 18 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&);
22 19
23 /** 20 /**
24 * Copy the LOGFONT associated with this typeface into the lf parameter. Note 21 * Copy the LOGFONT associated with this typeface into the lf parameter. Note
25 * that the lfHeight will need to be set afterwards, since the typeface does 22 * that the lfHeight will need to be set afterwards, since the typeface does
26 * not track this (the paint does). 23 * not track this (the paint does).
27 * typeface may be NULL, in which case we return the logfont for the default fo nt. 24 * typeface may be NULL, in which case we return the logfont for the default fo nt.
28 */ 25 */
29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf); 26 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
30 27
31 /** 28 /**
32 * Set an optional callback to ensure that the data behind a LOGFONT is loaded . 29 * Set an optional callback to ensure that the data behind a LOGFONT is loaded .
33 * This will get called if Skia tries to access the data but hits a failure. 30 * This will get called if Skia tries to access the data but hits a failure.
34 * Normally this is null, and is only required if the font data needs to be 31 * Normally this is null, and is only required if the font data needs to be
35 * remotely (re)loaded. 32 * remotely (re)loaded.
36 */ 33 */
37 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); 34 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&));
38 35
36 // Experimental!
37 //
38 class SkFontMgr;
39 SK_API SkFontMgr* SkFontMgr_New_GDI();
40 SK_API SkFontMgr* SkFontMgr_New_DirectWrite();
41
39 #endif 42 #endif
OLDNEW
« no previous file with comments | « gm/fontmgr.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698