Alcinoe
Alcinoe copied to clipboard
ALText html features and True font
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
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)
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.
this is look rotate screen
@aam4gian you are on ios or android ? is the problem in all platform? Can you try to replace the #13#10 by <br> ?
I only tried it on an Android device. just using
it also doesn't have any effect, but it still has the same problem.
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
I've tried it on windows, it still doesn't work altext.zip