blob: ec68e05492599d6a1aadc6008ec48ac274213559 [file] [log] [blame]
* 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_mac_DEFINED
#define SkTypeface_mac_DEFINED
#include "include/core/SkTypeface.h"
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#include <CoreFoundation/CoreFoundation.h>
#import <ApplicationServices/ApplicationServices.h>
#include <CoreText/CoreText.h>
* Like the other Typeface make methods, this returns a new reference to the
* corresponding typeface for the specified CTFontRef.
SK_API extern sk_sp<SkTypeface> SkMakeTypefaceFromCTFont(CTFontRef);
* Returns the platform-specific CTFontRef handle for a
* given SkTypeface. Note that the returned CTFontRef gets
* released when the source SkTypeface is destroyed.
* This method is deprecated. It may only be used by Blink Mac
* legacy code in special cases related to text-shaping
* with AAT fonts, clipboard handling and font fallback.
* See
SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face);
#endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#endif // SkTypeface_mac_DEFINED