HaxeFlixel / HaxeFlixel/flixel-ui

FlxUIInputText doesn't like to change fonts when in Windows mode

Open
#79 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
201
Forks
75
PR merge metrics
No merged PRs in 30d

Description

The following will crash when running in debug windows mode. It works ok in flash. It is only when I change the font that the problem occurs. I believe the font is ok as I use it elsewhere without problems

_resize_input = new FlxUIInputText(0,_screen_dimensions.height - 275, third_of_screen_width, "200", 50, FlxColor.BLACK, FlxColor.WHITE,true);
_resize_input.font = KdmStyles.BOLD_FONT;
add(_resize_input);

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash in Windows debug mode with the shown FlxUIInputText setup, especially the assignment to KdmStyles.BOLD_FONT. Trace FlxUIInputText font handling and compare it with the working Flash path. Done means changing the font no longer crashes in Windows debug mode while the existing Flash behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.