diff options
Diffstat (limited to 'include/ports/SkTypeface_win.h')
-rw-r--r-- | include/ports/SkTypeface_win.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h index 88678d1..6da843f 100644 --- a/include/ports/SkTypeface_win.h +++ b/include/ports/SkTypeface_win.h @@ -1,20 +1,13 @@ -/* - 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. +/* + * Copyright 2011 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + #ifndef SkTypeface_win_DEFINED #define SkTypeface_win_DEFINED @@ -25,7 +18,15 @@ * corresponding typeface for the specified logfont. The caller is responsible * for calling unref() when it is finished. */ -SK_API extern SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); +SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); + +/** + * Copy the LOGFONT associated with this typeface into the lf parameter. Note + * that the lfHeight will need to be set afterwards, since the typeface does + * not track this (the paint does). + * typeface may be NULL, in which case we return the logfont for the default font. + */ +SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf); #endif |