glyph.h.svn-base

来自「okular」· SVN-BASE 代码 · 共 42 行

SVN-BASE
42
字号
// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; c-brace-offset: 0; -*-#ifndef _GLYPH_H#define _GLYPH_H#include <QColor>#include <QImage>struct bitmap {  // width and height in pixels  quint16 w, h;  // scan-line width in bytes  quint16 bytes_wide;  // pointer to the bits  char* bits;};class glyph { public:  glyph();  ~glyph();  // address of bitmap in font file  long    addr;  QColor color;  // DVI units to move reference point  qint32 dvi_advance_in_units_of_design_size_by_2e20;  // x and y offset in pixels  short   x, y;  QImage shrunkenCharacter;  // x and y offset in pixels (shrunken bitmap)  short   x2, y2;};#endif //ifndef _GLYPH_H

⌨️ 快捷键说明

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