Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

ALText html features and True font

Open gatscross opened this issue 4 years ago • 7 comments

I like the ALText component that supports html, but I have a problem how to implement html break lines with or it doesn't work. then the next thing how to make the fontstyle follow the font used at design time, I followed the reference on youtube to make modifications to the FMX.FontGlyphs.Android.pas file. I tried making it using the TText component successfully, but with ALText it didn't work. The following is the sample repository link that I created

image

gatscross avatar Apr 01 '20 05:04 gatscross

Just one question, with the normal system font (so without patching the FMX.FontGlyphs.Android.pas) does it's work as expected ? as far as I see the break line work in your sample, but it's look like you want 2 break lines to have space between paragraph, so try to replace your #13#10 by #13#10#13#10 (so add 2 breaklines instead of one)

Zeus64 avatar Apr 01 '20 08:04 Zeus64

without using a patch file the case is still the same. for break lines I've tried it by adding #13#10#13#10 but it will only be text #13#10#13#10 which is also displayed. what you see in the picture above is because ALText in WordWrap mode enables and follows the screen dimensions.

gatscross avatar Apr 01 '20 08:04 gatscross

this is look rotate screen

image

gatscross avatar Apr 01 '20 08:04 gatscross

@aam4gian you are on ios or android ? is the problem in all platform? Can you try to replace the #13#10 by <br> ?

Zeus64 avatar Apr 02 '20 08:04 Zeus64

I only tried it on an Android device. just using
it also doesn't have any effect, but it still has the same problem.

gatscross avatar Apr 03 '20 03:04 gatscross

can you try on windows ? blank project just add a TalText and see if it's work. if not if you can add here the source code of your project

Zeus64 avatar Apr 03 '20 07:04 Zeus64

I've tried it on windows, it still doesn't work altext.zip

gatscross avatar Apr 03 '20 08:04 gatscross