Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 13 May 2003
Offline Last Active May 30 2014 02:46 AM

Topics I've Started

BMFont: Should kerning value be added to the xadvance?

26 February 2014 - 08:30 AM

to get the x position of the next character, one should shift by xadvance.


but should one also add any possible kerning amount?





x_pos_for_next_char = current_x_pox + character.xadvance




x_pos_for_next_char = current_x_pos + character.xadvance + kerning



[BMFont] Duplicate kerning pairs

24 February 2014 - 10:39 AM


i noticed that certain kerning pairs are duplicate in the fnt file ( no matter the format is txt, xml or binary)


an excerpt:


kerning first=87  second=114 amount=-1  
kerning first=87  second=117 amount=-1  
kerning first=118 second=46  amount=-7  
kerning first=89  second=32  amount=-1  
kerning first=89  second=44  amount=-7  
kerning first=118 second=46  amount=-7  
kerning first=89  second=46  amount=-7  
kerning first=89  second=58  amount=-3  
notice the pair 118/46
i know this can probably be ignored and is not a big problem, i just wanted to let you know...

Can BMFont be used as a library.

07 August 2013 - 04:06 AM

BMFont has a very nice commandline interface plus config file, where you can achieve everything that can be done via the GUI.


Is it possible to also integrate this functionality in your application? Like loading it as a DLL and calling certain functions that produces the textures and the fnt file just in memory without writing it to disk? with this we could more dynamically create a multitude of fonts. imagine a texteditor, where the user can pick fontface, fontsize, fontstyle, ...

Getting notified when fullscreen mode is interrupted

31 July 2013 - 02:44 AM

hi, i use DX11 to bring my game into an exclusive fullscreen mode.


i want to handle the events, when the fullscreen mode is interrupted by the OS. like when alt+tab is pressed, or ctrl+alt+del.


is there an event on the Window or the WindowHandle where i can subscribe to?

Looping xWMA sounds with XAudio2

12 July 2013 - 02:09 AM

I am using SharpDX to play Sound via XAudio2 and got problems looping an xWMA file on a certain range. the values LoopBegin and LoopLength seem to be completely ignored when using xWMA files; it always loops the entire soundfile.

However on WAV files these values work like expected.

i was already reading http://msdn.microsoft.com/en-us/library/windows...er%28v=vs.85%29.aspx

but i believe i have met all criteria with the values to PlayBegin, PlayLength, LoopBegin, LoopLength etc.

anything specific about xwma data that i am missing here?

i am using this function to set the values in samples since all my files have 44100KhZ


static int MilliSecondsToSamples(double millis)
return (int) (44100.0 * millis / 1000.0);