Options:
Search text and replace '-' and '|' with '|' and '-' respectively prior
to adding it to the VerticalText.

Search the text and add only those characters in a font that swaps them
for you.

Create one or more Type 3 fonts (single byte, so you'd have to do more
text searching to figure out which font to use after your 256th unique
character), and use that font instead.


All the options involve searching your input string[s] prior to adding
them to a VerticalText.  I suggest going the "replacement" route.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: TAKEGATA Seiji [mailto:[email protected]] 
> Sent: Friday, May 06, 2011 10:15 AM
> To: [email protected]
> Subject: [iText-questions] Font rotation in the VerticalText
> 
> Hi,
> I'm trying to use a BaseFont loaded from a font file in a 
> VerticalText. It goes almost fine but some characters like 
> hyphen or parenthesis have to be rotated in the VerticalText.
> 
> For example:
> 
> A-B
> 
> should be like
> 
> A
> |
> B
> 
> instead of
> 
> A
> -
> B
> 
> When I used standard font such as "HeiseiKakuGo-W5" those are 
> rotated correctly but if a font is loaded from a file such as 
> "/Windows/Fonts/msgothic.ttc" then not rotated. I created 
> those fonts like followings:
> 
> BaseFont.createFont("HeiseiKakuGo-W5","UniJIS-UCS2-V",BaseFont
.NOT_EMBEDDED);
> //Good
> BaseFont.createFont("/Windows/Fonts/msgothic.ttc,0",BaseFont.I
> DENTITY_V,
> BaseFont.EMBEDDED); //Bad
> 
> My question is what is the difference between these fonts and 
> is there any way to fix this problem.
> Thanks in advance.
> Seiji Takegata
> 
> --------------------------------------------------------------
> ----------------
> WhatsUp Gold - Download Free Network Management Software The 
> most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> iText-questions mailing list
> [email protected]
> 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
> 
> 

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to