ICU-1264 use namespace where available.
X-SVN-Rev: 6256
This commit is contained in:
parent
28f52a858c
commit
a53e8c0623
@ -13,6 +13,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint32 AlternateSubstitutionSubtable::process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter) const
|
||||
{
|
||||
// NOTE: For now, we'll just pick the first alternative...
|
||||
@ -42,3 +44,5 @@ le_uint32 AlternateSubstitutionSubtable::process(GlyphIterator *glyphIterator, c
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "GlyphSubstitutionTables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct AlternateSetTable
|
||||
{
|
||||
le_uint16 glyphCount;
|
||||
@ -28,4 +30,5 @@ struct AlternateSubstitutionSubtable : GlyphSubstitutionSubtable
|
||||
le_uint32 process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter = NULL) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "AnchorTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
void AnchorTable::getAnchor(LEGlyphID glyphID, const LEFontInstance *fontInstance,
|
||||
LEPoint &anchor) const
|
||||
{
|
||||
@ -97,5 +99,5 @@ void Format3AnchorTable::getAnchor(const LEFontInstance *fontInstance, LEPoint &
|
||||
fontInstance->pixelsToUnits(pixels, anchor);
|
||||
}
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "LEFontInstance.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct AnchorTable
|
||||
{
|
||||
le_uint16 anchorFormat;
|
||||
@ -42,7 +44,7 @@ struct Format3AnchorTable : AnchorTable
|
||||
void getAnchor(const LEFontInstance *fontInstance, LEPoint &anchor) const;
|
||||
};
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include "ArabicShaping.h"
|
||||
#include "HebrewShaping.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class CharSubstitutionFilter : public LEGlyphFilter
|
||||
{
|
||||
private:
|
||||
@ -234,5 +236,5 @@ void UnicodeArabicOpenTypeLayoutEngine::adjustGlyphPositions(const LEUnicode cha
|
||||
adjustMarkGlyphs((const LEGlyphID *) &chars[offset], count, reverse, &filter, positions, success);
|
||||
}
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "GlyphPositioningTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* This class implements OpenType layout for Arabic fonts. It overrides
|
||||
* the characerProcessing method to assign the correct OpenType feature
|
||||
@ -194,5 +196,6 @@ protected:
|
||||
virtual void adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphID glyphs[], le_int32 glyphCount, float positions[], LEErrorCode &success);
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "ArabicShaping.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint8 ArabicShaping::glyphSubstitutionTable[] = {
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x24, 0x00, 0x56, 0x00, 0x01, 0x61, 0x72, 0x61, 0x62,
|
||||
0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x04, 0x00, 0x01, 0x00, 0x03,
|
||||
@ -360,3 +362,4 @@ le_uint8 ArabicShaping::glyphDefinitionTable[] = {
|
||||
0xFE, 0xFC, 0x00, 0x02
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include "OpenTypeTables.h"
|
||||
#include "ArabicShaping.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
enum {
|
||||
_c_ = ArabicShaping::ST_NOSHAPE_DUAL,
|
||||
_d_ = ArabicShaping::ST_DUAL,
|
||||
@ -239,3 +241,4 @@ LEUnicode CharShaper::getToIsolateShape(LEUnicode ch)
|
||||
return isolateShapes[ch - 0x0621];
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class Shaper
|
||||
{
|
||||
public:
|
||||
@ -100,5 +102,5 @@ private:
|
||||
static LEUnicode getToIsolateShape(LEUnicode ch);
|
||||
};
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "ValueRecords.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct AttachmentPositioningSubtable : GlyphPositioningSubtable
|
||||
{
|
||||
Offset baseCoverageTableOffset;
|
||||
@ -30,5 +32,6 @@ inline le_int32 AttachmentPositioningSubtable::getBaseCoverage(LEGlyphID baseGly
|
||||
return getGlyphCoverage(baseCoverageTableOffset, baseGlyphID);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "ClassDefinitionTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_int32 ClassDefinitionTable::getGlyphClass(LEGlyphID glyphID) const
|
||||
{
|
||||
switch(SWAPW(classFormat)) {
|
||||
@ -113,3 +115,5 @@ le_bool ClassDefFormat2Table::hasGlyphClass(le_int32 glyphClass) const
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct ClassDefinitionTable
|
||||
{
|
||||
le_uint16 classFormat;
|
||||
@ -45,4 +47,5 @@ struct ClassDefFormat2Table : ClassDefinitionTable
|
||||
le_bool hasGlyphClass(le_int32 glyphClass) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "MorphTables.h"
|
||||
#include "MorphStateTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct ContextualGlyphInsertionHeader : MorphStateTableHeader
|
||||
{
|
||||
};
|
||||
@ -36,4 +38,5 @@ struct LigatureSubstitutionStateEntry : StateEntry
|
||||
ByteOffset markedInsertionListOffset;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "ContextualGlyphSubstProc.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
ContextualGlyphSubstitutionProcessor::ContextualGlyphSubstitutionProcessor(const MorphSubtableHeader *morphSubtableHeader)
|
||||
: StateTableProcessor(morphSubtableHeader)
|
||||
{
|
||||
@ -69,3 +71,5 @@ ByteOffset ContextualGlyphSubstitutionProcessor::processStateEntry(LEGlyphID *gl
|
||||
void ContextualGlyphSubstitutionProcessor::endStateTable()
|
||||
{
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "StateTableProcessor.h"
|
||||
#include "ContextualGlyphSubstitution.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class ContextualGlyphSubstitutionProcessor : public StateTableProcessor
|
||||
{
|
||||
public:
|
||||
@ -39,4 +41,5 @@ protected:
|
||||
const ContextualGlyphSubstitutionHeader *contextualGlyphSubstitutionHeader;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "StateTables.h"
|
||||
#include "MorphTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct ContextualGlyphSubstitutionHeader : MorphStateTableHeader
|
||||
{
|
||||
ByteOffset substitutionTableOffset;
|
||||
@ -31,4 +33,5 @@ struct ContextualGlyphSubstitutionStateEntry : StateEntry
|
||||
WordOffset currOffset;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "CoverageTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/*
|
||||
NOTE: This could be optimized somewhat by keeping track
|
||||
of the previous sequenceIndex in the loop and doing next()
|
||||
@ -464,3 +466,5 @@ le_uint32 ChainingContextualSubstitutionFormat3Subtable::process(const LookupPro
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LookupProcessor.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct SubstitutionLookupRecord
|
||||
{
|
||||
le_uint16 sequenceIndex;
|
||||
@ -193,4 +195,5 @@ struct ChainingContextualSubstitutionFormat3Subtable
|
||||
le_uint32 process(const LookupProcessor *lookupProcessor, GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "CoverageTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_int32 CoverageTable::getGlyphCoverage(LEGlyphID glyphID) const
|
||||
{
|
||||
switch(SWAPW(coverageFormat))
|
||||
@ -80,3 +82,5 @@ le_int32 CoverageFormat2Table::getGlyphCoverage(LEGlyphID glyphID) const
|
||||
|
||||
return startCoverageIndex + (glyphID - firstInRange);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct CoverageTable
|
||||
{
|
||||
le_uint16 coverageFormat;
|
||||
@ -34,5 +36,5 @@ struct CoverageFormat2Table : CoverageTable
|
||||
le_int32 getGlyphCoverage(LEGlyphID glyphID) const;
|
||||
};
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "LEFontInstance.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* This class is an instance of LECharMapper which
|
||||
* implements control character filtering and bidi
|
||||
@ -47,4 +49,5 @@ public:
|
||||
LEUnicode32 mapChar(LEUnicode32 ch) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint16 DeviceTable::fieldMasks[] = {0x0003, 0x000F, 0x00FF};
|
||||
le_uint16 DeviceTable::fieldSignBits[] = {0x0002, 0x0008, 0x0080};
|
||||
le_uint16 DeviceTable::fieldBits[] = { 2, 4, 8};
|
||||
@ -40,3 +42,5 @@ le_int16 DeviceTable::getAdjustment(le_uint16 ppem) const
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct DeviceTable
|
||||
{
|
||||
le_uint16 startSize;
|
||||
@ -28,7 +30,7 @@ private:
|
||||
static le_uint16 fieldBits[];
|
||||
};
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "Features.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const FeatureTable *FeatureListTable::getFeatureTable(le_uint16 featureIndex, LETag *featureTag) const
|
||||
{
|
||||
if (featureIndex >= SWAPW(featureCount)) {
|
||||
@ -23,3 +25,4 @@ const FeatureTable *FeatureListTable::getFeatureTable(le_uint16 featureIndex, LE
|
||||
return (const FeatureTable *) ((char *) this + SWAPW(featureTableOffset));
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct FeatureRecord
|
||||
{
|
||||
ATag featureTag;
|
||||
@ -32,4 +34,5 @@ struct FeatureListTable
|
||||
const FeatureTable *getFeatureTable(le_uint16 featureIndex, LETag *featureTag) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "GDEFMarkFilter.h"
|
||||
#include "GlyphDefinitionTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable)
|
||||
{
|
||||
classDefTable = gdefTable->getGlyphClassDefinitionTable();
|
||||
@ -26,3 +28,5 @@ le_bool GDEFMarkFilter::accept(LEGlyphID glyph) const
|
||||
|
||||
return glyphClass == gcdMarkGlyph;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "LEGlyphFilter.h"
|
||||
#include "GlyphDefinitionTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class GDEFMarkFilter : public LEGlyphFilter
|
||||
{
|
||||
private:
|
||||
@ -24,5 +26,5 @@ public:
|
||||
virtual le_bool accept(LEGlyphID glyph) const;
|
||||
};
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -12,6 +12,8 @@
|
||||
|
||||
#include "MorphTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
GXLayoutEngine::GXLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const MorphTableHeader *morphTable)
|
||||
: LayoutEngine(fontInstance, scriptCode, languageCode), fMorphTable(morphTable)
|
||||
{
|
||||
@ -61,3 +63,4 @@ void GXLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offs
|
||||
// FIXME: no positional processing yet...
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -16,6 +16,8 @@
|
||||
|
||||
#include "MorphTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* This class implements layout for QuickDraw GX or Apple Advanced Typograyph (AAT)
|
||||
* fonts. A font is a GX or AAT font if it contains a 'mort' table. See Apple's
|
||||
@ -96,5 +98,6 @@ protected:
|
||||
le_int32 glyphCount, float positions[], LEErrorCode &success);
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const GlyphClassDefinitionTable *GlyphDefinitionTableHeader::getGlyphClassDefinitionTable() const
|
||||
{
|
||||
return (const GlyphClassDefinitionTable *) ((char *) this + SWAPW(glyphClassDefOffset));
|
||||
@ -30,3 +32,4 @@ const MarkAttachClassDefinitionTable *GlyphDefinitionTableHeader::getMarkAttachC
|
||||
return (const MarkAttachClassDefinitionTable *) ((char *) this + SWAPW(MarkAttachClassDefOffset));
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "OpenTypeTables.h"
|
||||
#include "ClassDefinitionTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
typedef ClassDefinitionTable GlyphClassDefinitionTable;
|
||||
|
||||
enum GlyphClassDefinitions
|
||||
@ -86,4 +88,5 @@ struct GlyphDefinitionTableHeader
|
||||
const MarkAttachClassDefinitionTable *getMarkAttachClassDefinitionTable() const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "Lookups.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
GlyphIterator::GlyphIterator(LEGlyphID *theGlyphs, GlyphPositionAdjustment *theGlyphPositionAdjustments, le_int32 theGlyphCount,
|
||||
le_bool rightToLeft, le_uint16 theLookupFlags, LETag theFeatureTag, const LETag *theGlyphTags[],
|
||||
const GlyphDefinitionTableHeader *theGlyphDefinitionTableHeader)
|
||||
@ -336,6 +338,4 @@ le_int32 GlyphIterator::getMarkComponent(le_int32 markPosition) const
|
||||
return component;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class GlyphIterator
|
||||
{
|
||||
public:
|
||||
@ -65,4 +67,5 @@ private:
|
||||
const MarkAttachClassDefinitionTable *markAttachClassDefinitionTable;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class GlyphPositionAdjustment
|
||||
{
|
||||
@ -119,4 +120,5 @@ inline void GlyphPositionAdjustment::adjustYAdvance(float yAdjustment)
|
||||
yAdvance += yAdjustment;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "GlyphPositioningTables.h"
|
||||
#include "GlyphPosnLookupProc.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
void GlyphPositioningTableHeader::process(LEGlyphID *glyphs, GlyphPositionAdjustment *glyphPositionAdjustments,
|
||||
const LETag **glyphTags, le_int32 glyphCount, le_bool rightToLeft,
|
||||
LETag scriptTag, LETag languageTag,
|
||||
@ -26,3 +28,4 @@ void GlyphPositioningTableHeader::process(LEGlyphID *glyphs, GlyphPositionAdjust
|
||||
glyphDefinitionTableHeader, fontInstance);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct GlyphPositioningTableHeader
|
||||
{
|
||||
fixed32 version;
|
||||
@ -43,4 +45,5 @@ enum GlyphPositioningSubtableTypes
|
||||
|
||||
typedef LookupSubtable GlyphPositioningSubtable;
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -25,6 +25,8 @@
|
||||
#include "GlyphPosnLookupProc.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
// Aside from the names, the contextual positioning subtables are
|
||||
// the same as the contextual substitution subtables.
|
||||
typedef ContextualSubstitutionSubtable ContextualPositioningSubtable;
|
||||
@ -135,3 +137,4 @@ GlyphPositioningLookupProcessor::~GlyphPositioningLookupProcessor()
|
||||
{
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -18,6 +18,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LookupProcessor.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class GlyphPositioningLookupProcessor : public LookupProcessor
|
||||
{
|
||||
public:
|
||||
@ -33,4 +35,5 @@ protected:
|
||||
GlyphPositioningLookupProcessor();
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "GlyphSubstLookupProc.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
GlyphSubstitutionLookupProcessor::GlyphSubstitutionLookupProcessor(
|
||||
const GlyphSubstitutionTableHeader *glyphSubstitutionTableHeader,
|
||||
LETag scriptTag, LETag languageTag, const LEGlyphFilter *filter)
|
||||
@ -109,3 +111,4 @@ GlyphSubstitutionLookupProcessor::~GlyphSubstitutionLookupProcessor()
|
||||
{
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -19,6 +19,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LookupProcessor.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class GlyphSubstitutionLookupProcessor : public LookupProcessor
|
||||
{
|
||||
public:
|
||||
@ -37,4 +39,5 @@ private:
|
||||
const LEGlyphFilter *fFilter;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "ScriptAndLanguage.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
void GlyphSubstitutionTableHeader::process(LEGlyphID *glyphs, const LETag **glyphTags, le_int32 glyphCount,
|
||||
le_bool rightToLeft, LETag scriptTag, LETag languageTag,
|
||||
const GlyphDefinitionTableHeader *glyphDefinitionTableHeader,
|
||||
@ -33,3 +35,4 @@ le_bool GlyphSubstitutionTableHeader::coversScript(LETag scriptTag) const
|
||||
return scriptListTable->findScript(scriptTag) != NULL;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct GlyphSubstitutionTableHeader
|
||||
{
|
||||
fixed32 version;
|
||||
@ -42,4 +44,5 @@ enum GlyphSubstitutionSubtableTypes
|
||||
|
||||
typedef LookupSubtable GlyphSubstitutionSubtable;
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "HebrewShaping.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint8 HebrewShaping::glyphSubstitutionTable[] = {
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x1E, 0x00, 0x2C, 0x00, 0x01, 0x68, 0x65, 0x62, 0x72,
|
||||
0x00, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
|
||||
@ -55,3 +57,5 @@ le_uint8 HebrewShaping::glyphDefinitionTable[] = {
|
||||
0x00, 0x01, 0xFB, 0x46, 0xFB, 0x4E, 0x00, 0x01, 0xFB, 0x4F, 0xFB, 0x4F, 0x00, 0x02
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include "OpenTypeTables.h"
|
||||
#include "HebrewShaping.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LETag ligaFeatureTag = 0x6C696761; // 'liga'
|
||||
const LETag emptyTag = 0x00000000; // ''
|
||||
|
||||
@ -32,3 +34,5 @@ void HebrewShaping::shape(const LEUnicode *chars, le_int32 offset, le_int32 char
|
||||
tags[out] = hebrewTags;
|
||||
}
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class HebrewShaping
|
||||
{
|
||||
public:
|
||||
@ -21,4 +23,5 @@ public:
|
||||
static le_uint8 glyphDefinitionTable[];
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LETag oopsFeatureTag = 0x6F6F7073; // 'oops'
|
||||
|
||||
const LETag nuktFeatureTag = 0x6E756B74; // 'nukt'
|
||||
@ -31,5 +33,6 @@ const LETag blwmFeatureTag = 0x626C776D; // 'blwm'
|
||||
const LETag abvmFeatureTag = 0x6162766D; // 'abvm'
|
||||
const LETag distFeatureTag = 0x64697374; // 'dist'
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "OpenTypeUtilities.h"
|
||||
#include "IndicReordering.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
|
||||
|
||||
enum
|
||||
@ -314,4 +316,4 @@ le_int32 IndicReordering::getWorstCaseExpansion(le_int32 scriptCode)
|
||||
return classTable->getWorstCaseExpansion();
|
||||
}
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include "IndicReordering.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
IndicOpenTypeLayoutEngine::IndicOpenTypeLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode,
|
||||
const GlyphSubstitutionTableHeader *gsubTable)
|
||||
: OpenTypeLayoutEngine(fontInstance, scriptCode, languageCode, gsubTable)
|
||||
@ -103,3 +105,4 @@ le_int32 IndicOpenTypeLayoutEngine::characterProcessing(const LEUnicode chars[],
|
||||
return IndicReordering::reorder(&chars[offset], count, fScriptCode, outChars, charIndices, featureTags);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* This class implements OpenType layout for Indic OpenType fonts, as
|
||||
* specified by Microsoft in "Creating and Supporting OpenType Fonts for
|
||||
@ -128,5 +130,6 @@ protected:
|
||||
const LETag **featureTags, LEGlyphID *&glyphs, le_int32 *&charIndices, LEErrorCode &success);
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "MorphTables.h"
|
||||
#include "MorphStateTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct IndicRearrangementSubtableHeader : MorphStateTableHeader
|
||||
{
|
||||
};
|
||||
@ -54,5 +56,6 @@ struct IndicRearrangementStateEntry : StateEntry
|
||||
{
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "IndicRearrangementProcessor.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
IndicRearrangementProcessor::IndicRearrangementProcessor(const MorphSubtableHeader *morphSubtableHeader)
|
||||
: StateTableProcessor(morphSubtableHeader)
|
||||
{
|
||||
@ -371,3 +373,5 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphID *glyphs, le_in
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "StateTableProcessor.h"
|
||||
#include "IndicRearrangement.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class IndicRearrangementProcessor : public StateTableProcessor
|
||||
{
|
||||
public:
|
||||
@ -37,4 +39,5 @@ protected:
|
||||
const IndicRearrangementSubtableHeader *indicRearrangementSubtableHeader;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "OpenTypeUtilities.h"
|
||||
#include "IndicReordering.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class ReorderingOutput
|
||||
{
|
||||
private:
|
||||
@ -524,3 +526,4 @@ void IndicReordering::adjustMPres(const LEUnicode *chars, le_int32 charCount, LE
|
||||
}
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
// Characters that get refered to by name...
|
||||
enum
|
||||
{
|
||||
@ -321,4 +323,5 @@ inline le_bool IndicClassTable::hasBelowBaseForm(CharClass charClass)
|
||||
return (charClass & CF_BELOW_BASE) != 0;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
#include "LETypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* Instances of this class are used by LEFontInstance::mapCharsToGlyphs and
|
||||
* LEFontInstance::mapCharToGlyph to adjust character codes before the character
|
||||
@ -258,6 +260,7 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include "LETypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* This is a helper class that is used to
|
||||
* recognize a set of glyph indices.
|
||||
@ -29,4 +31,5 @@ public:
|
||||
virtual le_bool accept(LEGlyphID glyph) const = 0;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#ifndef __LESCRIPTS_H
|
||||
#define __LESCRIPTS_H
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
enum ScriptCodes {
|
||||
zyyyScriptCode = 0,
|
||||
qaaiScriptCode = 1,
|
||||
@ -58,4 +60,5 @@ enum ScriptCodes {
|
||||
scriptCodeCount = 42
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
#include "LETypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* These are convenience macros which invoke the swap functions
|
||||
* from a concise call.
|
||||
@ -75,4 +77,5 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
#include "unicode/utypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
typedef int32_t le_int32;
|
||||
typedef uint32_t le_uint32;
|
||||
typedef int16_t le_int16;
|
||||
@ -74,6 +76,7 @@ typedef enum LEErrorCode LEErrorCode;
|
||||
#define LE_SUCCESS(code) (U_SUCCESS((UErrorCode)code))
|
||||
#define LE_FAILURE(code) (U_FAILURE((UErrorCode)code))
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include "DefaultCharMapper.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
|
||||
|
||||
LEUnicode32 DefaultCharMapper::controlChars[] = {
|
||||
@ -399,3 +401,4 @@ LayoutEngine::~LayoutEngine() {
|
||||
reset();
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class LEFontInstance;
|
||||
class LEGlyphFilter;
|
||||
|
||||
@ -464,5 +466,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -10,10 +10,13 @@
|
||||
|
||||
#include "LETypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define ANY_NUMBER 1
|
||||
|
||||
typedef le_int16 ByteOffset;
|
||||
typedef le_int16 WordOffset;
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "LigatureSubstProc.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define ExtendedComplement(m) ((le_int32) (~((le_uint32) (m))))
|
||||
#define SignBit(m) ((ExtendedComplement(m) >> 1) & (m))
|
||||
#define SignExtend(v,m) (((v) & SignBit(m))? ((v) | ExtendedComplement(m)): (v))
|
||||
@ -108,3 +110,5 @@ ByteOffset LigatureSubstitutionProcessor::processStateEntry(LEGlyphID *glyphs, l
|
||||
void LigatureSubstitutionProcessor::endStateTable()
|
||||
{
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "StateTableProcessor.h"
|
||||
#include "LigatureSubstitution.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define nComponents 16
|
||||
|
||||
@ -46,4 +47,5 @@ protected:
|
||||
const LigatureSubstitutionHeader *ligatureSubstitutionHeader;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint32 LigatureSubstitutionSubtable::process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter) const
|
||||
{
|
||||
LEGlyphID glyph = (LEGlyphID) glyphIterator->getCurrGlyphID();
|
||||
@ -68,3 +70,5 @@ le_uint32 LigatureSubstitutionSubtable::process(GlyphIterator *glyphIterator, co
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "GlyphSubstitutionTables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct LigatureSetTable
|
||||
{
|
||||
le_uint16 ligatureCount;
|
||||
@ -35,4 +37,5 @@ struct LigatureSubstitutionSubtable : GlyphSubstitutionSubtable
|
||||
le_uint32 process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter = NULL) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "MorphTables.h"
|
||||
#include "MorphStateTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct LigatureSubstitutionHeader : MorphStateTableHeader
|
||||
{
|
||||
ByteOffset ligatureActionTableOffset;
|
||||
@ -41,4 +43,5 @@ enum LigatureActionFlags
|
||||
lafComponentOffsetMask = 0x3FFFFFFF
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "LookupProcessor.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
LETag LookupProcessor::notSelected = 0x00000000;
|
||||
LETag LookupProcessor::defaultFeature = 0xFFFFFFFF;
|
||||
|
||||
@ -168,3 +170,4 @@ LookupProcessor::~LookupProcessor()
|
||||
delete[] lookupSelectArray;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include "GlyphPositionAdjustments.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class LookupProcessor
|
||||
{
|
||||
public:
|
||||
@ -51,4 +53,5 @@ protected:
|
||||
LETag requiredFeatureTag;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "LookupTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/*
|
||||
These are the rolled-up versions of the uniform binary search.
|
||||
Someday, if we need more performance, we can un-roll them.
|
||||
@ -78,3 +80,5 @@ const LookupSingle *BinarySearchLookupTable::lookupSingle(const LookupSingle *en
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "LayoutTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
enum LookupTableFormat
|
||||
{
|
||||
ltfSimpleArray = 0,
|
||||
@ -80,4 +82,5 @@ struct TrimmedArrayLookupTable : LookupTable
|
||||
LookupValue valueArray[ANY_NUMBER];
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "CoverageTables.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LookupTable *LookupListTable::getLookupTable(le_uint16 lookupTableIndex) const
|
||||
{
|
||||
if (lookupTableIndex >= SWAPW(lookupCount)) {
|
||||
@ -40,3 +42,4 @@ le_int32 LookupSubtable::getGlyphCoverage(Offset tableOffset, LEGlyphID glyphID)
|
||||
return coverageTable->getGlyphCoverage(glyphID);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
enum LookupFlags
|
||||
{
|
||||
lfReservedBit = 0x0001,
|
||||
@ -54,6 +56,5 @@ inline le_int32 LookupSubtable::getGlyphCoverage(LEGlyphID glyphID) const
|
||||
return getGlyphCoverage(coverageTableOffset, glyphID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "MarkArrays.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_int32 MarkArray::getMarkClass(LEGlyphID glyphID, le_int32 coverageIndex, const LEFontInstance *fontInstance,
|
||||
LEPoint &anchor) const
|
||||
{
|
||||
@ -34,3 +36,5 @@ le_int32 MarkArray::getMarkClass(LEGlyphID glyphID, le_int32 coverageIndex, cons
|
||||
|
||||
return markClass;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "LEFontInstance.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct MarkRecord
|
||||
{
|
||||
le_uint16 markClass;
|
||||
@ -27,6 +29,7 @@ struct MarkArray
|
||||
LEPoint &anchor) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
LEGlyphID MarkToBasePositioningSubtable::findBaseGlyph(GlyphIterator *glyphIterator) const
|
||||
{
|
||||
if (glyphIterator->prev()) {
|
||||
@ -91,3 +93,5 @@ le_int32 MarkToBasePositioningSubtable::process(GlyphIterator *glyphIterator, co
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "AttachmentPosnSubtables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct MarkToBasePositioningSubtable : AttachmentPositioningSubtable
|
||||
{
|
||||
le_int32 process(GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const;
|
||||
@ -32,5 +34,6 @@ struct BaseArray
|
||||
BaseRecord baseRecordArray[ANY_NUMBER];
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
LEGlyphID MarkToLigaturePositioningSubtable::findLigatureGlyph(GlyphIterator *glyphIterator) const
|
||||
{
|
||||
if (glyphIterator->prev()) {
|
||||
@ -102,3 +104,5 @@ le_int32 MarkToLigaturePositioningSubtable::process(GlyphIterator *glyphIterator
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "AttachmentPosnSubtables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct MarkToLigaturePositioningSubtable : AttachmentPositioningSubtable
|
||||
{
|
||||
le_int32 process(GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const;
|
||||
@ -38,5 +40,6 @@ struct LigatureArray
|
||||
Offset ligatureAttachTableOffsetArray[ANY_NUMBER];
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
LEGlyphID MarkToMarkPositioningSubtable::findMark2Glyph(GlyphIterator *glyphIterator) const
|
||||
{
|
||||
if (glyphIterator->prev()) {
|
||||
@ -91,3 +93,5 @@ le_int32 MarkToMarkPositioningSubtable::process(GlyphIterator *glyphIterator, co
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "AttachmentPosnSubtables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct MarkToMarkPositioningSubtable : AttachmentPositioningSubtable
|
||||
{
|
||||
le_int32 process(GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const;
|
||||
@ -32,5 +34,6 @@ struct Mark2Array
|
||||
Mark2Record mark2RecordArray[ANY_NUMBER];
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -13,9 +13,12 @@
|
||||
#include "MorphTables.h"
|
||||
#include "StateTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct MorphStateTableHeader : MorphSubtableHeader
|
||||
{
|
||||
StateTableHeader stHeader;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -17,6 +17,8 @@
|
||||
//#include "ContextualGlyphInsertionProcessor.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
void MorphTableHeader::process(LEGlyphID *glyphs, le_int32 *glyphIndices, le_int32 glyphCount) const
|
||||
{
|
||||
const ChainHeader *chainHeader = chains;
|
||||
@ -90,3 +92,4 @@ void MorphSubtableHeader::process(LEGlyphID *glyphs, le_int32 *glyphIndices, le_
|
||||
}
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "LayoutTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
typedef le_uint32 FeatureFlags;
|
||||
|
||||
typedef le_int16 FeatureType;
|
||||
@ -72,5 +74,6 @@ struct MorphSubtableHeader
|
||||
void process(LEGlyphID *glyphs, le_int32 *glyphIndices, le_int32 glyphCount) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "GlyphIterator.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint32 MultipleSubstitutionSubtable::process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter) const
|
||||
{
|
||||
LEGlyphID glyph = (LEGlyphID) glyphIterator->getCurrGlyphID();
|
||||
@ -38,3 +40,5 @@ le_uint32 MultipleSubstitutionSubtable::process(GlyphIterator *glyphIterator, co
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "GlyphSubstitutionTables.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct SequenceTable
|
||||
{
|
||||
le_uint16 glyphCount;
|
||||
@ -28,4 +30,5 @@ struct MultipleSubstitutionSubtable : GlyphSubstitutionSubtable
|
||||
le_uint32 process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter = NULL) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -13,10 +13,13 @@
|
||||
#include "LookupTables.h"
|
||||
#include "MorphTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
struct NonContextualGlyphSubstitutionHeader : MorphSubtableHeader
|
||||
{
|
||||
LookupTable table;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include "TrimmedArrayProcessor.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
NonContextualGlyphSubstitutionProcessor::NonContextualGlyphSubstitutionProcessor()
|
||||
{
|
||||
}
|
||||
@ -55,3 +57,5 @@ SubtableProcessor *NonContextualGlyphSubstitutionProcessor::createInstance(const
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include "SubtableProcessor.h"
|
||||
#include "NonContextualGlyphSubst.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class NonContextualGlyphSubstitutionProcessor : public SubtableProcessor
|
||||
{
|
||||
public:
|
||||
@ -27,4 +29,5 @@ protected:
|
||||
virtual ~NonContextualGlyphSubstitutionProcessor();
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include "GDEFMarkFilter.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
OpenTypeLayoutEngine::OpenTypeLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode,
|
||||
const GlyphSubstitutionTableHeader *gsubTable)
|
||||
: LayoutEngine(fontInstance, scriptCode, languageCode), fFeatureTags(NULL), fGSUBTable(gsubTable), fSubstitutionFilter(NULL)
|
||||
@ -203,3 +205,4 @@ void OpenTypeLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int3
|
||||
fFeatureTags = NULL;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -18,6 +18,8 @@
|
||||
#include "GlyphDefinitionTables.h"
|
||||
#include "GlyphPositioningTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* OpenTypeLayoutEngine implements complex text layout for OpenType fonts - that is
|
||||
* fonts which have GSUB and GPOS tables associated with them. In order to do this,
|
||||
@ -299,5 +301,6 @@ protected:
|
||||
virtual void reset();
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
|
||||
#include "LETypes.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
#define ANY_NUMBER 1
|
||||
|
||||
typedef le_uint16 Offset;
|
||||
@ -31,4 +33,5 @@ struct GlyphRangeRecord
|
||||
le_int16 rangeValue;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "OpenTypeUtilities.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
//
|
||||
// Finds the high bit by binary searching
|
||||
// through the bits in n.
|
||||
@ -162,5 +164,4 @@ le_int32 OpenTypeUtilities::search(le_uint16 value, const le_uint16 array[], le_
|
||||
return index;
|
||||
}
|
||||
|
||||
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
class OpenTypeUtilities
|
||||
{
|
||||
public:
|
||||
@ -21,4 +23,5 @@ public:
|
||||
static le_int32 search(le_uint32 value, const le_uint32 array[], le_int32 count);
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "OpenTypeUtilities.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
le_uint32 PairPositioningSubtable::process(GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const
|
||||
{
|
||||
switch(SWAPW(subtableFormat))
|
||||
@ -156,3 +158,5 @@ const PairValueRecord *PairPositioningFormat1Subtable::findPairValueRecord(LEGly
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "ValueRecords.h"
|
||||
#include "GlyphIterator.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
// NOTE: ValueRecord has a variable size
|
||||
struct PairValueRecord
|
||||
{
|
||||
@ -72,6 +74,7 @@ struct PairPositioningFormat2Subtable : PairPositioningSubtable
|
||||
le_uint32 process(GlyphIterator *glyphIterator, const LEFontInstance *fontInstance) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "ScriptAndLanguage.h"
|
||||
#include "LESwaps.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LangSysTable *ScriptTable::findLanguage(LETag languageTag) const
|
||||
{
|
||||
le_uint16 count = SWAPW(langSysCount);
|
||||
@ -55,3 +57,5 @@ const LangSysTable *ScriptListTable::findLanguage(LETag scriptTag, LETag languag
|
||||
|
||||
return scriptTable->findLanguage(languageTag);
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -11,6 +11,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "OpenTypeTables.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
typedef TagAndOffsetRecord LangSysRecord;
|
||||
|
||||
struct LangSysTable
|
||||
@ -41,5 +43,6 @@ struct ScriptListTable
|
||||
const LangSysTable *findLanguage(LETag scriptTag, LETag languageTag) const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
@ -12,6 +12,8 @@
|
||||
#include "ScriptAndLanguageTags.h"
|
||||
#include "OpenTypeLayoutEngine.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LETag OpenTypeLayoutEngine::scriptTags[] = {
|
||||
zyyyScriptTag, /* 'zyyy' (COMMON) */
|
||||
qaaiScriptTag, /* 'qaai' (INHERITED) */
|
||||
@ -56,3 +58,5 @@ const LETag OpenTypeLayoutEngine::scriptTags[] = {
|
||||
cansScriptTag, /* 'cans' (CANADIAN-ABORIGINAL) */
|
||||
yiiiScriptTag /* 'yiii' (YI) */
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include "LETypes.h"
|
||||
#include "LEScripts.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
const LETag zyyyScriptTag = 0x7A797979; /* 'zyyy' (COMMON) */
|
||||
const LETag qaaiScriptTag = 0x71616169; /* 'qaai' (INHERITED) */
|
||||
const LETag arabScriptTag = 0x61726162; /* 'arab' (ARABIC) */
|
||||
@ -61,4 +63,5 @@ const LETag nullScriptTag = 0x00000000; /* '' (NULL) */
|
||||
|
||||
const LETag noLangSysTag = 0x00000000; /* '' (NONE) */
|
||||
|
||||
U_NAMESPACE_END
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user