You are not logged in.
When Arial is used and StandardFontsReplace is true, it is replaced by Helvetica. Good !
However, when it's "Time New Roman", Acrobat Reader tell me that the Times font as a bad bbox :-/
The reason is that there is no Times in the 14 base pdf fonts : it's called Times-Roman.
So I've changed :
in TPdfDocument.CreateEmbeddedFont()
    (Name: 'Times'; Widths: @TIMES_ROMAN_W_ARRAY),to
    (Name: 'Times-Roman'; Widths: @TIMES_ROMAN_W_ARRAY),and in StandardFontName(), I've added the last two lines
function StandardFontName(const AName: RawUTF8; AStyle: TPdfFontStyles): RawUTF8;
begin
  result := AName;
  if pfsItalic in AStyle then
    if pfsBold in AStyle then
      result := result+'-BoldOblique' else
      result := result+'-Oblique' else
    if pfsBold in AStyle then
      result := result+'-Bold' else
      if AName='Times' then
      result:='Times-Roman';
end;Of course, it worked well with bold, italic (or both) "Times New Roman" before.
Offline
Also the pfsItalic was not correct - it is "Italic", not "Oblique" for Times...
Offline
Also the pfsItalic was not correct - it is "Italic", not "Oblique" for Times...
Yes, I didn't try italic. But the correction is even better. I've searched for the StandardFontName function. But since a trick permited to get rid of it, it's no longer there.
Offline