flixel icon indicating copy to clipboard operation
flixel copied to clipboard

FlxBitmapText slicing is wrong in hashlink

Open Geokureli opened this issue 3 years ago • 0 comments

slicing is messed up on hashlink, but works perfectly fine on html5

image

this font (hard to see on night mode): image

code:

var monospaceLetters:String = " !\"#$%&'()*+,-.\\0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[/]^_`abcdefghijklmnopqrstuvwxyz{|}~";
var charSize = FlxPoint.get(7, 10);
var fontMonospace = FlxBitmapFont.fromMonospace("assets/images/RetroMedievalV3.png", monospaceLetters, charSize);
var text:FlxBitmapText = new FlxBitmapText(fontMonospace);
text.scrollFactor.set(0, 0);
text.setPosition(0, 100);
text.autoSize = false;
text.width = text.fieldWidth = 84;
text.letterSpacing = -1;
text.multiLine = true;
text.text = "The quick brown fox jumps over the lazy dog, supercala-phragalist-icexpiala-docious";
add(text);

found by @chosencharacters

Geokureli avatar Apr 09 '22 17:04 Geokureli