Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Query about font TTF ?  (Read 1486 times)

0 Members and 1 Guest are viewing this topic.

Prote1n

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
    • View Profile
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 Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
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 Offline
  • Posts: 45
    • View Profile
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 Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
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. ::wave
 

Page created in 0.143 seconds with 23 queries.