AS3: How to find source of embed fonts? - actionscript-3

I'm investigating huge legacy project, where many SWF assets are dynamically loaded. I guess designers used embedded fonts in Flash IDE. Now I'm making localization and my issue is that embedded Futura font doesn't have non-english symbols. I've added correct ttf font:
[Embed(source="../../../../../assets/fonts/FuturaBT-ExtraBlackCondensed.ttf", fontFamily="Futura Extra Black Condensed BT", mimeType="application/x-font", embedAsCFF="false")]
private const FONT_FUTURA_EXTRA_BLACK_CONDENSED:Class;
I've removed all places in main code with Font.registerFont()
It works, but when I check Font.enumerateFonts(false) to show all embedded fonts it shows some mess:
[trace] Fonts : embedded 21 / all 192
[trace] Arial / regular / embeddedCFF
[trace] Arial / bold / embedded
[trace] Arial / regular / embedded
[trace] Arial / regular / embedded
[trace] Arial Black / regular / embeddedCFF
[trace] Arial Bold / regular / embeddedCFF
[trace] Arial Bold / bold / embedded
[trace] DS-Digital / bold / embedded
[trace] Futura Extra Black Condensed BT / regular / embedded
[trace] Futura Extra Black Condensed BT / regular / embedded
[trace] ITCOfficinaSans LT Book / bold / embedded
[trace] ITCOfficinaSerif LT Book / bold / embedded
[trace] Myriad Pro / regular / embedded
[trace] Myriad Pro Bold / bold / embedded
[trace] Myriad Pro Bold Condensed / bold / embedded
[trace] Myriad Pro Light / bold / embedded
[trace] Myriad Pro Semibold / bold / embedded
[trace] Rockwell Extra Bold / regular / embedded
[trace] Times New Roman / regular / embeddedCFF
[trace] VAG Rounded BT / regular / embedded
[trace] VAG Rounded LT CYR Bold / bold / embedded
I'm worried that invalid Futura Extra Black Condensed BT is still there.
So I have 2 questions:
How to find source of those embed fonts?
Is there way to
remove or hide font after it was embedded somehow?

Related

How to use an emoji font on a website?

I've downloaded Google's "Noto Color Emoji" font, but can't get it to work. I have no problems with fonts like "Noto Sans Regular". But with the "Noto Color Emoji" font I get the following errors in Firefox (on Windows 10):
downloadable font: no supported glyph shapes table(s) present (font-family: "NotoColorEmoji" style:normal weight:normal stretch:normal src index:0)
downloadable font: rejected by sanitizer (font-family: "NotoColorEmoji" style:normal weight:normal stretch:normal src index:0)
It's also not working with Chrome, Internet Explorer and Edge on Windows 10 or Firefox on Ubuntu Linux.
This is my code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#font-face {
font-family: 'NotoColorEmoji';
src: url('NotoColorEmoji.ttf') format('truetype');
}
</style>
</head>
<body>
<span style="font-family: 'NotoColorEmoji'">Emojis: πŸ˜€πŸ˜¬πŸ˜πŸ˜‚πŸ˜ƒπŸ˜„πŸ˜…πŸ˜†πŸ˜‡πŸ˜‰πŸ˜ŠπŸ™‚</span>
</body>
What am I doing wrong? Are Emoji fonts used in a different way?
Color fonts are coming but you will need to either:
Implement all color formats in one font (4 in total!) -> I don't know if somebody did it but the font would be huge, and it looks really complicated and not recommended.
Make one font for each format and load it conditionally. -> Not recommended as some formats are bitmap based and not vectors & fonts can be huge (+20Mo).
Wait for the OpenType SVG format support on all platforms.
Do it in javascript like
Twemoji "A simple library that provides standard Unicode emoji
support across all platforms."
EmojiOne "EmojiOneβ„’ is the
open emoji standard."
The latest solution looks the best one for now for a web usage!
Color fonts are quite new with several competing standards which are still evolving and being implemented in common text libs (Opentype 1.8 has just been released with another color twist).
They are unlikely to work today except in the very latest preview browsers, and even then the level of support is likely to vary and depend on the underlying system, since browsers do use the system text libs (with various levels of overrides).
Older software will just not recognize the Opentype extensions added to make those fonts possible.
Lastly, Noto Color Emoji is pretty much a prototype, it is likely early versions are not quite conformant to what has been standardised later, and even if they are, the way the color font standards are used is still likely to evolve as font producers and font consumers gain maturity on the subject.
We are currently working on an open source Emoji library called OpenMoji.
At the moment, we got an .ttf font working which you can simply embed in your website
Download the font from here. πŸ’Ύ
Embed the font with:
#font-face {
font-family: 'OpenMoji';
src: URL('OpenMoji-Color.SVG.ttf') format('truetype');
}
Enjoy! πŸ₯³ If there's any question, please let us know.
Β 
Note: Currently supports Firefox and Illustrator.
I use font-family:'Segoe UI Emoji'
Works on Chrome, Firefox, IE11, Mac Safari, and mobile Safari.
Mostly all emojis work, including ones that don't have any colors on normal fonts, such as the mountain, speech bubble, paintbrush.
Does not work on Android :(

Google font Rendering issue with ie7 and 8

I am using Open Sans and Open Sans Light font in my site.
And below is the googleapis font link which I am rendering from google fonts.
I want to use Open Sans Light and Open Sans font in some of the text.
If i choose open sans 300,400,600.
and use font name in the class and add font-weight:300 for light and 400 for regular
it doesn't work for ie7 and 8. It shows the big font on ie 7.
but by using font-weight related to the font styling works fine for other browsers.
Need help to fix this for ie7 and 8.
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'>
With Google fonts you won't be able to solve this problem.
The problem is that IE7/8 understands only
font-weight:700 which it interprets as equivalent of font-weight:bold
and
font-weight:400 which it interprets as equivalent of font-weight:normal.
A solution to this is to serve a separate font file to IE7/8 which contains the desired font face weight - google fonts foes not offer this kind of fallback - but it is very nicely solved with Typekit, which than let's you use this kind of crossbrowser font face rule:
font-family: "proxima-nova-n6", "proxima-nova", sans-serif;
font-weight: 600;
The first declaration - "proxima-nova-n6" - provides a fallback for IE7/8 for a weight of 600.
If you want to solve this without paying for a service, you will have to create separate font files containing different font width - upload them to fontsquirell and generate the complete set of formats needed to cover all the browsers. Take care with licenses - not all font's are free to embed on web.

Can (Chrome's) HTML5 canvas display Adobe Typekit fonts?

I have a canvas that will display Verdana correctly, as long as I don't specify bold (in which case it defaults to Times. I would like to use Typekit fonts on the canvas, but it doesn't seem to be registering: I have weights of 400 and 700 loaded, e.g. by 'normal 12px "proxima-nova"', but so far it seems to always default to Times.
How can I get an HTML5 canvas, at least in Chrome, to correctly display Typekit fonts? I want normal and bold weight to be available; do I need weights of 500 and 900, or should it be doing something on 400 and 700?
TIA,

Wingdings font family does not seem to work on Firefox and Opera

I was using the Wingdings font in the CSS for some symbols like a pencil and a home icon.
It worked on IE, Chrome and Safari but not in Firefox and Opera. I googled it but did not find any better solution.
Why doesn't it work in Firefox? I do need to use those icons, is there any way to use Wingdings in Firefox?
Mozilla and Opera are standard-compiliant.
Wingdings is not standard (what a surprise coming from Microsoft) because not mapped to Unicode, and so should never be used on a website.
However, do not despair, most symbols are available in Unicode : check http://www.alanwood.net/demos/wingdings.html
Important addendum (october 2014) : As of Unicode v7, released on June 16, 2014, all characters from Webdings and Wingdings have been added to Unicode. See the comment below.
You could use unicode characters such as
✎
http://www.fileformat.info/info/unicode/char/270e/index.htm
The Wingdings characters can be accessed in a Unicode-compliant manner, via the "Private Use Area" (codepoints U+E000 to U+F7FF). These character codes are reserved for any font-specific symbols not part of the regular Unicode character set, and indeed Wingdingds maps all of its symbols to the subrange U+F021 to U+F0FF.
For instance, the triangular flag, which is mapped to P = 0x50 in legacy encoding, can be accessed via U+F050 =  = &#xF050; (HTML) = \F050 (CSS).
I'm not sure about other browsers, but it does work in Firefox 12.
To quote a website:
There was an endless debate between the people that said Mozilla should support the symbol font in its default configuration because that is a valuable ability and standards lawyers who said no, because they believe that support violates the HTML standard. So far, the obstructionists have prevailed.
http://hutchinson.belmont.ma.us/tth/Wfonts.html
#font-face {
font-family: "Your typeface";
src: url("type/filename.eot");
src: local("☺"),
url("type/filename.woff") format("woff"),
url("type/filename.otf") format("opentype"),
url("type/filename.svg#filename") format("svg");
}
more here
http://nicewebtype.com/notes/2009/10/30/how-to-use-css-font-face/
simple solution in your HTML
<style type="text/css">
#font-face {
font-family: "Ace Crikey";
src: url(ace.ttf);
}
.ace {
font-family: "Ace Crikey";
font-size: 230%;
}
</style>
You can use Gimp or other graphic-software and make some GIFs of the needed icons from the Wingdings font.

Text presentation on Mac and PC

Can someone help me out on this one. I have a website which was developed on a Mac. When viewing certain text in "verdana" on the Mac all looks great, but on the PC the text is very fine and thin on all browsers. Other text with bold and larger size seems to present the same on both PC and Mac. Is there a simple way I can improve the browsers text representation on the PC.
The two operating systems have different text rendering algorithms. The contrast is most drastic on thin letters, where Windows mangles the letterforms slightly but makes them look very crisp, while the Mac causes thin text to look smudged but preserves the shape better. This is not in your control as a Web developer.
Rendering always depends on system. Like on windows, if the user has setup clear type fonts, he will be having a much better experience.
Some useful information
that may help take decision on improving font families for different systems
Common fonts on all systems
Some good information on various fonts that work on different systems and are best rendered at certain sizes.
-
codestyle.org determined best fonts via survey.
See that verdana comes out lower in both case.
For Windows:
Tahoma – 99.81%
Microsoft Sans Serif – 99.71%
Courier New – 99.66%
Verdana – 99.66%
Times New Roman – 99.37%
Arial – 99.32%
Trebuchet MS – 99.27%
Comic Sans MS – 99.13%
Lucida Console – 99.13%
Georgia – 98.94%
Impact – 98.89%
Lucida Sans Unicode – 98.65%
Palatino Linotype – 98.65%
Arial Black – 98.55%
Franklin Gothic Medium 97.96%
For Mac:
Helvetica – 100%
Lucida Grande – 100%
Geneva – 99.43%
Monaco – 99.43%
Courier – 98.85%
Times – 97.70%
Arial – 97.41%
Verdana – 97.41%
Georgia – 95.11%
Helvetica Neue – 95.11%
Trebuchet MS – 94.54%
Times New Roman – 94.25%