yes! you're right.
the problem only exists if we use our special font. we do it like this:
String normalFontName = Frutiger-Cn;
String normalFontFile = externals/fonts/Ftc_.ttf;
String boldFontName = Frutiger-BlackCn;
String boldFontFile =
ok! me again! i think now we have the solution:
it's the font size which makes the problem.
try this code:
public class PdfTest {
public static void main(String[] args) {
Document document = new Document();
try {
PdfWriter.getInstance(document, new
hello
we have a problem with phrases in our document and we like to know if this is a
known-bug or if we do something wrong.
the problem is that, if the line ends with bold text there is always a space
before the first word on the new line and this looks really bad!
thanks a lot for any answer
the code looks like this:
Paragraph paragraph = new Paragraph();
paragraph.add(new Phrase(foo , normalFont);
paragraph.add(new Phrase(bold, boldFont);
paragraph.add(new Phrase( bar, normalFont);
document.add(paragraph);
and the text looks like this if bar begins on a new line:
foo bold
bar