> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter B. West
> Sent: Wednesday, October 18, 2006 11:40 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Missing characters in pdf
> whenusing truetypefont subset
>
> On Wed, 2006-10-18 at 11:02 +0100, Paulo Soares wrote:
> >
> > > -----Original Message-----
> ...
> > > Behalf Of Ian Hoyle
> > >
> ...
> >
> > > Hi
> > >
> > > I have a true type font with limited glyphs specified in the
> > > font format4 cmap subtable. When trying to write text to the
> > > pdf that contains characters not listed in cmap no metrics
> > > are returned from TrueTypeFont getMetricsTT()) and the
> > > character is ignored. Was there a reason for this behaviour ?
> > >
> >
> > The character is not there!
> >
>
> Hi Paulo.
>
> Shouldn't characters not in the font map to glyph 0, i.e. the
> .notdef or
> equivalent? I thought such behaviour was recommended in the TT specs.
>
Replacement characters make sense for the a viewer but not for a PDF
producer. The producer knows beforehand if the character exists or not
and can choose to replace it with something else or nothing. The viewer
has a logical representation of the string and only when rendering knows
if some particular character exists or not; a decision must be made and
it may replace the missing char with .notdef. This replacement is only
visual but for the producer the replacement would also be logical.
Paulo
> (Ian and I are working on related issues, hence the interest.)
>
> Peter
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions