How to Create a Font

K

KevinSimonson

I would like to create a <Font> object that corresponds to Courier New
or Monospaced. Does anybody know how to do that?

Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
 
R

Roedy Green

I would like to create a <Font> object that corresponds to Courier New
or Monospaced. Does anybody know how to do that?


/ To create a font, you specify:
// 1. The font family name
// 2. The style (combining attribute bits Font.PLAIN, Font.BOLD and
Font.Italic)
// 3. The font size in points.
Font font = new Font( "Tiresias PCFont Z", Font.BOLD+Font.Italic, 15
);

likely font names:

"Monospaced" "DialogInput"

for monospaces font possibilities see
http://mindprod.com/jgloss/monospacedfonts.html

If you wanted a free font you could embed in your app,
http://mindprod.com/jgloss/freefonts.html

If you wanted to create your own font, see
http://mindprod.com/jgloss/font.html

That is very difficult undertaking and requires unusual artistic skill
to create entire set of glyphs that look good together. It is most
definitely not a matter of designing each glyph in isolation.
--
Roedy Green Canadian Mind Products
http://mindprod.com

"Don’t worry about people stealing an idea; if it’s original, you’ll have to shove it down their throats."
~ Howard Aiken (born: 1900-03-08 died: 1973-03-14 at age: 73)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top