InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GlyphUtilsME.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Pascal Rubini
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Usage rights licenced to Adobe Inc. 1993 - 2007.
24 //
25 //========================================================================================
26 
27 #ifndef __GlyphUtilsME__
28 #define __GlyphUtilsME__
29 
30 #include "IGlyphUtilsME.h"
31 
32 namespace GlyphUtilsME
33 {
34  inline void InsertTheCharacter(ISelectionManager *selMgr, IPMFont *font, LanguageID id, GlyphEntry * baseGlyphEntry, GlyphEntry * alternateGlyphEntry, bool16 selectChar = kFalse, bool16 setFont = kFalse)
35  { Utils<IGlyphUtilsME>()->InsertTheCharacter( selMgr, font, id, baseGlyphEntry, alternateGlyphEntry, selectChar, setFont); }
36  inline int32 GetSelectionGlyphSet(IPMFont *font, IFontInstance* fontInstance, LanguageID id, const WideString& chars,Text::GlyphID glyph, GlyphSet *glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder)
37  { return Utils<IGlyphUtilsME>()->GetSelectionGlyphSet( font, fontInstance, id, chars, glyph, glyphSet, sortOrder ); }
38  inline int32 GetGlyphListGlyphSet(IPMFont *font, IFontInstance* fontInstance, LanguageID id, Text::GlyphID* glyphs, int32 numGlyphs, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder)
39  { return Utils<IGlyphUtilsME>()->GetGlyphListGlyphSet( font, fontInstance, id, glyphs, numGlyphs, glyphSet, sortOrder ); }
40  inline bool16 GetGlyphHasAlternate(IPMFont *font, LanguageID id, Text::GlyphID glyph, const char * tag = nil)
41  { return Utils<IGlyphUtilsME>()->GetGlyphHasAlternate( font, id, glyph, tag ); }
42  inline int32 GetEntireFont(IPMFont *font, LanguageID id, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder)
43  { return Utils<IGlyphUtilsME>()->GetEntireFont( font, id, glyphSet, sortOrder ); }
44  inline int32 GetFilteredGlyphs(IPMFont *font, LanguageID id, GlyphSet * glyphSet, GlyphFilterProcList& includeFilterProcList, GlyphFilterProcList& excludeFilterProcList, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder )
45  { return Utils<IGlyphUtilsME>()->GetFilteredGlyphs( font, id, glyphSet, includeFilterProcList, excludeFilterProcList, sortOrder ); }
46 
47  inline int32 GetOTFFeatureGlyphSet(const char * tags, int32 numTags, IPMFont * font, LanguageID id, GlyphSet * glyphSet, GlyphSet::GlyphSortOrder sortOrder = GlyphSet::kNoOrder)
48  { return Utils<IGlyphUtilsME>()->GetOTFFeatureGlyphSet( tags, numTags, font, id, glyphSet, sortOrder ); }
49  inline bool16 GetOTFFeature(IPMFont * font, IFontInstance * fontInstance, LanguageID id, const GlyphEntry * baseGlyph, const GlyphEntry * alternate, char * tagBuffer/* 4 bytes */, int32 & choice)
50  { return Utils<IGlyphUtilsME>()->GetOTFFeature( font, fontInstance, id, baseGlyph, alternate, tagBuffer, choice ); }
51 
52  inline long GetGlyphsForFeatureAccessInfo(const char * tags, int32 numTags, IPMFont * font, LanguageID id, GlyphSet * glyphSet)
53  { return Utils<IGlyphUtilsME>()->GetGlyphsForFeatureAccessInfo( tags, numTags, font, id, glyphSet ); }
54 
55  inline bool16 TestFeatureSubstitution(IFontInstance * fontInstance, LanguageID id, const WideString& textString, char * tags, int32 * choices, int32 numFeatures, Text::GlyphID testGlyphID)
56  { return Utils<IGlyphUtilsME>()->TestFeatureSubstitution( fontInstance, id, textString, tags, choices, numFeatures, testGlyphID ); }
57 }
58 
59 
60 #endif
61  // __GlyphUtilsME__
62