You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SystemWorld::new (world.rs:79-83) adds system fonts when enabled and always adds the embedded ones. An unresolved family is substituted from those fallbacks, a warning is emitted, and the compile succeeds. The suite depends on this: WarningSource uses #set text(font: "No Such Font Family").
In a service the warning is a plain string in Warnings, indistinguishable from any other. In a minimal container image, which usually has no fonts installed, every document renders in a fallback face with different metrics, line breaks and page count than the approved proofs, and the return value does not say so. It works on a developer machine where the font is installed system-wide, and changes silently on the build agent and in production.
A README note on fonts in containers, recommending new Fonts(IncludeSystemFonts: false, FontPaths: ["/app/fonts"]) for deterministic output across Windows and Linux. This matters for PDF/A as well, since embedding depends on the face actually used.
A strict mode on Fonts that turns an unresolved family into a compilation error.
SystemWorld::new(world.rs:79-83) adds system fonts when enabled and always adds the embedded ones. An unresolved family is substituted from those fallbacks, a warning is emitted, and the compile succeeds. The suite depends on this:WarningSourceuses#set text(font: "No Such Font Family").In a service the warning is a plain string in
Warnings, indistinguishable from any other. In a minimal container image, which usually has no fonts installed, every document renders in a fallback face with different metrics, line breaks and page count than the approved proofs, and the return value does not say so. It works on a developer machine where the font is installed system-wide, and changes silently on the build agent and in production.What I would like:
new Fonts(IncludeSystemFonts: false, FontPaths: ["/app/fonts"])for deterministic output across Windows and Linux. This matters for PDF/A as well, since embedding depends on the face actually used.Fontsthat turns an unresolved family into a compilation error.