export SkCreateTypefaceFromLOGFONT
git-svn-id: http://skia.googlecode.com/svn/trunk@886 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
b0a984d5a6
commit
9b74b1114a
31
include/ports/SkTypeface_win.h
Normal file
31
include/ports/SkTypeface_win.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
Copyright 2011 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef SkTypeface_win_DEFINED
|
||||
#define SkTypeface_win_DEFINED
|
||||
|
||||
#include "SkTypeface.h"
|
||||
|
||||
/**
|
||||
* Like the other Typeface create methods, this returns a new reference to the
|
||||
* corresponding typeface for the specified logfont. The caller is responsible
|
||||
* for calling unref() when it is finished.
|
||||
*/
|
||||
extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&);
|
||||
|
||||
#endif
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "SkAdvancedTypefaceMetrics.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkThread.h"
|
||||
#include "SkTypeface_win.h"
|
||||
#include "SkUtils.h"
|
||||
|
||||
#ifdef WIN32
|
||||
@ -29,15 +30,6 @@
|
||||
#include "tchar.h"
|
||||
#include "Usp10.h"
|
||||
|
||||
// Export this for callers that already have a LOGFONT created
|
||||
/**
|
||||
* Return a new typeface that best fits the specified LOGFONT. The typeface
|
||||
* should be treated as "new" in that the caller is now an owner (since
|
||||
* typeface is reference counted), though the actual typeface may be part of
|
||||
* an internal cache, so that subsequent requests may return the same ptr.
|
||||
*/
|
||||
extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT& lf);
|
||||
|
||||
// client3d has to undefine this for now
|
||||
#define CAN_USE_LOGFONT_NAME
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user