Skip to content

Commit

Permalink
Fix default font measure (#191)
Browse files Browse the repository at this point in the history
* Reset width on newline (#186)

* Add -t flag to win-buildmodules.bat
  • Loading branch information
skejeton authored Jul 7, 2024
1 parent 148067c commit 661de3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/staembed.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "tophat.h"
#include "tophat.h"
const char *th_em_modulesrc[] = {
"\n"
"import (\n"
Expand Down Expand Up @@ -1268,6 +1268,7 @@ const char *th_em_modulesrc[] = {
"\t\t\tif w > maxw {\n"
"\t\t\t\tmaxw = w\n"
"\t\t\t}\n"
"\t\t\tw = 0\n"
"\n"
"\t\t\tcontinue\n"
"\t\t}\n"
Expand Down
1 change: 1 addition & 0 deletions umka/canvas.um
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn textSize*(text: str, scale: th::fu): th::Vf2 {
if w > maxw {
maxw = w
}
w = 0

continue
}
Expand Down

0 comments on commit 661de3a

Please sign in to comment.