External fonts metadata

@callmevk

The font names that are provided via Slides API are the same as defined in PowerPoint document (PPTX) in “typeface” attributes in XML. The API does not do any thing by itself. But when we export to the other format occurs (let’s say, to the image), we may do a font substitution (according to the same rules as PowerPoint), if the font name that has been used is not available on the system and not embedded.

@mudassir.fayyaz, could you please elaborate on the processa as asnwer is not self evident:

  • “typeface” field in PowerPoint ≠ font file name;
  • font files can have multiple metadata fields containing same information as information from PowerPoint “typeface” data.

How exactly Aspose can tell which font file to use when it gets the data from PowerPoint?
Is it looking for a metadata field that would match with “typeface” info? If so, what field is that?
Is it looking for a font file name similar to “typeface” information?

@callmevk

I have created a ticket with ID SLIDESNET-42119 in our issue tracking system to further investigate your requirements. We will share the feedback with you as soon as the issue will be addressed.

Thank you kindly, @mudassir.fayyaz.

Awaiting for further feedback.

@callmevk

We will apprise you as soon as response will be shared.

Hello @mudassir.fayyaz.
Checking back to see if there are any updates on this one.

@callmevk

I regret to share that at present the issue is unresolved. We will share notification with you as soon as the issue will be fixed.

Thanks for the update @mudassir.fayyaz.
Looking forward for an update.

@callmevk

We will share the updates with you as soon as they will be shared.

Hi Mudassir, We are not seeking any fix as a part of this ticket. We are only looking for clarification on what information Aspose uses to locate fonts from local storage? Is there a way this can be accelerated and the necessary information provided?

@reach.sathya

I request for your patience. Actually, your question is pertinent to internal API design. We will share the feedback with you as soon as it will be shared.

Hello @mudassir.fayyaz,

Just checking back to see if there’s an update.

@callmevk

We have investigated the issue further. We need to know the scenario where you are interested in using Aposse.Slides in the form of sample example and working presentation as it is important because it is directly related to how Aspose.Slides works with fonts in different scenarios. If you just loads PPTX and save presentation as ODP/PPT/HTML/SVG or modify and save it as other PPTX document, Aspose.Slides not needed to work with fonts metadata.

Where as if, you are rendering a thumbnail or exporting presentation to PDF, we use .NET Framework classes for working with fonts (they have their own infrastructure to match font families with fonts installed on the machine).

If you can share an example (snippet and document) where Slides not matched expectations, we may provide more info on the topic. Actually, what you are requesting is deeply related to internal API working and we may not divulge that. Therefore, perhaps with sample example, we may observe and assess that what information may be shared publicly or not.

Thank you for the update, @mudassir.fayyaz.

I will talk to the team and we will get back to you shortly.

I will give you an example today and we will try to send a presentation tomorrow.

  1. We upload presentation with font “Helvetica Now Text”. The font is available in our local storage as “helveticanowtext-regular-sans-serif-scalable-normal-normal-normal-regular.ttf”. However, Aspose is unable to pick up the font accurately which results in distorted display of font in the presentation.

Does Aspose expect the files to adhere to any standard naming convention in our storage to ensure the right fonts are picked up based on what is included in the presentation? We are using the .NET framework for converting slides into thumbnails and are seeing a high level of font failures.

We would like to understand how we need to set up our internal fonts storage, so Aspose can pick up the right fonts using its algorithms.

We are not exporting PPTX to another format, we are using yours GetThumbnail method to render part of slide as image. So we want to know which fonts metadata used by Aspose to select fonts for this action.

@mititch

As requested earlier, please provide the information in this form so that we may proceed further on our end.

font_test.zip (120.8 KB)
So, here is example. In code we are loading three fonts with same name but different metadata.

Our question: How we can understand which font will be selected by Aspose to render image?

@mititch

Thank you for sharing the details. We will investigate it and will share the feedback with you as soon as it will be investigated.

A post was split to a new topic: Thumbnail Uses Arial Regular instead of Arial Bold