typemetric.h

来自「下载来的一个看图软件的源代码」· C头文件 代码 · 共 58 行

H
58
字号
// This may look like C code, but it is really -*- C++ -*-//// Copyright Bob Friesenhahn, 2001, 2002//// TypeMetric Definition//// Container for font type metrics//#if !defined (Magick_TypeMetric_header)#define Magick_TypeMetric_header#include "Magick++/Include.h"namespace Magick{  class MagickDLLDecl TypeMetric  {    friend class Image;  public:        TypeMetric ( void );    ~TypeMetric ( void );    // Ascent, the distance in pixels from the text baseline to the    // highest/upper grid coordinate used to place an outline point.    double         ascent ( void ) const;    // Descent, the distance in pixels from the baseline to the lowest    // grid coordinate used to place an outline point. Always a    // negative value.    double         descent ( void ) const;    // Text width in pixels.    double         textWidth ( void ) const;    // Text height in pixels.    double         textHeight ( void ) const;    // Maximum horizontal advance in pixels.    double         maxHorizontalAdvance ( void ) const;    //    // Public methods below this point are for Magick++ use only.    //  private:    MagickLib::TypeMetric  _typeMetric;  };} // namespace Magick//// Inlines//#endif // Magick_TypeMetric_header

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?