Home | History | Annotate | Download | only in ports
      1 
      2 /*
      3  * Copyright 2011 Google Inc.
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 
      9 
     10 
     11 #ifndef SkTypeface_win_DEFINED
     12 #define SkTypeface_win_DEFINED
     13 
     14 #include "SkTypeface.h"
     15 
     16 /**
     17  *  Like the other Typeface create methods, this returns a new reference to the
     18  *  corresponding typeface for the specified logfont. The caller is responsible
     19  *  for calling unref() when it is finished.
     20  */
     21 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&);
     22 
     23 /**
     24  *  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
     26  *  not track this (the paint does).
     27  *  typeface may be NULL, in which case we return the logfont for the default font.
     28  */
     29 SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
     30 
     31 #endif
     32 
     33