Japanese font too wide, converting PPTX to HTML in .NET

Hi,

I’ve noticed a small issue, with Japanese font being too wide, so it overlaps:
image.png (49.6 KB)
(above: GroupDocs HTML, below original PPTX)

It’s not a big thing, but can you please check that issue?
Japanese font issue.zip (3.5 MB)

GroupDocs.Viewer 24.3 was used, without any special conversion options.
Thanks :slight_smile:

@Clemens_Pestuka

Thank you for attaching screenshot and source file. I have reproduced this issue. It seems like incorrect font was embedded into HTML document. As a temporary workaround you can use the following code:

using (Viewer viewer = new Viewer("Test1.pptx"))
{
    HtmlViewOptions viewOptions =
        HtmlViewOptions.ForEmbeddedResources(pageFileFormat);
    viewOptions.FontsToExclude.Add("MS PGothic");

    viewer.View(viewOptions, 3);
}

The issue ID for reference is VIEWERNET-4790.

1 Like

@vladimir.litvinchik

Thank you for logging the issue and providing a workaround.
We cannot really use file-specific workaround though.
So unless “MS PGothic” is generally a problematic font that should be excluded, I can’t add that code.

@Clemens_Pestuka

Got it. We’ll let you know when we have any updates.

1 Like