Matthew Butterick
342422e221
add unicode-linebreak
2 years ago
Matthew Butterick
40b87a4bb9
doc typo
2 years ago
Matthew Butterick
4220033f37
track character-tracking in add-text
...
in certain cases we need to jump out of a PDF text-drawing command (`TJ`) to reset the xy position (say, if the next glyph has a special offset). We need to account for any tracking that the TJ might impose
2 years ago
Matthew Butterick
fcfebb70bf
fallback for older OS/2 tables
...
the capHeight and xHeight fields were introduced in the version 4 OS/2 table. Ancient fonts may have an earlier version of the table, and thus be missing these fields.
2 years ago
Matthew Butterick
d6e4b81675
Merge branch 'main' of https://github.com/mbutterick/typesetting
2 years ago
Matthew Butterick
09d7a8f939
allow upper or lowercase font extensions
2 years ago
Matthew Butterick
e158569f86
allow upper or lowercase font extensions
2 years ago
Matthew Butterick
54b2ff0bf9
let's get stricter
2 years ago
Matthew Butterick
4aac042157
cleaner
2 years ago
Matthew Butterick
ab900dc3b7
set a word width correct size
3 years ago
Matthew Butterick
4297717f25
improve font resolution
3 years ago
Matthew Butterick
765426d980
no scaling in render pt 2
3 years ago
Matthew Butterick
3bad396c60
no scaling in render
3 years ago
Matthew Butterick
e2c2f9429c
define attrs in attr.rkt
...
put other ops in attr-passes
3 years ago
Matthew Butterick
a79266d421
test str
3 years ago
Matthew Butterick
1f537a1233
start fiddling with layout
3 years ago
Matthew Butterick
e9955c9d25
better error messages when using list-of
...
capture error and append to message
3 years ago
Matthew Butterick
eb40e8b576
use quad-copy instead of struct-copy
...
because struct-copy is evil
3 years ago
Matthew Butterick
56431ddf47
better error msg
3 years ago
Matthew Butterick
9a2abebf31
note
3 years ago
Matthew Butterick
52d33803de
setup first page
3 years ago
Matthew Butterick
bc78ac9824
append-boq-and-eoq
...
signals beginning & end of a list of quads
3 years ago
Matthew Butterick
b5f794014e
print-pass
3 years ago
Matthew Butterick
2cc67cd3bf
change how attr-keys are printed
3 years ago
Matthew Butterick
9e005433b0
cleaner
3 years ago
Matthew Butterick
c574a9a844
page & page-sizes
3 years ago
Matthew Butterick
ea88ccb05e
more HTML renderer
3 years ago
Matthew Butterick
7f374ee974
start HTML renderer
3 years ago
Matthew Butterick
67ba2690cc
add `set-font` drawing instruction
3 years ago
Matthew Butterick
6edad964bd
implement `remove-font-without-char`
3 years ago
Matthew Butterick
fd30c9ed44
paths can be case sensitive, can't they
3 years ago
Matthew Butterick
2b459351bc
add font & attr passes
3 years ago
Matthew Butterick
ff3e38f2e7
unicode char testers
3 years ago
Matthew Butterick
27ef82cd96
add `convert-path-attr-values`
3 years ago
Matthew Butterick
6e9d26fa62
remove obsolete comment
3 years ago
Matthew Butterick
396d52ae27
catch no-value case
3 years ago
Matthew Butterick
8a3110e9f4
add `resolve-font-features`
3 years ago
Matthew Butterick
71ad54fa78
fix attr iteration
...
if we mutate hash while using it within `in-hash`, bad things happen
3 years ago
Matthew Butterick
51d6c536d2
reversal on name
...
add and subtract are better antonyms
3 years ago
Matthew Butterick
4b8fc2e363
change name of attr
...
font-features-remove is consistent with set-remove
3 years ago
Matthew Butterick
fec7b03474
add attr-keys font-features, font-features-add, font-features-subtract
3 years ago
Matthew Butterick
ec40caa7a2
add set type attr-key
3 years ago
Matthew Butterick
93b272ea87
make quad constructor more lenient
3 years ago
Matthew Butterick
92c56e3ee4
use all-attrs as default value for current-attrs parameter
3 years ago
Matthew Butterick
d0e6a86cd5
delete font-size-previous key
3 years ago
Matthew Butterick
169030b6bf
nit
3 years ago
Matthew Butterick
728433fcde
finish resolving font sizes
3 years ago
Matthew Butterick
03f8ca5d79
comment
3 years ago
Matthew Butterick
93ed327a32
tag attr-keys as mandatory and provide default values
3 years ago
Matthew Butterick
6175eeb909
work on font size cascading
3 years ago