gen_readme
This commit is contained in:
parent
d8afee9bf3
commit
bb47a83e37
3 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ font.size = 20
|
|||
|
||||
let text = "Typesetting is the arrangement and composition of text in graphic design and publishing in both digital and traditional medias."
|
||||
|
||||
image.fillText(font.typeset(text, bounds = vec2(180, 180)), vec2(10, 10))
|
||||
image.fillText(font.typeset(text, vec2(180, 180)), translate(vec2(10, 10)))
|
||||
```
|
||||

|
||||
|
||||
|
@ -143,7 +143,7 @@ let spans = @[
|
|||
newFont(typeface, 14, color(0.3125, 0.3125, 0.3125, 1)))
|
||||
]
|
||||
|
||||
image.fillText(typeset(spans, bounds = vec2(180, 180)), vec2(10, 10))
|
||||
image.fillText(typeset(spans, vec2(180, 180)), translate(vec2(10, 10)))
|
||||
```
|
||||

|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ font.size = 20
|
|||
|
||||
let text = "Typesetting is the arrangement and composition of text in graphic design and publishing in both digital and traditional medias."
|
||||
|
||||
image.fillText(font.typeset(text, bounds = vec2(180, 180)), vec2(10, 10))
|
||||
image.fillText(font.typeset(text, vec2(180, 180)), translate(vec2(10, 10)))
|
||||
image.writeFile("examples/text.png")
|
||||
|
|
|
@ -19,5 +19,5 @@ let spans = @[
|
|||
newFont(typeface, 14, color(0.3125, 0.3125, 0.3125, 1)))
|
||||
]
|
||||
|
||||
image.fillText(typeset(spans, bounds = vec2(180, 180)), vec2(10, 10))
|
||||
image.fillText(typeset(spans, vec2(180, 180)), translate(vec2(10, 10)))
|
||||
image.writeFile("examples/text_spans.png")
|
||||
|
|
Loading…
Reference in a new issue