Skip to main content
Inspiring
July 8, 2008
Question

Displaying Greater Than or Equal To

  • July 8, 2008
  • 16 replies
  • 1917 views
I typed out a fairly lengthy description of what I was trying to do, but for some reason the forum complained that I had improper words in my description and then ate my description. So anybody know how to do this?
This topic has been closed for replies.

16 replies

kglad
Community Expert
Community Expert
July 9, 2008
if you're using a cdata section you can use the left and right angle brackets and equal signs. you don't need to encode them. and again, i don't see a problem with any font (that includes those symbols). in particular, i see no problem with arial narrow.
RothrockAuthor
Inspiring
July 9, 2008
Thanks David. I've pretty much decided it isn't worth it. If the client is upset that the greater than or equal to symbol doesn't look right we will just spell it out in words!

As for the embedding, really? I know I've done it with embedded library fonts, but it seems that if you just embed using the panel then it doesn't work. At least not for me in this case. In the example I gave above, using just the fields as created on the stage and the code I listed, as soon as I embedded the font (using the panel) the first text box showed nothing -- not the words, not the symbols, nothing. There is nothing in that code to suggest that I'm changing the styling or anything.

As for the symbols showing up, they are showing up, but not in the right way. For example even here in my post (using the web browser) this line:

field2.text="≥ > Hello world.";

doesn't look right. The gte is much larger and far too sharply angled when compared to the gt. I'm guessing in your reader it looks fine. It really is something that only someone who really gets into fonts would probably notice. Although the discrepencies I see in my file are even more jarring. I wish it was easy to post an image here and I could really show all y'all what I'm seeing.

Anyway thanks.

The font I am using is Arrial Narrow and it does contain the character, but from the unicode number (and the lack of a windows alt-sequence) I'm guessing it is "way up there" and not something that Flash is understanding.

Inspiring
July 9, 2008
Rothrock,

> The first time around they look the same, but if I embed the font
> form field 2, they look different. (Evidently you can't embed fonts
> for htmlText?)

You can indeed embed fonts for HTML formatting. The only tricky part
(at least, that I've seen) is that you need to also embed font variants
(bold and italic, for example) if you plan to use embedded outlines and use
tags like <b> and <i>.

I'm not seeing the issues you're seeing, but maybe it's dependent on the
typeface in use? Not all typfaces include all characters. Just playing
around here, I'm using silly fonts like Broadway, Blackadder, and I'm seeing
the characters you're after just fine, using the &lt; and &gt; entities.

> So is there anyway to use <img> to just have a graphic appear in the
> middle of a sentence or any other place you might want?

That, alas! doesn't appear to be possible. The linebreak is built-in --
in all the tests I've ever tried -- so while there may be some wacked-out
way to play with registration points ... I don't think it's possible.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


RothrockAuthor
Inspiring
July 9, 2008
Flash doesn't seem to recognize &le; or &ge; The problem isn't that I can't get the character to show it is that Flash is substituting a device font version that is ugly.

Both &#8805; and \u2265 display as a version of greater than or equal to, but if you put it right next to greater than, they don't look good together.

Okay I've finally had enough time away from this to try some sensible tests of my own. I made two dynamic text fields on the stage. One is html enabled and one is not. I then paste this code into the frame.

field1.html=true;
field1.htmlText="&#8805; \u2265 &gt; Hello world.";
field2.text="≥ > Hello world.";

The first time around they look the same, but if I embed the font form field 2, they look different. (Evidently you can't embed fonts for htmlText?)

I couldn't find which range contains ≥ so I just added it as a special character in the embed dialog.

So the XML is a red-herring, so to speak, the problem has nothing to do with the XML.

So my other question was about using <img> tags for inline graphics. I though maybe I could just use a little png of the symbol. And sure enough I was able to load the png, but it always just went over to the left side of the text field. I tried using the align attribute, but Flash didn't seem to parse that.

So is there anyway to use <img> to just have a graphic appear in the middle of a sentence or any other place you might want?

Inspiring
July 9, 2008
Use NNTP, my brotha. ;)


David
stiller@quip.net

P.S., like beech, I'm still cracking up over the good doctor's question.


RothrockAuthor
Inspiring
July 8, 2008
Even those look a bit strange here, but the Arial Narrow ones in Flash are much to tall and angular for the surrounding font.
RothrockAuthor
Inspiring
July 8, 2008
Even those look a bit strange here, but the Arial Narrow ones in Flash are much to tall and angular for the surrounding font.
kglad
Community Expert
Community Expert
July 9, 2008
i don't see a problem using arial narrow and displaying gte.
clbeech
Inspiring
July 9, 2008
my bad RR - how about: &le; -&ge;

course i see what your getting at though - maybe a symbol font sub?
RothrockAuthor
Inspiring
July 8, 2008
kglad -- I spent about two hours trying to get the problem worked out and about 15 more to type up my questions -- only to have the forum object to some mysterious word and delete my unposted opus! So I went a little crazy...

clbeech -- that is less than and greater than. I need greater than or equal to and less than or equal to:

>=
<=

But in the fancy way ≥ and ≤.
clbeech
Inspiring
July 8, 2008
lmao kg!!! :D

RR - isn't it: &lt; - &gt;
kglad
Community Expert
Community Expert
July 8, 2008
you're having quite a conversation with yourself. are you giving yourself good advice?