]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/letest/SimpleFontInstance.h
2 *******************************************************************************
4 * Copyright (C) 1999-2007, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: SimpleFontInstance.h
10 * created on: 03/30/2006
11 * created by: Eric R. Mader
14 #ifndef __SIMPLEFONTINSTANCE_H
15 #define __SIMPLEFONTINSTANCE_H
17 #include "layout/LETypes.h"
18 #include "layout/LEFontInstance.h"
22 class SimpleFontInstance
: public LEFontInstance
30 const void *readFontTable(LETag tableTag
) const;
33 SimpleFontInstance(float pointSize
, LEErrorCode
&status
);
35 virtual ~SimpleFontInstance();
37 virtual const void *getFontTable(LETag tableTag
) const;
39 virtual le_int32
getUnitsPerEM() const;
41 virtual le_int32
getAscent() const;
43 virtual le_int32
getDescent() const;
45 virtual le_int32
getLeading() const;
47 // We really want to inherit this method from the superclass, but some compilers
48 // issue a warning if we don't implement it...
49 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
, const LECharMapper
*mapper
, le_bool filterZeroWidth
) const;
51 // We really want to inherit this method from the superclass, but some compilers
52 // issue a warning if we don't implement it...
53 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
, const LECharMapper
*mapper
) const;
55 virtual LEGlyphID
mapCharToGlyph(LEUnicode32 ch
) const;
57 virtual void getGlyphAdvance(LEGlyphID glyph
, LEPoint
&advance
) const;
59 virtual le_bool
getGlyphPoint(LEGlyphID glyph
, le_int32 pointNumber
, LEPoint
&point
) const;
61 float getXPixelsPerEm() const;
63 float getYPixelsPerEm() const;
65 float getScaleFactorX() const;
67 float getScaleFactorY() const;