Forum > Networking and Web Programming
Problem with font size in Html panel
(1/1)
yordan:
Hi, I have a problem regarding the font size="". The maximum size i can assign is 7 if I write size="9" the characters disappear, if I assign size less than 7 it works.
The code i use is:
memo1.Lines.Append('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>');
memo1.Lines.Append('<TABLE border="0" cellspacing="0" cellpadding="0"><tr><td rowspan=2>');
memo1.Lines.Append('<font size=7 face="Free 3 of 9 Extended">*'+nomer+'*</font></td><td align=left>');
memo1.Lines.Append(' Документ: <b>'+nomer+'</b>');
The particular problem appears to be in the following line:
memo1.Lines.Append('<font size=7 face="Free 3 of 9 Extended">*'+nomer+'*</font></td><td align=left>');
If anyone has a clue whats wrong please help.
Regards :)
theo:
Nothing is wrong: http://www.tizag.com/htmlT/font.php
Use CSS instead.
yordan:
I have tried this, same thing anything larger than size=7 the text disappears
theo:
--- Quote from: yordan on February 15, 2011, 03:57:03 pm ---I have tried this, same thing anything larger than size=7 the text disappears
--- End quote ---
What?
I said: use CSS.
Example:
<span style="font-size:77px;">Lazarus example for IPro HTML control.</span>
yordan:
Thanks, it worked with CSS, but I had to change the font from Free 3 of 9 Extended to Barcod39.
I'm really grateful for your help.
Regards :)
Navigation
[0] Message Index