Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
LWJGL TrueTypeFont Example From Stream
SUBMITTED BY:
Guest
DATE:
Aug. 19, 2013, 5:41 p.m.
FORMAT:
Java
SIZE:
365 Bytes
Raw
Download
Tweet
HITS:
805
Go to comments
Report
try
{
InputStream
inputStream
=
ResourceLoader
.
getResourceAsStream
(
"C:/Users//Desktop/Coalition.ttf"
);
Font
awtFont
=
Font
.
createFont
(
Font
.
TRUETYPE_FONT
,
inputStream
);
awtFont
=
awtFont
.
deriveFont
(
48
f
);
// set font size
font
=
new
TrueTypeFont
(
awtFont
,
false
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus