Re: SVG font size difference between Firefox and Adobe SVGviewer
Rick <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jan 16, 2009 at 11:05 AM, Boris Zbarsky <[email protected]> wrote: > Malibu Man wrote: >> >> <svg xmlns="http://www.w3.org/2000/svg" xmlns:v="http:// >> schemas.microsoft.com/visio/2003/SVGExtensions/" >> >> .st4 {fill:#000000;font-family:Arial;font-size:0.666664em} > > This is setting the font-size relative to the default font the user has > selected (to be 0.666664 times as big as the default font). I assume the > default fonts in the two UAs are also different, right? This reflects a problem that occurs with html dialogs. I work in an industry that requires high resolution screes, so my default font sizes are large. Making a lot of dialogs break. The solution is to use the same reference scale for dialog geometry as you use for fonts. If you describe your fonts in em squares, describe your dialog geometry in em squares. If you want explicit control, use px for both. The best solution for the client is to use em for both effectively honouring their font resolution choice, but you give up control of your geometry. this shouldn't be a problem in html, if you respect the premise that the browser flows the document instead of forcing it as many authoring tools do. SVG has no flow by design, being a geometry grammar, so you would have to code for it. > > -Boris > _______________________________________________ > dev-tech-svg mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-svg > -- Cheers! Rick