FontKerning.bmx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. 'This BMX file was edited with BLIde ( http://www.blide.org )
  2. rem
  3. bbdoc: This class stores all the kerning-releated operations for a bitmap font class.
  4. endrem
  5. Type TFontKerning
  6. rem
  7. bbdoc:<font color=#FF0000><b>PRIVATE DATA</b></font>
  8. end rem
  9. Field PrivateData:TPrivateFontKerning = New TPrivateFontKerning
  10. rem
  11. bbdoc:Set the horizontal kerning for the font, in pixels.
  12. end rem
  13. Method SetHKerning(Value:Float)
  14. privatedata.HKF = value
  15. End Method
  16. rem
  17. bbdoc:Set the vertical kerning for the font, in pixels
  18. end rem
  19. Method SetVKerning(Value:Float)
  20. privatedata.VKF = value
  21. End Method
  22. rem
  23. bbdoc:Get the current horizontal kerning for this font, in pixels
  24. end rem
  25. Method GetHKerning:Float()
  26. Return privatedata.HKF
  27. End Method
  28. rem
  29. bbdoc:Get the current vertical kerning for this font, in pixels
  30. end rem
  31. Method GetVKerning:Float()
  32. Return privatedata.vkf
  33. End Method
  34. End Type
  35. Private
  36. Type TPrivateFontKerning
  37. Field HKF:Float = 0 'Horizontal kerning factor
  38. Field VKF:Float = 0 'Vertical kerning factor
  39. End Type
  40. Public