April 17, 2024, 09:33:44 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
For WME related articles and tutorials visit
WME Resource Center
.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Query about font TTF ?
« previous
next »
Pages: [
1
]
Print
Author
Topic: Query about font TTF ? (Read 2931 times)
0 Members and 1 Guest are viewing this topic.
Prote1n
Lurker
Karma: 0
Offline
Posts: 45
Query about font TTF ?
«
on:
April 05, 2010, 08:56:51 AM »
Is there any way to create a "selected" font while using a TTF file format. I'd like the standard white letters over black screen
This works well with a Bitmap font but I do not succeed to create a black background in the TTF definition file
Could anybody help me ?
Logged
metamorphium
Global Moderator
Addicted to WME forum
Karma: 12
Offline
Gender:
Posts: 1511
Vampires!
Re: Query about font TTF ?
«
Reply #1 on:
April 07, 2010, 09:51:26 AM »
You can't use the font by itself, it's always part of STATIC, WINDOW or similar entities. So I'd suggest for example creating static with the background in question and the font assigned and by calling SizeToFit adjust the background only for the font width.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
Prote1n
Lurker
Karma: 0
Offline
Posts: 45
Re: Query about font TTF ?
«
Reply #2 on:
April 07, 2010, 11:30:11 AM »
My Goal is to use a TTF in a editor control ... and it's not possible to get the SelStart and SelEnd in real time ....
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: Query about font TTF ?
«
Reply #3 on:
April 07, 2010, 12:13:58 PM »
You can't achieve a solid background for TrueType fonts. You'll have to use a different letter color for selected text.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Query about font TTF ?