CPLoftext

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.6, Creation date: 2017-03-17, Last change: 2025-09-14

returns a CPL of one or more textlines separated by \n

Description

This function takes seconds to process.
10 point ~ 7 mm "g' to 'X' is about 10mm, a line is about 14 mm

See Also: CPLofimage , CPLofcontourc , textHorizontalBlockAlign

Example Illustration

 missing image of CPLoftext(str,siz,FW,FN)

Syntax

CPL=CPLoftext(str,[siz,FW,FN])

Input Parameter

str: one or more textlines separated by \n
siz: size in pt
FW: FontWidth; see text; default is 'normal'
FN: FontName; see text; default is 'Helevetica'

Output Parameter

CPL: Closed Polygon Line

Examples


tic; CPLoftext('test',0.2); toc;
tic; CPLoftext('test',70); toc;
SGofCPLz(CPLoftext('test'),5); view(-30,30);
CPLoftext('The quick brown fox jumps\n over the lazy dog',10,'bold','Cambria')




Copyright 2017-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