Skip to content

Commit

Permalink
set font hinting to light
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Jan 25, 2015
1 parent 7110560 commit 17ff7d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kivy/core/text/_text_sdl2.pyx
Expand Up @@ -49,6 +49,7 @@ cdef class _SurfaceContainer:

def render(self, container, text, x, y):
cdef TTF_Font *font = _get_font(container)
TTF_SetFontHinting(font, TTF_HINTING_LIGHT)
cdef SDL_Color c
cdef SDL_Surface *st
cdef SDL_Rect r
Expand Down
2 changes: 1 addition & 1 deletion kivy/lib/sdl2.pxi
Expand Up @@ -628,7 +628,7 @@ cdef extern from "SDL_ttf.h":

#Set and retrieve FreeType hinter settings */
##define TTF_HINTING_NORMAL 0
##define TTF_HINTING_LIGHT 1
int TTF_HINTING_LIGHT
##define TTF_HINTING_MONO 2
##define TTF_HINTING_NONE 3
cdef int TTF_GetFontHinting( TTF_Font *font)
Expand Down

0 comments on commit 17ff7d3

Please sign in to comment.