##set text question

8 messages · Page 1 of 1 (latest)

molten storm
#

It is possible to have #set text(18pt). The text function has many arguments. I would have expected that I have to use #set text(size: 18pt)

How does text know that I want to set the size?

swift forum
#

typst magic which knows "18pt" is a valid size argument so assigns it to size

#

(also setting it explicitly also works)

molten storm
#

Hm, there are more arguments with type length so that it could be a valid value for at least another argument.

swift forum
#

yeah but it is set to use size, for any unspecified length args, just for convenience

molten storm
#

Ok, so there well defined conveniences for (I guess also other functions) calling text

swift forum
#

yes, though i don't know if they are listed somewhere

molten storm
#

Perhaps one can reason about them from the existing examples. Not sure, though.