You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sonia Rojhwal <ro...@tftus.com> on 2012/07/23 13:12:12 UTC

need help regarding implementation of fop-1.1rc1-src

Hi,

I have downloaded the src code for  *fop-1.1rc1-src.*
I want to use this FOP library to make a TTF Font renderring engine for
Android Mobile Operating System.
I have downloaded the code and compiled the code, Now, I am able to parse
my TTF file with this FOP Code using TTFReader Class.
I have parsed all the tables of the my TTF file like GLPH, HEAD, CMAP,
HHEA, HMTX, LOCA, GDEF, GPOS and GSUB etc.
My TTF file is for the Urdu Nastaliq Font It contains glyphs for characters
as well as Ligatures i.e urdu Words.
 As, Android is not able to render the *Urdu Nastaliq Font* prpperly,
It just draw those characters properly, which has unicode mapping in CMAP
Table.
For the words in the sentence, It just broke the Characters of the
words,which look very odd. (But As we know Nastaliq font always changes the
shape for the word depending on the Characters)
Thats why we want to create a Font Rendering engine for android for My Font
(TTF File).
Now, My question is that ,
How can i use the Parsed table data to convert the Input Urdu Text to the
Formatted font of My TTF File?
I just want to know that how to implement the parsed data, so that my input
string gives the proper output?
I have googled out this thing, but didn't get any help.
How can i use Your Classes to get the Output in Proper format?
Do i need Urdu Script For this purpose?
Do i need to draw the shape for each incoming character with the Parsed
data?

Please Help me asap.


*
*

-- 
*Thanks & Regards,

Sonia Rojhwal

*

Re: need help regarding implementation of fop-1.1rc1-src

Posted by Glenn Adams <gl...@skynav.com>.
If I understand you correctly, it sounds like you are trying to use part of
the source code from FOP for a purpose of your own that is not covered by
an existing FOP function. In that case, you are pretty much on your own.

As you may know, FOP 1.1rc1 does support Arabic script, of which the
Nastaliq is one such form. However, I have not yet tested against an OT
Nastaliq font that uses GSUB/GPOS etc for shape selection and positioning.
The fonts that have been tested are documented in [1].

[1]
http://xmlgraphics.apache.org/fop/1.1rc1/complexscripts.html#fonts_arabic

If you have specific suggests regarding fonts that you would like see
tested, or if you discover bugs in the current code, then please let us
know.

G.

On Mon, Jul 23, 2012 at 5:12 AM, Sonia Rojhwal <ro...@tftus.com>wrote:

> Hi,
>
> I have downloaded the src code for  *fop-1.1rc1-src.*
> I want to use this FOP library to make a TTF Font renderring engine for
> Android Mobile Operating System.
> I have downloaded the code and compiled the code, Now, I am able to parse
> my TTF file with this FOP Code using TTFReader Class.
> I have parsed all the tables of the my TTF file like GLPH, HEAD, CMAP,
> HHEA, HMTX, LOCA, GDEF, GPOS and GSUB etc.
> My TTF file is for the Urdu Nastaliq Font It contains glyphs for
> characters as well as Ligatures i.e urdu Words.
>  As, Android is not able to render the *Urdu Nastaliq Font* prpperly,
> It just draw those characters properly, which has unicode mapping in CMAP
> Table.
> For the words in the sentence, It just broke the Characters of the
> words,which look very odd. (But As we know Nastaliq font always changes the
> shape for the word depending on the Characters)
> Thats why we want to create a Font Rendering engine for android for My
> Font (TTF File).
> Now, My question is that ,
> How can i use the Parsed table data to convert the Input Urdu Text to the
> Formatted font of My TTF File?
> I just want to know that how to implement the parsed data, so that my
> input string gives the proper output?
> I have googled out this thing, but didn't get any help.
> How can i use Your Classes to get the Output in Proper format?
> Do i need Urdu Script For this purpose?
> Do i need to draw the shape for each incoming character with the Parsed
> data?
>
> Please Help me asap.
>
>
> *
> *
>
> --
> *Thanks & Regards,
>
> Sonia Rojhwal
>
> *
>