ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Text Setting

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AndNit Posted - Jul 18 2024 : 19:40:17
Hey...
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 27 2024 : 23:07:36
Hi

Do you mean a manual for the RTF standard?

Please see: https://latex2rtf.sourceforge.net/rtfspec.html

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 26 2024 : 21:49:24
Hi

If you run the demo:

\Demos\Other\RichEdit\RichEdit.dpr

You will see the RTF for your text is:

{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang5129\deflangfe5129{\fonttbl{\f0\fswiss\fprq2\fcharset0 Aptos;}}
{\*\generator Riched20 10.0.22621}{\*\mmathPr\mnaryLim0\mdispDef1\mwrapIndent1440 }\viewkind4\uc1 
\pard\widctlpar\sa160\sl276\slmult1\kerning2\ul\b\f0\fs24 PROPERTY:\ulnone\b0  \b Residential building (under construction)\b0  located in \b Praia da Guanabara, n\'ba 1371\b0 , former n\'ba 433, belonging to the parish of Nossa Senhora d'Ajuda, useful domain of the land, \b outside the Federal Union.\b0\par
}


Which you can use to insert a formatted text layer as follows:

  ImageEnView1.LayersAdd( ielkText );
  TIETextLayer( ImageEnView1.CurrentLayer ).EnableFormatting := True;
  TIETextLayer( ImageEnView1.CurrentLayer ).RichText :=
    '{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang5129\deflangfe5129{\fonttbl{\f0\fswiss\fprq2\fcharset0 Aptos;}}' +
    '{\*\generator Riched20 10.0.22621}{\*\mmathPr\mnaryLim0\mdispDef1\mwrapIndent1440 }\viewkind4\uc1' +
    '\pard\widctlpar\sa160\sl276\slmult1\kerning2\ul\b\f0\fs24 PROPERTY:\ulnone\b0  \b Residential building (under construction)\b0  located in \b Praia da Guanabara, n\''ba 1371\b0 , former n\''ba 433, belonging to the parish of Nossa Senhora d''Ajuda, useful domain of the land, \b outside the Federal Union.\b0\par}';
  TIETextLayer( ImageEnView1.CurrentLayer ).SizeToText();
  ImageEnView1.Update();


Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 25 2024 : 01:56:25
Hi

If you use TIERichEdit (which is just an enhanced TRichEdit) then you can assign its Rich text:

http://www.imageen.com/help/TIERichEdit.RTFText.html

To the RichText property of the layer:

http://www.imageen.com/help/TIETextLayer.RichText.html


You can add formatting to a selection in TTIERichEdit using:

http://www.imageen.com/help/TIERichEdit.SelAttributes.html

Or, as mentioned, add formatted text using:

http://www.imageen.com/help/TIERichEdit.AddFormattedText.html

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jul 24 2024 : 05:13:20
Hi

There is no built-in functionality for that. You can only programmatically format text in as much as it is supported by TRichEdit or TIERichEdit.



Nigel
Xequte Software
www.imageen.com
AndNit Posted - Jul 23 2024 : 17:14:39
Hello,
xequte Posted - Jul 20 2024 : 16:27:40
Yes, that is correct. The Font property has no effect if rich formatting is used:

http://www.imageen.com/help/TIETextLayer.Font.html

To add formatted text you would need to update the RichText Property:

http://www.imageen.com/help/TIETextLayer.RichText.html

Which would require you to build a rich text string, e.g. using TIERichEdit:

http://www.imageen.com/help/TIERichEdit.AddFormattedText.html


Nigel
Xequte Software
www.imageen.com