CPLtextimage

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 2.8, Creation date: 2015-12-07, Last change: 2025-09-14

returns contour of text string

Description

This is a quite generic but very slow procedure, since it uses imageoftext.

See Also: CPLtextimage , VLFLtextimage , imageoftext , VLofimage , textHorizontalBlockAlign , CPLoftext

Example Illustration

 missing image of CPLtextimage(text,dt,f,sx,sy,sz,ha)

Syntax

[CPL,VL,EL,FL]=CPLtextimage(text,[dt,f,sx,sy,sz,ha])

Input Parameter

text: Text String / Latex
dt: Pixel size; Default is 0.25
f: Font size; Default is 72
sx: Size in x; default is 0, i.e. no scaling
sy: Size in y; default is 0, i.e. no scaling
sz: Size in z; default is 0, i.e. no scaling
ha: horizontal alignment: 'l' or 'c' or 'r'

Output Parameter

CPL: Closed Polygon List
VL: VertexLlist
EL: Edge List
FL: Facet List

Examples


CPLtextimage('sin(x)')




Copyright 2015-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21