Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
How to Get a Monospaced Font
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Martin Gregorie, post: 4160972"] physicalfont.html> Thats good to know except that you have to be familiar with the fonts to know which, if any, correspond to the logical fonts, e.g. Monospace, so as a piece of documentation its useless because it fails to provide that mapping information. The other thing that's missing is any documentation of the way that JTextField and JTextArea convert the 'columns' argument into a pixel width. IME any constructor that uses this argument to set the field width invariably creates a field that is around twice the width needed to display the specified number of glyphs. It doesn't take a genius to say what default typeface, weight and size is used to calculate the field size and to explain how this will vary if other typefaces, weights and sizes are used for the field content, so WTF isn't this information, or at least a link to it, part of the class documentation? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
How to Get a Monospaced Font
Top