Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CDACOpenTypeLayoutEngine Class Reference

This class implements Indic OpenType layout for CDAC fonts. More...

#include <IndicLayoutEngine.h>

Inheritance diagram for CDACOpenTypeLayoutEngine:

IndicOpenTypeLayoutEngine OpenTypeLayoutEngine LayoutEngine List of all members.

Public Methods

 CDACOpenTypeLayoutEngine (LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const CDACLayout::ScriptInfo *scriptInfo)
 This constructs an instance of CDACOpenTypeLayoutEngine for a specific font, script and language. More...

virtual ~CDACOpenTypeLayoutEngine ()
 The destructor, virtual for correct polymorphic invocation.


Protected Methods

virtual le_int32 glyphPostProcessing (LEGlyphID tempGlyphs[], le_int32 tempCharIndices[], le_int32 tempGlyphCount, LEGlyphID *&glyphs, le_int32 *&charIndices)
 This method converts logical glyph indices to physical glyph indices. More...

virtual void mapCharsToGlyphs (const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, le_bool mirror, LEGlyphID *&glyphs, le_int32 *&charIndices)
 This method maps charcters to logical glyph indices. More...


Protected Attributes

const CDACLayout::ScriptInfo* fScriptInfo

Detailed Description

This class implements Indic OpenType layout for CDAC fonts.

Since CDAC fonts don't contain a GSUB table, it uses a canned GSUB table, using logical glyph indices. Each logical glyph may be rendered with several physical glyphs in the CDAC font. It uses the CDACLayout class to do the layout.

See also:
CDACLayout , IndicOpenTypeLayout

Definition at line 139 of file IndicLayoutEngine.h.


Constructor & Destructor Documentation

CDACOpenTypeLayoutEngine::CDACOpenTypeLayoutEngine ( LEFontInstance * fontInstance,
le_int32 scriptCode,
le_int32 languageCode,
const CDACLayout::ScriptInfo * scriptInfo )
 

This constructs an instance of CDACOpenTypeLayoutEngine for a specific font, script and language.

The scriptInfo parameter contains the information that CDACLayout needs to layout using the font, including the character to logical glyph mapping information, the canned GSUB table, and the map from logical to physical glyphs. This will be obtained by LayoutEngine::layoutEngineFactory to determine if the font is a CDAC font.

Parameters:
fontInstance   - the font
scriptCode   - the script
languageCode   - the language
scriptInfo   - the CDAC script information

See also:
LEFontInstance , CDACLayout , ScriptAndLanguageTags.h for script and language codes

CDACOpenTypeLayoutEngine::~CDACOpenTypeLayoutEngine ( ) [virtual]
 

The destructor, virtual for correct polymorphic invocation.


Member Function Documentation

le_int32 CDACOpenTypeLayoutEngine::glyphPostProcessing ( LEGlyphID tempGlyphs[],
le_int32 tempCharIndices[],
le_int32 tempGlyphCount,
LEGlyphID *& glyphs,
le_int32 *& charIndices ) [protected, virtual]
 

This method converts logical glyph indices to physical glyph indices.

Input paramters:

Parameters:
tempGlyphs   - the input "fake" glyph index array
tempCharIndices   - the input "fake" character index array
tempGlyphCount   - the number of "fake" glyph indices

Output parameters:
Parameters:
glyphs   - the output glyph index array
charIndices   - the output character index array

Returns:
the number of glyph indices in the output glyph index array

Reimplemented from OpenTypeLayoutEngine.

void CDACOpenTypeLayoutEngine::mapCharsToGlyphs ( const LEUnicode chars[],
le_int32 offset,
le_int32 count,
le_bool reverse,
le_bool mirror,
LEGlyphID *& glyphs,
le_int32 *& charIndices ) [protected, virtual]
 

This method maps charcters to logical glyph indices.

Input parameters:

Parameters:
chars   - the input character context
offset   - the offset of the first character to be mapped
count   - the number of characters to be mapped
reverse   - if true, the output should be in reverse order
mirror   - if true, map characters like parenthesis to their mirror image

Output parameters:
Parameters:
glyphs   - the glyph array
charIndices   - the character index array

Reimplemented from LayoutEngine.


Member Data Documentation

const CDACLayout::ScriptInfo * CDACOpenTypeLayoutEngine::fScriptInfo [protected]
 

Definition at line 167 of file IndicLayoutEngine.h.


The documentation for this class was generated from the following file:
Generated at Tue Dec 5 18:13:23 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000