Skip to content

Commit

Permalink
Merge pull request #3 from liZe/master
Browse files Browse the repository at this point in the history
Minor fixes for WeasyPrint
  • Loading branch information
zopyx authored Feb 13, 2020
2 parents 23a39fe + a73df68 commit 238ab2e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lessons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ antennahouse:
-run.sh -d index.html -o antennahouse.pdf

weasyprint:
-weasyprint index.html weasyprint.pdf
-weasyprint -e utf-8 index.html weasyprint.pdf


clean:
Expand Down
1 change: 1 addition & 0 deletions lessons/lesson-hyphenation-long-words/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ p.hyphenate {
border: 1px solid grey;
hyphenate-before: 4;
hyphenate-after: 3;
hyphenate-limit-chars: 1 4 3;
hyphens: auto;
-epub-hyphens: auto;
-webkit-hyphens: auto;
Expand Down
2 changes: 2 additions & 0 deletions lessons/lesson-ligatures/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ div.demo {
}

.with-ligatures {
font-variant-ligatures: normal;
-ah-ligature-mode: auto;
-webkit-font-kerning: auto;
font-kerning: none;
}


.without-ligatures {
font-variant-ligatures: none;
-ah-ligature-mode: none;
font-variant-ligatures: none;
}
Expand Down
2 changes: 1 addition & 1 deletion lessons/lesson-named-pages/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ h1 {
}

@page Bizarre {
size: a5 landscape;
size: 148mm 105mm;
background: blue;
color: pink;
border: 3px dashed yellow;
Expand Down
3 changes: 3 additions & 0 deletions lessons/lesson-page-areas/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@
prince-bleed: 10mm;
marks: crop cross;

/* WeasyPrint */
bleed: 10mm;

}

0 comments on commit 238ab2e

Please sign in to comment.