Commit c9fc14ca4e22ffc37a9e2e9ecbf83df13121c5de

Thomas de Grivel 2022-02-13T12:25:52

reduce font size

diff --git a/lib/exterm/font.ex b/lib/exterm/font.ex
index 314dc1f..d36fb6d 100644
--- a/lib/exterm/font.ex
+++ b/lib/exterm/font.ex
@@ -55,19 +55,19 @@ defmodule Exterm.Font do
     ttf = ttf(font.family)
     if glyph = TTF.glyph(ttf, codepoint) do
       :gl.pushMatrix()
-      :gl.translatef(0.0, 90.0, 0.0)
-      :gl.scalef(0.02, 0.02, 0.02)
+      :gl.translatef(0.0, 70.0, 0.0)
+      :gl.scalef(0.015, 0.015, 0.015)
       Enum.each(glyph.contours, fn contour ->
         :gl.begin(:gl_const.gl_line_loop)
         :gl.color3f(0.0, 0.0, 0.0)
         Enum.each(TTF.Glyph.contour_segments(contour), fn control_point ->
-          :gl.vertex2f(control_point.a.x * 1.0, control_point.a.y * 1.0)
-          :gl.vertex2f(control_point.c.x * 1.0, control_point.c.y * 1.0)
+          :gl.vertex2f(control_point.a.x + 0.0, control_point.a.y + 0.0)
+          :gl.vertex2f(control_point.c.x + 0.0, control_point.c.y + 0.0)
         end)
         :gl.end()
       end)
       :gl.popMatrix()
-      :gl.translatef(20.0, 0.0, 0.0)
+      :gl.translatef(16.0, 0.0, 0.0)
     end
   end