There was an error while loading. Please reload this page.
1 parent 3805d26 commit 06d432eCopy full SHA for 06d432e
1 file changed
book/chrome.md
@@ -137,6 +137,7 @@ method for that:
137
class BlockLayout:
138
def word(self, node, word):
139
# ...
140
+ w = font.measure(word)
141
if self.cursor_x + w > self.width:
142
self.new_line()
143
```
0 commit comments