d2/lib/textmeasure
Kevin David 9ba1d85d21
d2graph: check that font family is entirely loaded before using it
I tested this by removing the changes I added in `d2fonts`, which led to:
```
[21:23:54] info: compiling GetUniqueColumnName-fix.d2...
[21:23:54] err: failed to compile: ruler does not have entire font family SourceCodePro loaded, is a style missing?
```

The error was also rendered in the UI.
2023-01-24 21:25:01 -05:00
..
atlas.go Move textmeasure into lib 2022-12-01 06:51:17 -08:00
markdown.go update li measurement + h1 border-bottom 2023-01-15 23:31:06 -08:00
NOTICE.txt Move textmeasure into lib 2022-12-01 06:51:17 -08:00
rect.go Move textmeasure into lib 2022-12-01 06:51:17 -08:00
textmeasure.go d2graph: check that font family is entirely loaded before using it 2023-01-24 21:25:01 -05:00
textmeasure_test.go test 2022-12-22 00:46:46 -08:00