Skip to content

Commit bbf2530

Browse files
committed
Update api.md
1 parent 7169c43 commit bbf2530

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

docs/api.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,41 @@ Nothing
641641
int h = YourScreen.textFontHeight();
642642
```
643643

644+
### `textSize()`
645+
646+
#### Description
647+
648+
Set a text scale factor
649+
650+
#### Syntax
651+
652+
```
653+
YourScreen.textSize(scale)
654+
YourScreen.textSize(scaleX, scaleY)
655+
```
656+
657+
#### Parameters
658+
659+
scale: scale factor used for both x and y
660+
scaleX: x scale factor
661+
scaleY: y scale factor
662+
663+
#### Returns
664+
665+
Nothing
666+
667+
#### Example
668+
669+
```
670+
YourScreen.beginDraw();
671+
YourScreen.clear();
672+
YourScreen.stroke(255, 255, 255);
673+
YourScreen.textFont(Font_5x7);
674+
YourScreen.textSize(5);
675+
YourScreen.text("abc", 0, 1);
676+
YourScreen.endDraw();
677+
```
678+
644679
### `set()`
645680

646681
#### Description

0 commit comments

Comments
 (0)