DynaPDF.SetTextRise
-------------------

Sets the text rise.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetTextRise"; PDF; Value ) 

**MBS**( **"DynaPDF.SetTextRise";** /\* Sets the text rise. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Value**) /\* The Text rise in units.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Value | The Text rise in units. | 10 |

### Result

Returns OK or error.

### Description

Sets the text rise.  
Text rise specifies the distance, to move the baseline up or down from its default location. Positive values of text rise move the baseline up. Adjustments to the baseline are useful for drawing superscripts or subscripts. The default location of the baseline can be restored by setting the text rise to 0. The figure below illustrates the effect of the text rise. Text rise always applies to the vertical coordinate in text space.  
The text moves around the baseline.  
Default value = 0  
  
See also [DynaPDF.GetTextRise](DynaPDFGetTextRise.md).  
See also [SetTextRise](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetTextRise.shtml) function in DynaPDF manual.

### Examples

Set text rise:

 MBS ( "DynaPDF.SetTextRise"; $PDF ; 10 )  
### See also

- [DynaPDF.GetTextBBox](DynaPDFGetTextBBox.md)
- [DynaPDF.GetTextRise](DynaPDFGetTextRise.md)
- [DynaPDF.GetTextWidth](DynaPDFGetTextWidth.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetTextRect](DynaPDFSetTextRect.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.SetTextRect](DynaPDFSetTextRect.md) - [DynaPDF.SetTextScaling](DynaPDFSetTextScaling.md)

[HTML Version](DynaPDFSetTextRise.shtml)