fontservices/fontstore/inc/OPENFONT.H
branchRCL_3
changeset 16 748ec5531811
parent 5 9a2be90ac9a2
child 17 336bee5c2d35
--- a/fontservices/fontstore/inc/OPENFONT.H	Wed Jun 09 11:40:52 2010 +0300
+++ b/fontservices/fontstore/inc/OPENFONT.H	Tue Aug 31 17:01:26 2010 +0300
@@ -81,6 +81,7 @@
 @released
 */
 const TUid KUidOpenFontTrueTypeExtension = {0x1027553E};
+const TUid KUidOpenFontGlyphOutlineExtension = {0x102872CE};
 
 /**
 Supplied to CShaper::ExtendedInterface() to get the language and script
@@ -327,7 +328,7 @@
 	TBool HasCharacterL(TInt aCode) const;
 	TBool GetCharacterData(TInt aSessionHandle,TInt aCode,const TOpenFontCharMetrics*& aMetrics,const TUint8*& aBitmap) const;
 	void OnFileDeleted();
-	COpenFontGlyphCache* GetGlyphCache();
+	COpenFontGlyphCache* GetGlyphCache() const;
 	inline TInt FontCapitalAscent() const;
 	inline TInt FontMaxAscent() const;
 	inline TInt FontStandardDescent() const;
@@ -335,6 +336,8 @@
 	inline TInt FontLineGap() const;
 	inline TInt FontMaxHeight() const;
 	void DeleteShaper() const;
+	TInt GetFontTable(TUint32 aTag, TAny*& aTableContent, TInt& aLength);
+	TInt GetGlyphOutline(TUint aCode, TBool aHinted, TAny*& aOutline, TInt& aLength);
 	
 protected:
 	RHeap* iHeap;
@@ -368,7 +371,7 @@
 private:
 	const COpenFontGlyph* Glyph(TInt aSessionHandle,TInt aCode) const;
 
-	const COpenFontGlyph* FontCacheGlyph(TInt aCode);
+	const COpenFontGlyph* FontCacheGlyph(TInt aCode) const;
 	
 	void SetGlyphCache(COpenFontGlyphCache* aGlyphCache);
 	
@@ -533,6 +536,12 @@
 	virtual TBool HasTrueTypeTable(TUint32 aTag) = 0;
 	};
 
+class MOpenFontGlyphOutlineExtension 
+    {
+public:
+    virtual TInt GetGlyphOutline(TUint aCode, TBool aIsGlyphId, 
+            TBool aHinted, TAny*& aOutline, TInt& aLength) = 0;
+    };
 /** 
 Font attribute base class.