jdk/src/share/native/sun/font/layout/ArabicLayoutEngine.h
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 3935 afcdb712a9c5
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#ifndef __ARABICLAYOUTENGINE_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#define __ARABICLAYOUTENGINE_H
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
#include "LETypes.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#include "LEFontInstance.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
#include "LEGlyphFilter.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#include "LayoutEngine.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
#include "OpenTypeLayoutEngine.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
#include "GlyphSubstitutionTables.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#include "GlyphDefinitionTables.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#include "GlyphPositioningTables.h"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * This class implements OpenType layout for Arabic fonts. It overrides
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * the characerProcessing method to assign the correct OpenType feature
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * tags for the Arabic contextual forms. It also overrides the adjustGlyphPositions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * method to guarantee that all vowel and accent glyphs have zero advance width.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
class ArabicOpenTypeLayoutEngine : public OpenTypeLayoutEngine
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
public:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * This is the main constructor. It constructs an instance of ArabicOpenTypeLayoutEngine for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * a particular font, script and language. It takes the GSUB table as a parameter since
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * LayoutEngine::layoutEngineFactory has to read the GSUB table to know that it has an
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     * Indic OpenType font.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * @param fontInstance - the font
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * @param scriptCode - the script
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @param langaugeCode - the language
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * @param gsubTable - the GSUB table
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * @see LayoutEngine::layoutEngineFactory
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * @see OpenTypeLayoutEngine
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * @see ScriptAndLanguageTags.h for script and language codes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    ArabicOpenTypeLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        le_int32 languageCode, le_int32 typoFlags, const GlyphSubstitutionTableHeader *gsubTable);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * This constructor is used when the font requires a "canned" GSUB table which can't be known
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * until after this constructor has been invoked.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * @param fontInstance - the font
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @param scriptCode - the script
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * @param langaugeCode - the language
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * @see OpenTypeLayoutEngine
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * @see ScriptAndLanguageTags.h for script and language codes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
    ArabicOpenTypeLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        le_int32 languageCode, le_int32 typoFlags);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * The destructor, virtual for correct polymorphic invocation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    virtual ~ArabicOpenTypeLayoutEngine();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
protected:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * This method does Arabic OpenType character processing. It assigns the OpenType feature
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * tags to the characters to generate the correct contextual forms and ligatures.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * Input parameters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * @param chars - the input character context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * @param offset - the index of the first character to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     * @param count - the number of characters to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * @param max - the number of characters in the input context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * @param rightToLeft - <code>TRUE</code> if the characters are in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     *     right to left directional run
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * Output parameters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * @param outChars - the output character arrayt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * @param charIndices - the output character index array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @param featureTags - the output feature tag array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * @param success - set to an error code if the operation fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * @return the output character count
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    virtual le_int32 characterProcessing(const LEUnicode chars[], le_int32 offset,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        le_int32 count, le_int32 max, le_bool rightToLeft,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        LEUnicode *&outChars, LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     * This method applies the GPOS table if it is present, otherwise it ensures that all vowel
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * and accent glyphs have a zero advance width by calling the adjustMarkGlyphs method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * If the font contains a GDEF table, that is used to identify voewls and accents. Otherwise
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * the character codes are used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * @param chars - the input character context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * @param offset - the offset of the first character to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @param count - the number of characters to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * @param reverse - <code>TRUE</code> if the glyphs in the glyph array have been reordered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * @param glyphs - the input glyph array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * @param glyphCount - the number of glyphs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @param positions - the position array, will be updated as needed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @param success - output parameter set to an error code if the operation fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
    // static void adjustMarkGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
    // le_bool rightToLeft, LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
 * The class implements OpenType layout for Arabic fonts which don't
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
 * contain a GSUB table, using a canned GSUB table based on Unicode
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
 * Arabic Presentation Forms. It overrides the mapCharsToGlyphs method
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
 * to use the Presentation Forms as logical glyph indices. It overrides the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
 * glyphPostProcessing method to convert the Presentation Forms to actual
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
 * glyph indices.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
 * @see ArabicOpenTypeLayoutEngine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
 * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
class UnicodeArabicOpenTypeLayoutEngine : public ArabicOpenTypeLayoutEngine
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
{
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
public:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * This constructs an instance of UnicodeArabicOpenTypeLayoutEngine for a specific font,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * script and language.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * @param fontInstance - the font
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * @param scriptCode - the script
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @param languageCode - the language
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @see LEFontInstance
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * @see ScriptAndLanguageTags.h for script and language codes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    UnicodeArabicOpenTypeLayoutEngine(const LEFontInstance *fontInstance,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        le_int32 scriptCode, le_int32 languageCode, le_int32 typoFlags);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * The destructor, virtual for correct polymorphic invocation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
    virtual ~UnicodeArabicOpenTypeLayoutEngine();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
protected:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * This method converts the Arabic Presentation Forms in the temp glyph array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * into actual glyph indices using ArabicOpenTypeLayoutEngine::mapCharsToGlyps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * Input paramters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * @param tempGlyphs - the input presentation forms
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * @param tempCharIndices - the input character index array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * @param tempGlyphCount - the number of Presentation Froms
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * Output parameters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @param glyphs - the output glyph index array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @param charIndices - the output character index array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @param success - set to an error code if the operation fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * @return the number of glyph indices in the output glyph index array
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    virtual le_int32 glyphPostProcessing(LEGlyphStorage &tempGlyphStorage,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * This method copies the input characters into the output glyph index array,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * for use by the canned GSUB table. It also generates the character index array.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * Input parameters:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * @param chars - the input character context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * @param offset - the offset of the first character to be mapped
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * @param count - the number of characters to be mapped
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * @param reverse - if <code>TRUE</code>, the output will be in reverse order
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * @param mirror - if <code>TRUE</code>, do character mirroring
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     * @param glyphStorage - the glyph storage object. Glyph and char index arrays will be updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     * @param success - set to an error code if the operation fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    virtual void mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        le_int32 count, le_bool reverse, le_bool mirror,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * This method ensures that all vowel and accent glyphs have a zero advance width by calling
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * the adjustMarkGlyphs method. The character codes are used to identify the vowel and mark
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * glyphs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * @param chars - the input character context
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     * @param offset - the offset of the first character to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * @param count - the number of characters to process
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * @param reverse - <code>TRUE</code> if the glyphs in the glyph array have been reordered
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * @param glyphStorage - the glyph storage object. The glyph positions will be updated as needed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * @param success - output parameter set to an error code if the operation fails
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @internal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
#endif