Page 1 of 1
fonts
Posted: Fri Jun 09, 2006 4:26 pm
by duk
i guys,
how can i force a user to see a text with a font that he dont have, but im using in my website... ??
thanks in advance
Posted: Fri Jun 09, 2006 4:28 pm
by RobertGonzalez
I think you can install it one your server.
EDIT | Nevermind. That is for using fonts as images. I don't think you can force a broswer to render a font it can't find on the users machine. I could be wrong.
Posted: Fri Jun 09, 2006 4:38 pm
by feyd
Posted: Fri Jun 09, 2006 5:09 pm
by RobertGonzalez
The W3 Spec wrote:A visual user agent must address the following issues before actually rendering a character:
- Is there, directly or by inheritance, a font specified for this character?
- Does the user agent have this font available?
- If so, what glyph(s) does this character or sequence of characters map to?
- If not, what should be done? Should a different font be substituted? Can the font be synthesized? Can it be retrieved from the Web?
In both CSS1 and CSS2, authors specify font characteristics via a series of font properties.
How the user agent handles these properties, when there is no matching font on the client has expanded between CSS1 and CSS2. In CSS1, all fonts were assumed to be present on the client system and were identified solely by name. Alternate fonts could be specified through the properties, but beyond that, user agents had no way to propose other fonts to the user (even stylistically similar fonts that the user agent had available) other than generic default fonts.
CSS2 changes all that, and allows much greater liberty for:
- style sheet authors, to describe the fonts they want to be used
- user agents, in selecting a font when an author's requested font is not immediately available.
CSS2 improves client-side font matching, enables font synthesis and progressive rendering, and enables fonts to be downloaded over the Web. These enhanced capabilities are referred to as 'WebFonts'
In the CSS2 font model, as in CSS1, each user agent has a "font database" at its disposition. CSS1 referred to this database but gave no details about what was in it. CSS2 defines the information in that database and allows style sheet authors to contribute to it. When asked to display a character with a particular font, the user agent first identifies the font in the database that "best fits" the specified font (according to the font matching algorithm) Once it has identified a font, it retrieves the font data locally or from the Web, and may display the character using those glyphs.
Posted: Fri Jun 09, 2006 7:12 pm
by Christopher
I tried @font-face a year or two ago and just could not get it to work consistently across browsers at the time. Could have been me. Has anyone used it recently and had good results?