I just got a bit paranoid that fonts were not embedded in a Flash project properly. (for a exe / projector going into a CDROM)
How to test for this when I don't know what the users computer will have installed and what it defaults to? How do I see this result if I have the font installed?
DER moment, just drag that font your dynamic text field is using out of your (on a mac) System > Library > fonts folder and anywhere else it is installed. (search for the font name in spotlight). Drag the font file onto your desktop or something and your computer will think that the font isn't installed. Then test your projector (built before 'uninstalling' the font of course), and low and behold, if you havn't got your fonts embedded in your projector, you will see the default font, which is Times. This will very clearly show you if your fonts are embedded in every dynamic text box instance in your project. (you need to click the properties panel 'embed button' for every text field on stage, or do it via actionscript and adding the font to the library. If you don't see Times font with your font 'unistalled', then your fonts are embedded properly, to test try on one dynamic text field clicking the 'embed' button and clicking 'unembed', then publishing your projector.
If you don't drag the font out of your system fonts folder to test this and your fonts are not embedded properly in the flash projector, the dynamic text field will use the intended system font if its available to render the text, which actually looks very similar, but different (heavier) to what the font looks like when its embedded properly in the flash file. Without an eagle eye you might not notice this. But your end user certainly will if they don't have that font and see the dreaded Times instead! If your using a dynamic text field in Flash, embedding the font of choice is essential (unless you need a really small file size for the web delivery and don't care about font consistency).
A really helpful resource to learn about text in Flash is called "Foundation Flash CS3 for Designers" By Tom Green and David Stiller and Friends of ED. Chapter 6 "Text in Flash CS3" explains almost everything you need to know about fonts, embedding, aliasing etc.
@Tor, Aaron Bassett
Setting a background for an html tag (thus, forcing the browser to calculate the width and height of the html element) will cause the body tag to be rendered as div and *not* fill the browser window’s full height (only as far as the content goes).
In such cases height/min-height properties should be set additionally.
@Colin
display:table works here because the body is not *shown* as table, but *rendered* as table, i.e. the minimal box width is calculated. No side effect on seo/semantics
@Cédric
Notes for IE6
1. setting expression like property for body’s min-width will fix this issue.
2. In some cases the width of the image needs to be wider than the container’s width.
For example:
* html body {width: expression(document.documentElement.clientWidth < style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">}
Please note that such css selector is not valid so it should be placed in a separate CSS file and linked using conditional comments. 904px is a value for webdesignerwall.com site’s min-width.
Great. This tutorial would have helped much when I tried to put a fixedbackground on my site. http://la-cajita.es/blog/
If anybody is willing to try it, the CSS would look like this:
body {
background: fixed url(’./images/lacajita.jpg’) no-repeat center;
color: #333333;
}
This way, with “fixed” and without “top”, it stays completely centered, even when you’re seeing just a little part of the website through a small browser window.
I would be more careful with huge backgrounds in terms of using website for different browsers - and I’m not talking about chrome/safari issue. Major problem is still pixel rounding which is different in different browsers.
E.g. FF3 will put offset 1px to the left, while IE7 will do it other way plus 1px more. Issue is appearing mainly when ‘center’ is in use.
Personally I found the way doing backgrounds in separate divs (one below body) with ‘top left’ or ‘top right’ (image is still fixed with pixel size, so shouldn’t be any problems with it). That way makes it safer for cross-browssing & saving your time to make fixes in IE.
I hope pixel rounding will be unified one day in all of the browsers (knowing market actually, proofs me wrong).