---
title: textSize
card_id: 85825
---

# textSize

```
set [the] textSize to [ph:posInteger]
set [the] textSize of [[ph:chunk] of] [ph:field] to [ph:posInteger]
set [the] textSize of [ph:button] to [ph:posInteger]
set [the] textSize of the message box to [ph:posInteger]
```

The `textSize` property returns or sets the size, in pixels, of the font for Paint text, text in a field, a button name, or the Message box. The default value is 12.

<b>Note</b>: if a chunk of a field contains a mixture of sizes, HyperCard returns `mixed` when you ask for `the textSize`. 

## Examples

```
the textSize of field 1
the textSize of the clickChunk
the textSize of the foundChunk

if the textSize of the clickChunk is 10 then ...

set the textSize to 10 -- for the text tool
set the textSize of field 1 to 12
set the textSize of card button 1 to 9
set the textSize of char 1 to 19 of line 2 of field 3 to 24
```

## Related Topics

* [reset](/HyperTalkReference/commands/reset)
* [textAlign](/HyperTalkReference/properties/textAlign)
* [textFont](/HyperTalkReference/properties/textFont)
* [textHeight](/HyperTalkReference/properties/textHeight)
* [textStyle](/HyperTalkReference/properties/textStyle)
