Giter Club home page Giter Club logo

Comments (2)

mementum avatar mementum commented on September 22, 2024 1

Thanks for the feedback. The key point, unknown to me, is that Helvetica is not a free font.

from asciidoctor-pdf.

mojavelinux avatar mojavelinux commented on September 22, 2024

No, they should not. AFM fonts are assumed to be provided by the PDF reader. For all intents and purposes, they are default, application-provided fonts.

9.6.2.2 Standard Type 1 Fonts (Standard 14 Fonts)

The PostScript names of 14 Type 1 fonts, known as the standard 14 fonts, are as follows: Times-Roman,
Helvetica, Courier, Symbol, Times-Bold, Helvetica-Bold, Courier-Bold, ZapfDingbats, Times-Italic, Helvetica-
Oblique, Courier-Oblique, Times-BoldItalic, Helvetica-BoldOblique, Courier-BoldOblique

These fonts, or their font metrics and suitable substitution fonts, shall be available to the conforming reader.

If you want a font to be embedded, it has to be a TTF font. That is the specification to which Prawn is developed and is unlikely to change. You're welcome to create a theme that defines Helvetica as a TTF font in the font catalog, in which case it will be used and bundled.

Helvetica is also not a free font. So even if we wanted to automatically translate an AFM font to a bundled TTF font, we wouldn't be able to in an open source project.

The documentation already strongly recommends avoiding the use of the AFM fonts. They are supported since they are defined as part of the PDF specification, but even the specification acknowledges that they have severe drawbacks.

from asciidoctor-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.