I have an odd issue while using FlashCS4.
I have a textfield that, when set to
STATIC TEXT works absolutely fine, in
the correct font.
If I set it to DYNAMIC TEXT, the text
shows up as Arial or some other
default on systems where the selected
font isn't available. It shows up in
the proper font on systems that have
the font installed.
If I set it to EMBED CHARACTERS the
text doesn't show up at all on ANY
system, whether the font is installed
or not.
I have tried embedding the font using the [EMBED] tag in my accompanying AS3 code, and I have the font added to the Library in CS4 as well.
In CS4 I've tried selecting the font for the textfield as both the standard OS Font, as well as the one with the Asterisk next to it, but get the same results both ways.
The library font is set to "export for actionscript" and "on frame 1". The font contains no bold/italic/etc. data, and I'm not using any special styling (other than centering the text).
I don't think it's an issue with the font not being available, otherwise it wouldn't show up when it is set to Dynamic without any embedded characters. It's also strange that it wouldn't show up on the computer that has the font installed.
Help?
Did you click on "Character Embedding" and selected Uppercase, lowercase, numerals and punctuation.
I've found that his problem occours when only a set amount is selected. This should work without any other embedding code, and should not need any library.
Try having just the dynamic textfield on a new flash file and try that only, it should work.
A good way of seeing if they embedded properly is when you rotate the text field, as un-embedded will not show up.
Also try this: Under publish settings -> Flash tab, set Generate size report, and it will show you the fonts and the characters that have been embedded.
if they're showing up there, there's something else you're doing or not doing that's causing this
Turns out the particular font I was using was broken somehow. I started using a different version of the font downloaded from a different site, and everything worked normally. I could not detect any errors or corruption in the original font's download. :/
Related
My app needs to run on Android, iOS and WinPhone 8.1. It needs to have a page with a long text that include a lot of format:
bold
bullet list
link (http, mail, phone)
Because it has to run on all 3 platforms, I tried to create an HTML string in order to send it to a WebView like this :
MyWebView.Source = new HtmlWebViewSource {Html = stringHtml };
So I can use <b> for bolds, <ul> for bullet lists, <a> for links.
Because I need also a custom font and specific size, in my html string there is a new style with all these the informations.
It works.... but with 2 problems on Windows Phone:
all the bullet list font size are really smaller than the rest of text
all the pages show a blank webview, but if I reload it (a lot of times) or wait 3/4 seconds then it shows the content
Any idea about these problems?
And if there's another solution different from WebView... it's welcome!
Xamarin.Forms includes a FormattedText property in the Label (this guide should help you to understand it: Xamarin.Forms FormattedText). But there are some things you want to do that can't be done with it, and these are:
FormattedText doesn't have links, but if I'm not mistaken, if you use links in a WebView, they will only work within that WebView, so the link will be open in the same space as your text.
FormattedText doesn't have a bullet list. You can go around this problem adding the ASCII bullet character (in windows: Hold ALT and press the number 7) and some spaces to indent the paragraph.
The rest of what you want (bold, italic, color changes, etc.) FormattedText has.
Hope it helps! :)
I have a Flash CS6 AS3 project that up until yesterday was displaying text correctly. I have embedded the font Trajan Pro Bold with all of it's symbols and have text fields on my stage using that font.
One text field which has been there for a while is working correctly and changing text as it should. Other text fields are only displaying certain letters. This seems like an embedding problem but I have tried deleting the Font object in the library and recreating it to no avail.
Is there any sort of caching or anything I could clear that could possibly be the problem?
Fixed it. The problem was solved by going to Edit > Preferences > Publish Cache and turning off caching. This increased build time but I was able to turn it back on afterwards to fix the problem and reduce the build time back to normal
I am using dynamic text field to store score in it, I have embedded font that I am using and its only one.
But on run time while text changing one character at the left most becomes bogus/strange character, unable to figure out why its happening.
Finally I am using bitmap anti-alias for the dynamic field, it fixes the issue but text is not smooth.
If anyone had the same issue ?
You may have embedded the font, but have selected the correct character types to be embedded? i.e. if it's a score, then numerals needs to be selected like so:
(The dialog above may look slightly different in CS6, or may be somewhere else, I'm not sure; I don't use CS6)
Characters that are in the field when compiled will be embedded, and characters that aren't embedded won't render correctly.
Alternatively (instead of embedding), you can select "use device fonts" from the dropdown in the properties panel (if you have created the textfield from within Flash Pro rather than programatically), and that will fix it - literally just experienced this problem with an app I just completed and that was my fix.
If the above doesn't work, then I'm sure that it's something to do with the size of the textfield as mentioned above.
Use alternate fonts when prompted. Embed the fonts you chose, save and close your application and restart.
It solved my problem, its more likely that cs6 has this bug.
Changing CLASSIC TEXT to TLF TEXT solved the problem.
I have a build system output in the console. However it is showing color code instead of the actual colorized text.
[37;46;1mTest file: static/tests/casperjs/login/test.js
How can I apply a color theme to the console output?
Thanks!
Unfortunately sublime doesn't support this. I ended up writing a plugin that parses the output and converts it into a colored version (for a subset of colors, ones we use in our testing framework).
If you would like to look into that, or if anyone stumbles upon this in future here are some tips..
I detect output in the plugin with an on_modified event listener and a view
with no name (view.name()). This does not uniquely identify the output pane
so you'll have to do a bit more than that, I found no other easy way (unless
you want to hook into your build plugin and act directly on the view it generates).
To make the color changes, I remove the color codes (view.erase()) and add color to the
regions marked by those codes with view.add_regions(). The colors I add are
ones I manually insert into a custom theme, as again there seems to be no
other way. Also, for some reason it seems you can't add a color with the
exact background of the active theme (it inverts it or something), so I set
the color's backgrounds to something just different.
As you can tell, it's a hacky, ad hoc solution, otherwise I would release it on Github.
You can also check out SublimeREPL, it does console text coloring
I have two dynamic classic TextFields in a MovieClip, one with Arial Regular embedded and the other with Arial Bold, but the second TextField is not showing the bold text. It shows regular text. Here is how I am doing it:
a busy cat http://cubixshade.com/textz/sample.jpg
I change the text of two fields using
mc.txt1.text="changed text90";
mc.txt2.text="changed text90";
Both are shown in Arial Regular style.
When you are working with embeded fonts you need to know:
that when TextField hits the stage flash automaticaly dismisses all of the Font type properties on it to the basic one. in this case you have Arial Regular.
Embeding fonts means that you will be able to use them in the html based TextFields.
Make sure that when you are "embeding font" it is beeing exported for AS3. in other case the font will be available only if you had it attached to any textfield that is on stage.
in this case you should propertly embed font and change you code a bit:
txt1.text="changed text90";
txt2.htmlText="<b>changed text90</b>";
i noticed when working with fonts in flash that some font won't diplay correctelly even when i embedded them just try another font and everything gonna be alright
I found that depending on the font, the bold version isn't a different font-face. To get bold you only need to use tags around your html text that uses your regular font