Recent

Author Topic: GetKerningPairs missing  (Read 1112 times)

tk

  • Sr. Member
  • ****
  • Posts: 367
GetKerningPairs missing
« on: July 18, 2015, 03:55:58 pm »
Hi,
Windows API has a GetKerningPairs function to get kerning pairs between some adjacent characters of a font.
These specify if the adjacent characters will be output more tightly together or with more spacing than usual.
This function must be used if you want to output a string to Canvas not as a whole but splitted to different parts (e.g. you want to use different background for some characters), while maintaining the original kerning.

But how to do this platform independently in Lazarus?

Another option is to disable kerning, but again, how to do that (even on Windows)?
(Here one option is to output the text character by character - to disable kerning - but that is for sure not the smartest solution)

Thank you

 

TinyPortal © 2005-2018