熊田貢
2016-03-23 01:55:50 UTC
Hello all,
I hava a question about vertical writing of Japanese text using CFF OpenType.
Some Japanese characters (bracket, punctuation, etc.) have two variant forms, for horizontal and vertical writing.
My question is how to specify the variant glyph when draw vertical text.
I found PdfContentBye#showTextGid(final String gids) which I expected solve my question.
But I cannot understand how to give an argument to the method.
I tried the following to draw vertical bracket (GID:7899), but the result was not what I expected.
. . . . .
BaseFont baseFont = BaseFont.createFont("fonts\\KozMinPro-Regular.otf", BaseFont.IDENTITY_V, BaseFont.EMBEDDED);
. . . . .
. . .showTextGid("7899");
. . .showTextGid("1EDB");
. . .showTextGid("0x1EDB");
I'm using iText 5.5.9.
Any help would be much appreciated.
Thank you.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
I hava a question about vertical writing of Japanese text using CFF OpenType.
Some Japanese characters (bracket, punctuation, etc.) have two variant forms, for horizontal and vertical writing.
My question is how to specify the variant glyph when draw vertical text.
I found PdfContentBye#showTextGid(final String gids) which I expected solve my question.
But I cannot understand how to give an argument to the method.
I tried the following to draw vertical bracket (GID:7899), but the result was not what I expected.
. . . . .
BaseFont baseFont = BaseFont.createFont("fonts\\KozMinPro-Regular.otf", BaseFont.IDENTITY_V, BaseFont.EMBEDDED);
. . . . .
. . .showTextGid("7899");
. . .showTextGid("1EDB");
. . .showTextGid("0x1EDB");
I'm using iText 5.5.9.
Any help would be much appreciated.
Thank you.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
iText-questions mailing list
iText-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php