Comments (2)
Yes, with Pango.FontDescription.set_stretch, this should be pretty straight-forward.
New properties need to be added in css/properties.py
and css/validation.py
, and the Pango stuff is in text.py
.
from weasyprint.
The font-stretch value is just passed to Pango. After that it all depends on the fonts that are used.
from weasyprint.
Related Issues (20)
- Inline styles don't appear to be respected HOT 4
- Allow suppressing the Producer metadata HOT 2
- Version 61.2 PDFs with form input are unreasonably HUGE HOT 3
- PDF conversion is slow when CJK font is used HOT 4
- getting images to load HOT 2
- Add support for border-image properties HOT 1
- How can I debug or anything to check importing google fonts? HOT 6
- Cropped PDF after generating it from HTML HOT 1
- FontConfiguration object has no attribute _folder HOT 2
- Background images not printing correctly and displayed incorrectly in print preview in Edge HOT 9
- Memory consumption increases continuously when generating multiple PDFs in a Loop. HOT 7
- weasyprint generates blurry/opaque image HOT 14
- unexpected hyphenation, dash seems to be replaced with a hyphen HOT 2
- skip_first_whitespace -> tuple index out of range HOT 7
- SVG text with text-anchor="middle" is clipped from version 60.2 HOT 2
- Text clipped when using text-anchor="middle" HOT 2
- Weasyprint.exe : Fontconfig error: Cannot load default config file: No such file: (null) HOT 8
- Support of `@media only` HOT 4
- Migrate to resvg? HOT 2
- Support grid-auto-flow: column HOT 4
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 weasyprint.