21 ms·
Congrats on the release! I gave it a spin before the launch of the playground, and really liked it Did I understand correctly that, in order to use custom font
by sendfoods 4y ago
Congrats on the release! I gave it a spin before the launch of the playground, and really liked it
Did I understand correctly that, in order to use custom fonts, one has to recompile the code with appropriate .tff files? It's shortly mentioned [1].
[1] https://github.com/terrastruct/d2/tree/master/d2renderers/d2fonts https://github.com/terrastruct/d2/tree/master/d2renderers/d2...
- alixanderwang 4y agoThanks! We actually released a couple weeks ago, and since then it's been almost 100% fixing/improving things the community's surfaced. Long list of stuff here: https://github.com/terrastruct/d2/releases https://github.com/terrastruct/d2/releases. Re fonts: that README is for contributing fonts. I'm not sure what the best solution is for custom fonts -- whether to just specify the name of a system font, a google font, point to a directory of local TTFs. Some discussion going on here: https://github.com/terrastruct/d2/discussions/132 https://github.com/terrastruct/d2/discussions/132