Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Display Custom fonts in Java applets

Posted on 1997-08-18
1
Medium Priority
?
357 Views
Last Modified: 2013-12-02
Is it possible to draw with a custom font in a
Java applet? Is there any classes in the Java JDK which I should use to implement this?
0
Comment
Question by:ytcheung
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
dsnider earned 300 total points
ID: 1225269
There is no class to draw a font, or to import some sort of custom font.  (You have to write your own).

One method I used (that worked reasonably well), was to load
a gif image of a font, slice it up into pieces, and treat each
character of the font as a different image.
(Read up on PixelGrabber.)

I took it one step further, and make 16 copies of the font, and put them through a ColorMaskFiler to have the standard 16 ANSI colors.

0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question