Add font.spacing
25
font.spacing.md
Normal file
25
font.spacing.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# font.spacing()
|
||||||
|
Obté el spacing de la font actual.
|
||||||
|
# font.spacing(value)
|
||||||
|
Especifica un spacing per a la font actual.
|
||||||
|
|
||||||
|
### Paràmetres
|
||||||
|
|
||||||
|
`value`
|
||||||
|
El spacing a ficar en la font actual.
|
||||||
|
|
||||||
|
### Torna
|
||||||
|
El spacing de la font actual (si es crida sense paràmetres).
|
||||||
|
|
||||||
|
### Exemple
|
||||||
|
```
|
||||||
|
local f = font.load("font.fnt")
|
||||||
|
font.current(f)
|
||||||
|
font.spacing(0)
|
||||||
|
draw.text("0146",100,50,28)
|
||||||
|
font.current(font.DEFAULT)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Vore també
|
||||||
|
* [font.load](font.load)
|
||||||
|
* [font.current](font.current)
|
||||||
Reference in New Issue
Block a user