?
Solved

Display Custom fonts in Java applets

Posted on 1997-08-18
1
Medium Priority
?
352 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 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