Comments (8)
FYI: The latest PDF specification 2.0 doesn't include support for embedding variable fonts. So a PDF writer would need to transform a variable font into a normal font. Currently only Type1, TrueType and CFF type fonts are supported (as well as Type 3 fonts but those are PDF specific).
from prawn.
I just read Discussions#1315
Really hard for me to understand. I think these are all one thing.
I want to know, if some software/library don't support ligatures, it will not support "multiple weight in one file" too?
from prawn.
OK. So…
- Many lines is just the API choice we made. This is not going to change at least until the next major version. I'm afraid you'll have to live with this for a while.
- Prawn does't implement CSS. You should not assume that anything you know about CSS (or HTML for that matter) applies to Prawn.
- Prawn doesn't support variable fonts (multiple weights in one file). You'll have to use more traditional static fonts with Prawn. This is a different and independent font feature to ligatures.
- Prawn doesn't support any OpenType feature settings. Only default glyphs are rendered so you can assume both ligatures (
liga
) and contextual alternatives (calt
) are disabled.
I'm not exactly sure what the issue though. You have fonts defined for different weights and styles you can use those with Prawn (read the manual for examples). And ligatures are effectively disabled with Prawn. It doesn't look to me like there's anything to do here so I'm closing this issue. Feel free to reopen with clarification what you're trying to achieve if you feel your issue is not resolved.
from prawn.
Prawn doesn't support variable fonts (multiple weights in one file). You'll have to use more traditional static fonts with Prawn. This is a different and independent font feature to ligatures.
Prawn doesn't support any OpenType feature settings. Only default glyphs are rendered so you can assume both ligatures (liga) and contextual alternatives (calt) are disabled.
Yeah that is what i want... I just asked more offtopic to understand what and why.
I have no permission to re-open it...
from prawn.
Actually prawn has already met my needs.
But I continuing think it's necessary to support.
Sorry I don't know a lot about it, only as a feature request, i don't have permission to re-open and i don't know if it's necessary to re-open.
You can continue what you want.
from prawn.
I'm glad that Prawn met your needs.
As for variable fonts, I guess it'd be nice to support. However, at the moment I don't even know whether PDF as a format supports variable fonts. I might look into it at some point.
from prawn.
Oh, Okay, So i need give up all other fonts and only use JetBrains Mono NL at all places, not only in PDF. Until all things i need are supported.
from prawn.
@jyxjjj No, you can use variable fonts wherever they are supported but you need to use standard TrueType/OpenType fonts when working with PDF.
from prawn.
Related Issues (20)
- That worked! Thanks a lot, @Subtletree!
- Error output is unusable HOT 4
- Is there a prawn equivalent of z-index for moving elements to front/back?
- text_box with shrink_to_fit sometimes crops end of sentence
- Advanced text layout HOT 2
- 2 test failures after updating rspec to 3.12 HOT 1
- No way to give dynamic-height bounding boxes a background color HOT 1
- Incompatibility with ruby 3.1 HOT 1
- "Cursor" with repeater dynamic not working HOT 3
- Error in the manual? (page 11) HOT 2
- Issue with image colors when converting to PDF HOT 1
- Question about re-using some Prawn code to render appearance streams for AcroForm annotations HOT 2
- Push New Version to Ruby Gems to Deal with Ruby 3.1 Removing Matrix HOT 6
- Setting multi page table top margin
- Does this gem support chartjs?
- PDF/A-1
- PDF/A-3
- Rails 7.X ActionView::Base.full_sanitizer.sanitize(Prawn::Text::NBSP) returns " " HOT 1
- Subtable with colspan and multi-line text breaks across pages
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 prawn.