danfickle / danfickle/openhtmltopdf

How to map font names?

Open
#389 1 comment 1 reaction 0 assignees View on GitHub
Documentation required
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

Hi,
I'm using the library to convert random (user-generated) HTML to PDF.

I can't find how to map font names to existing fonts.
When HTML style says "Arial" (without alternatives like "helvetica, sans-serif") we get the serif/Times default font.

How do I map common names so we get better guesses for eg classic Internet Explorer font name? Arial, Courier New, etc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.