]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/letest/SimpleFontInstance.h
3 *******************************************************************************
5 * Copyright (C) 1999-2006, International Business Machines
6 * Corporation and others. All Rights Reserved.
8 *******************************************************************************
9 * file name: SimpleFontInstance.h
11 * created on: 03/30/2006
12 * created by: Eric R. Mader
15 #ifndef __SIMPLEFONTINSTANCE_H
16 #define __SIMPLEFONTINSTANCE_H
20 #include "layout/LETypes.h"
21 #include "layout/LEFontInstance.h"
23 class SimpleFontInstance
: public LEFontInstance
31 const void *readFontTable(LETag tableTag
) const;
34 SimpleFontInstance(float pointSize
, LEErrorCode
&status
);
36 virtual ~SimpleFontInstance();
38 virtual const void *getFontTable(LETag tableTag
) const;
40 virtual le_int32
getUnitsPerEM() const;
42 virtual le_int32
getAscent() const;
44 virtual le_int32
getDescent() const;
46 virtual le_int32
getLeading() const;
48 // We really want to inherit this method from the superclass, but some compilers
49 // issue a warning if we don't implement it...
50 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
, const LECharMapper
*mapper
, le_bool filterZeroWidth
) const;
52 // We really want to inherit this method from the superclass, but some compilers
53 // issue a warning if we don't implement it...
54 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
, const LECharMapper
*mapper
) const;
56 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
) const;
58 virtual void getGlyphAdvance(LEGlyphID glyph
, LEPoint
&advance
) const;
60 virtual le_bool
getGlyphPoint(LEGlyphID glyph
, le_int32 pointNumber
, LEPoint
&point
) const;
62 float getXPixelsPerEm() const;
64 float getYPixelsPerEm() const;
66 float getScaleFactorX() const;
68 float getScaleFactorY() const;