Comments (2)
Thanks for the feedback. The key point, unknown to me, is that Helvetica is not a free font.
from asciidoctor-pdf.
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-BoldObliqueThese 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)
- Upgrade prawn-svg to 0.34.x HOT 1
- Remove link from entry in TOC
- Support prawn-icon 3.1.x in v2.3.x branch HOT 1
- Lock ttfunk to 1.7.x in 2.3.x release line HOT 2
- Producer set to Author instead of producing software in document properties HOT 3
- Document exceptions to the nobreak role and non-breaking characters HOT 6
- Add support for SVG to image reference in SVG encoded as a data URI (SVG data loader) HOT 1
- Alternative to prawn-gmagick? HOT 3
- asciidoctor: WARNING: unknown unordered list style: something HOT 2
- A custom title page HOT 1
- Add theme support for indent for admonition and sidebar HOT 1
- prose_margin_inner has no effect on prose in table cells HOT 1
- line break in theme attribute "with_email" not working any more HOT 2
- min-height-after: auto ignores %unbreakable table option HOT 7
- Don't hyphenate autolink when hyphenation is enabled
- add log messages from document HOT 1
- Arrows not shown in BPMN diagrams HOT 5
- Add see and see-also entries on index term to generated index
- Watermark (foreground image) is always left-aligned on landscape pages HOT 6
- Missing callout numbers and admonition images if PDF is opened with Adobe acrobat reader HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-pdf.