Recent

Author Topic: Problem with font size in Html panel  (Read 11239 times)

yordan

  • New Member
  • *
  • Posts: 18
Problem with font size in Html panel
« on: February 15, 2011, 03:48:28 pm »
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(' &nbsp;&nbsp;&nbsp; Документ: <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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1930
Re: Problem with font size in Html panel
« Reply #1 on: February 15, 2011, 03:52:18 pm »
Nothing is wrong: http://www.tizag.com/htmlT/font.php

Use CSS instead.

yordan

  • New Member
  • *
  • Posts: 18
Re: Problem with font size in Html panel
« Reply #2 on: February 15, 2011, 03:57:03 pm »
I have tried this, same thing anything larger than size=7 the text disappears

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1930
Re: Problem with font size in Html panel
« Reply #3 on: February 15, 2011, 04:04:01 pm »
I have tried this, same thing anything larger than size=7 the text disappears

What?

I said: use CSS.
Example:
<span style="font-size:77px;">Lazarus example for IPro HTML control.</span>

yordan

  • New Member
  • *
  • Posts: 18
Re: Problem with font size in Html panel
« Reply #4 on: February 17, 2011, 11:16:59 am »
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 :)

 

TinyPortal © 2005-2018