-
Notifications
You must be signed in to change notification settings - Fork 660
Open
Description
The current support for the @font-face
rule has a few issues:
- the
src
property is not correctly parsed, because the code expects a singleurl
function, but there can be others (likeformat
):OpenPDF/openpdf-html/src/main/java/org/openpdf/css/parser/property/PrimitivePropertyBuilders.java
Line 1562 in 3ddd942
public static class Src extends GenericURIWithNone { - the font file format is determined by the file extension, but the font url might not have a standard extension: the
format
function should be the preferred method to determine the type, with fallback on file extension:return lower.endsWith(OTF) || lower.endsWith(TTF) || lower.contains(TTC_COMMA); - there is no way to embed fonts if the
@font-face
rule comes from an external@import
(so no way to add-fs-pdf-font-embed: embed
) - given that there is no support for the
format
function, probably it doesn't currently support the presence of multipleurl
with different formats, from which to choose the supported one
andreasrosdal
Metadata
Metadata
Assignees
Labels
No labels