/* * << H a r u free pdf library >> -- PdfMbFontDef_SimHei.cc * * Copyright (c) 1999-2003 Takeshi Kanno * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. * It is provided "as is" without express or implied warranty. * */ #include "libharu_cnsfonts.h" /*---------------------------------------------------------------------------*/ /*----- SimHei Font ---------------------------------------------------------*/ void PdfSimHeiFontDef::Init() { PDF_DEBUG_PRINT(("PdfSimHeiFontDef %X::Init().\n", (int)this)); SetBaseFont("SimHei"); fAscent = 859; fDescent = -141; fCapHeight = 859; fFlags = PDF_FONT_SYMBOLIC + PDF_FONT_FIXED_WIDTH; fFontBBox.left = 0; fFontBBox.top = 859; fFontBBox.right = 1000; fFontBBox.bottom = -141; fItalicAngle = 0; fStemV = 78; fMissingWidth = 500; AddWidths1(666, 699, 500); AddWidths1(814, 939, 500); AddWidths1(7716, 7716, 500); } /*---------------------------------------------------------------------------*/ /*----- SimHei Font (Bold) --------------------------------------------------*/ void PdfSimHeiBoldFontDef::Init() { PdfSimHeiFontDef::Init(); SetBaseFont("SimHei,Bold"); fFlags = PDF_FONT_SYMBOLIC + PDF_FONT_FIXED_WIDTH + PDF_FONT_FOURCE_BOLD; fStemV = 156; } /*---------------------------------------------------------------------------*/ /*----- SimHei Font (Italic) ------------------------------------------------*/ void PdfSimHeiItalicFontDef::Init() { PdfSimHeiFontDef::Init(); SetBaseFont("SimHei,Italic"); fFlags = PDF_FONT_SYMBOLIC + PDF_FONT_FIXED_WIDTH; fItalicAngle = -11; } /*---------------------------------------------------------------------------*/ /*----- SimHei Font (Bold-Italic) -------------------------------------------*/ void PdfSimHeiBoldItalicFontDef::Init() { PdfSimHeiFontDef::Init(); SetBaseFont("SimHei,BoldItalic"); fFlags = PDF_FONT_SYMBOLIC + PDF_FONT_FIXED_WIDTH + PDF_FONT_FOURCE_BOLD; fItalicAngle = -11; fStemV = 156; } /*---------------------------------------------------------------------------*/