1 /* Automatic kerning for font rendering. This solves the issue where some
2  * fonts (especially serif fonts) have too much space between specific
3  * character pairs, like WA or L'.
4  */
5 
6 #ifndef _MF_KERNING_H_
7 #define _MF_KERNING_H_
8 
9 #include "mf_config.h"
10 #include "mf_rlefont.h"
11 
12 /* Compute the kerning adjustment when c1 is followed by c2.
13  *
14  * font: Pointer to the font definition.
15  * c1: The previous character.
16  * c2: The next character to render.
17  *
18  * Returns the offset to add to the x position for c2.
19  */
20 #if MF_USE_KERNING
21 MF_EXTERN int8_t mf_compute_kerning(const struct mf_font_s *font,
22                                     mf_char c1, mf_char c2);
23 #else
24 #define mf_compute_kerning(f,c1,c2) (0)
25 #endif
26 
27 #endif