Skip to content

Commit

Permalink
Merge pull request #68 from aviks/aviks-patch-2
Browse files Browse the repository at this point in the history
render text with UTF8
  • Loading branch information
aviks committed Mar 25, 2023
2 parents 932fb67 + aa91090 commit 389d613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Creates an actor with text rendered using font font_name. Font should be located
"""
function TextActor(text::String, font_name::String; font_size=24, color=Int[255,255,0,255], kv...)
font = TTF_OpenFont(file_path(font_name, :fonts), font_size)
sf = TTF_RenderText_Blended(font, text, SDL_Color(color...))
sf = TTF_RenderUTF8_Blended(font, text, SDL_Color(color...))
TTF_CloseFont(font)
w, h = size(sf)
a = Actor(
Expand Down

0 comments on commit 389d613

Please sign in to comment.