
Signature
And in short, I was afraid.
"Christian Kaufhold" ...
> > i want to display text with font size 30pt in a JEditorPane with the tag
> > "<font size="30pt">". But it is not displayed that big. How can i
[quoted text clipped - 3 lines]
> > display the text that big with the font size tag? Is there a limitation
> > for the size?
...
> size = cdata [CN]
>
> Deprecated. This attribute sets the size of the font. Possible values:
I took particular interest in this post, since
I have been consulting the c.i.w.a.s groups
recently while updating my sites.
Now, the following test html validates*..
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test Font Size</title>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1">
</head>
<body>
<p><font size='30pt'>Abc</font>de.</p>
</body>
</html>
* http://validator.w3.org/
Note that if I had not lazily copied the doctype
from another document, it would have read
"3.2", the flavour that a JEP will understand.
If the JEP fails for that html, my guess is that
either the html the OP is supplying is invalid,
or the JEP has a 'maximum size' set internally.
Unfortunately for the OP, I am too lazy to go
checking it further at this instant, but I would
not mind having a look over an sscce..
http://www.physci.org/codes/sscce.jsp
So ..given you (Christian) know about 10 times
as much as I ever want to know about GUI's,
I'll put the question to you.
Did I misunderstand something here, or
did you perhaps get this one wrong?
--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Christian Kaufhold - 03 Feb 2004 14:15 GMT
> "Christian Kaufhold" ...
>>
[quoted text clipped - 7 lines]
> ...
>> size = cdata [CN]
^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^
> Now, the following test html validates*..
>
[quoted text clipped - 8 lines]
> </body>
> </html>
http://www.w3.org/TR/html4/sgml/intro.html#h-19.1
http://www.w3.org/TR/html4/types.html#type-cdata
For some HTML 4 attributes with CDATA attribute values, the specification
imposes further constraints on the set of legal values for the attribute
that may not be expressed by the DTD.
Specifying that the allowed values are 1, 2, 3, 4, 5, 6, 7, +1, +2, +3, +4,
-1, -2 (for usual BASEFONT=3) is not expressible by the DTD.
Christian