Skip to content

Commit

Permalink
Set GridfitType on input text
Browse files Browse the repository at this point in the history
Fixes #379
  • Loading branch information
Psycast committed Mar 18, 2024
1 parent 938ce1c commit 94c9ad2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/ui/BoxText.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package classes.ui
import flash.events.Event;
import flash.events.FocusEvent;
import flash.text.AntiAliasType;
import flash.text.GridFitType;
import flash.text.TextField;
import flash.text.TextFormat;

Expand All @@ -30,6 +31,7 @@ package classes.ui
_input.width = width - 4;
_input.type = "input";
_input.embedFonts = true;
_input.gridFitType = GridFitType.SUBPIXEL;
_input.antiAliasType = AntiAliasType.ADVANCED;
_input.defaultTextFormat = _textFormat;

Expand Down

0 comments on commit 94c9ad2

Please sign in to comment.