Skip to main content
September 29, 2009
Question

Possible to specify font-name on ContextMenuItem?

  • September 29, 2009
  • 1 reply
  • 758 views

Is there a way to specify the (Unicode) font used for custom ContextMenuItems on a ContextMenu assigned to a TextInput control, in either a browser or desktop Flex application, if your application needs to render codepoints but the default font lacks the glyphs or has the incorrect glyph mapped to the codepoint?

This topic has been closed for replies.

1 reply

Adobe Employee
September 29, 2009

No, there is no way to specify that font from ActionScript.

What platform are you seeing this issue on?  I'm guessing it's Windows.

Could you please post an example of the codepoints you're having trouble with?  If I can reproduce this here I can get a bug filed and we can fix this in a future player.

Jeff Mott

Flash Player

September 29, 2009

Thanks for  the reply.

Yes, Windows it is.

Haven't done any thorough testing, but the incorrectly rendered codepoint I ran into was Latin L with stroke, upper and lower case, u0141 and u0142.  They're being rendered simply as upper and lower case L on the context menu. There could be others.  I'll report back if I encounter any.


Adobe Employee
December 21, 2009

I can't reproduce the problem.  I'm on Windows XP.  Tried with standalone, external, IE, and Firefox. This code worked fine:

var tf:TextField = new TextField();
tf.border = true;
addChild(tf);
tf.text = "Fancy L: \u0141";
var cm:ContextMenu = new ContextMenu();
tf.contextMenu = cm;
var cmi:ContextMenuItem = new ContextMenuItem("Fancy L: \u0141");
cm.customItems.push(cmi);