DynaPDF.SetFontOrigin
---------------------

Sets the current font origin that is used to position text strings.

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

MBS( "DynaPDF.SetFontOrigin"; PDF; Origin ) 

**MBS**( **"DynaPDF.SetFontOrigin";** /\* Sets the current font origin that is used to position text strings. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Origin**) /\* Which origin to use: DownLeft or TopLefte.g. "TopLeft" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Origin | Which origin to use: DownLeft or TopLeft | "TopLeft" |

### Result

Returns OK or error.

### Description

Sets the current font origin that is used to position text strings.   
The font origin is automatically set to "TopLeft" or "DownLeft" if the coordinate system will be changed (see [DynaPDF.SetPageCoords](DynaPDFSetPageCoords.md) for further information).  
  
See also [SetFontOrigin](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetFontOrigin.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.BeginContinueText](DynaPDFBeginContinueText.md)
- [DynaPDF.GetFontOrigin](DynaPDFGetFontOrigin.md)
- [DynaPDF.GetFontWeight](DynaPDFGetFontWeight.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFontWeight](DynaPDFSetFontWeight.md)
- [DynaPDF.SetPageCoords](DynaPDFSetPageCoords.md)

This function checks for a license.

Created 21st October 2014 , last changed 21st October 2014

  
[DynaPDF.SetFontEx](DynaPDFSetFontEx.md) - [DynaPDF.SetFontSearchOrder](DynaPDFSetFontSearchOrder.md)

[HTML Version](DynaPDFSetFontOrigin.shtml)