Font name is not retained

Hi,



I am trying to create document using font “Palatino Linotype”. When I verified font properties of the pdf document, font name was converted to “PalatinoLinotype”. Can you please look into it.



com.aspose.pdf.Document.addLocalFontPath(System.getenv(“SystemRoot”)+System.getProperty(“file.separator”)+“Fonts”);

Font font = com.aspose.pdf.FontRepository.findFont(“Palatino Linotype”);

TextFragment dfgmt = new TextFragment(“testing”);

dfgmt.getTextState().setFont(font);



Thanks

Mamatha

Hi Mamatha,


Thanks for contacting support.

I have tested the scenario and I am able to
notice the same problem. For the sake of correction, I have logged this problem
as PDFNEWJAVA-35680 in our issue tracking system. We will
further look into the details of this problem and will keep you updated on the
status of correction. Please be patient and spare us little time. We are sorry
for this inconvenience.

Nayyer,

Can you please provide status on this.

Thanks
Mamatha

Hi Mamatha,


Thanks for your inquiry. I am afraid the logged issue is still pending for analysis as product team is busy in other issues/features in the queue. We will notify you as soon as we made some significant progress towards issue resolution.

We are sorry for the inconvenience caused.

Best Regards,

@mamatha

We have investigated the earlier logged ticket and found that it was not a Bug.

According to Adobe PDF Specification (p. 5.5.2), if the name contains any spaces, the spaces are removed. Please see the attached screenshot. Spec.png (106.3 KB)