 TTF_SetFontHinting(freeSans, TTF_HINTING_LIGHT)
 // TTF_SetFontHinting(freeSans, TTF_HINTING_NORMAL)
 
-TTF_SetFontStyle(freeSans, TTF_STYLE_BOLD)
+//TTF_SetFontStyle(freeSans, TTF_STYLE_BOLD)
 
 let textGrid = TextGrid(renderer: rend, font: freeSans)
 

  textGrid.add("d")
  textGrid.add("E")
  textGrid.add("f")
}

var ev = SDL_Event()
var done = false

while !done {
  while SDL_PollEvent(&ev) != 0 {
    if ev.type == SDL.TEXTINPUT {
      p("text input \(ev.text)")
    } else if ev.type == SDL.QUIT {
      done = true
    }
  }
  SDL_SetRenderDrawColor(rend, 255, 255, 255, 255)
  SDL_RenderClear(rend)
  let msgResult = SDL_RenderCopy(rend, msg, nil, &msgRect)
  drawAgain()
  SDL_RenderPresent(rend)
  SDL_Delay(100)
//   SDL_Delay(16)
}


defer { SDL_DestroyWindow(win) }

let rend = SDL_CreateRenderer(win, -1, SDL.RENDERER_ACCELERATED)
// let rend = SDL_CreateRenderer(win, -1, 0)

if rend == nil {
  throw SDLError.CreateRenderer
