Skip to content

Commit

Permalink
Cleanup details of dropcaps samples to normalize a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 30, 2023
1 parent 4364425 commit ff463f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions data/dropcaps/groff.mom
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
.PRINTSTYLE TYPESET
.PAGEWIDTH 297.675p
.PAGELENGTH 419.58p
.L_MARGIN 0.4i
.R_MARGIN 0.4i
.L_MARGIN 40p
.R_MARGIN 40p
.T_MARGIN 40p
.DROPCAP T 2
his paragraph has a pretty plain initial or drop cap.
It uses the default document font.
You didn't really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.

.DROPCAP \*[FWD -16p]``N 2
.DROPCAP \*[FWD -.58m]``N 2
.SMALLCAPS
ever say never\c
.SMALLCAPS OFF
Expand All @@ -22,9 +23,9 @@ a hanging indent.
No worries.
All you have to do is guess and fudge.

.DROPCAP_GUTTER 10p
.DROPCAP_GUTTER 1m
.DROPCAP A 3
\*[FWD -10p]nother paragraph shows off a different line count.
\*[FWD -1m]nother paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
This helps highlight the fact that the initial letter belongs to the first word.
The first line of text will be flush against the drop cap.
Expand Down
2 changes: 1 addition & 1 deletion data/dropcaps/sile.sil
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It uses the default document font.
You didn’t really expect more detail with such a generic font choice, right?
This may be exactly what you want, especially with modern typesetting styles which tend towards the minimalist.

\dropcap[lines=2,join=true]{\kern[width=-0.8en]“N}\font[features=+smcp]{ever say never,}” the saying goes.
\dropcap[lines=2,join=true]{\kern[width=-0.9en]“N}\font[features=+smcp]{ever say never,}” the saying goes.
Someday your dropcap may include leading punctuation \em{and} a hanging indent.
No worries.
All you have to do is guess and fudge.
Expand Down
2 changes: 1 addition & 1 deletion data/dropcaps/typst.typ
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#dropcap(
height: 3,
justify: true,
hanging-indent: 10pt,
hanging-indent: 1em,
)[
Another paragraph shows off a different line count.
Also it uses a stand-off effect in lines following the opening.
Expand Down

0 comments on commit ff463f3

Please sign in to comment.