HeapsIO / heaps

Heaps : Haxe Game Framework

Home Page:http://heaps.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selected text has incorrect background colour when an SDF font is used

nixbody opened this issue · comments

There seems to be some problem with SignedDistanceField shader which causes selected text to have the same background colour as is set as text colour. That makes the selected text ureadable because it just blends with the background. Setting TextInput.selectionTile manually has no effect with SDF fonts.

This only seems to happen when I call hxd.res.BitmapFont.toSdfFont() with h2d.Font.SDFChannel.Alpha (which is needed for SDF fonts generated by Hiero).