You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected targets: flash, and (possibly) all others
Code snippet reproducing the issue:
package;
importflixel.FlxG;
importflixel.FlxState;
importflixel.text.FlxBitmapText;
classPlayStateextendsFlxState
{
overridepublicfunctioncreate():Void {
varbitmapText=newFlxBitmapText();
vardesiredLineSpacing=-5;
bitmapText.lineSpacing=desiredLineSpacing;
if (bitmapText.lineSpacing!=desiredLineSpacing) {
FlxG.log.error("FlxBitmapText.lineSpacing is not desired value.");
}
}
}
Observed behavior:
The lineSpacing property becomes a positive value, specifically the absolute value.
Expected behavior:
The lineSpacing property allows a negative value to be set.
NOTE: Near as I can tell, the text layout code in FlxBitmapText is already written properly to support a negative value for lineSpacing which would result in condensed spacing. The issue, then, lies within the property setter enforcing a positive-only value.
The text was updated successfully, but these errors were encountered:
Code snippet reproducing the issue:
Observed behavior:
The
lineSpacing
property becomes a positive value, specifically the absolute value.Expected behavior:
The
lineSpacing
property allows a negative value to be set.NOTE: Near as I can tell, the text layout code in
FlxBitmapText
is already written properly to support a negative value forlineSpacing
which would result in condensed spacing. The issue, then, lies within the property setter enforcing a positive-only value.The text was updated successfully, but these errors were encountered: