Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.GetTextWidth
Computes the width of a text string.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 5.0 | Yes | Yes | Yes | Yes | Yes |
MBS( "DynaPDF.GetTextWidth"; PDF; Text ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| Text | The text to measure. | "Hello World" |
Result
Returns width or error.
Description
Computes the width of a text string.The graphics state parameters character spacing, word spacing, text scaling, and the current font size are all considered. A font must be set before this function can be used.
The function computes the visible width of the string. This is the width excluding the last character spacing. The bounding box of the string is the text width plus the current character spacing. This behavior must be taken into account when writing right aligned text with DynaPDF.WriteFText. Due to certain formatting rules DynaPDF.WriteFText uses the bounding box of a text string to output text.
See also GetTextWidth function in DynaPDF manual.
See also
- DynaPDF.GetFTextHeight
- DynaPDF.GetLineWidth
- DynaPDF.GetPageWidth
- DynaPDF.GetTemplWidth
- DynaPDF.GetTextRise
- DynaPDF.New
- DynaPDF.SetPageWidth
- DynaPDF.SetTextRect
- DynaPDF.SetTextRise
- DynaPDF.WriteFText
Blog Entries
Created 12nd November 2014, last changed 12nd November 2014
DynaPDF.GetTextScaling - DynaPDF.GetTransparentColor
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins