Hi Peter Am 13.05.2013 um 22:22 schrieb Peter Murray-Rust <[email protected]>:
> On Mon, May 13, 2013 at 8:52 PM, Maruan Sahyoun <[email protected]>wrote: > >> Hi Peter, >> >> Am 13.05.2013 um 19:44 schrieb Peter Murray-Rust <[email protected]>: >> >>> Thanks for answering - any help is valuable. >>> >>> On Mon, May 13, 2013 at 6:02 PM, Maruan Sahyoun <[email protected] >>> wrote: >>> >>> >>> I assume the fontWeight must do something! Does it create the font-fill >> in >>> a grey scale (or colour scale)? Or does it fill in the font with lines? >> >> >> Yes it does something see [ >> http://pdfbox.apache.org/apidocs/org/apache/pdfbox/pdmodel/font/PDFont.html#setWidths%28java.util.List%29]. >> But you would expect that the setting in the font file/the width table for >> the chars it what is used in the pdf when it was created to set the text >> positions for example. So for parsing the width is part of the pdf. For >> creation setting the width is useful. > > That is WIDTH not WEIGHT! (And yes, there is one publisher whose PDF do not > have character widths :-( ) sry - but the same applies to weight. Mainly useful for creation. Of course changing the setting will affect e.g. the rendering results or the conversion to image - but it might also cause text portions to overlap etc > > > > -- > Peter Murray-Rust > Reader in Molecular Informatics > Unilever Centre, Dep. Of Chemistry > University of Cambridge > CB2 1EW, UK > +44-1223-763069 BR Maruan

