Does the Show Web Preview command in Textmate 1.5.5 (Build 1372) have a problem displaying text sized in ems? For some reason, text set in a style sheet at 0.8 ems doesn't display at the same size as when the page is viewed in the latest versions of Safari, Firefox, Camino and OmniWeb.
On a possibly related note: does TextMate use Webkit for Web Preview and, if so, is it possible to have TextMate use a nightly WebKit build instead of the version Safari is based on?
I've searched the archives and couldn't locate any other discussions about this.
Brooks
On Apr 3, 2007, at 8:53 PM, Brooks Seymore wrote:
Does the Show Web Preview command in Textmate 1.5.5 (Build 1372) have a problem displaying text sized in ems? For some reason, text set in a style sheet at 0.8 ems doesn't display at the same size as when the page is viewed in the latest versions of Safari, Firefox, Camino and OmniWeb.
On a possibly related note: does TextMate use Webkit for Web Preview and, if so, is it possible to have TextMate use a nightly WebKit build instead of the version Safari is based on?
I've searched the archives and couldn't locate any other discussions about this.
Brooks
This has bothered me for some time now. thank for mentioning it. I think it has to do with the default properties set on the webkit view itself.
The standard default text size for all web browsers is 16px. Way back when, all mac web browsers chose to use something like 12px as the default instead. That problem was finally fixed in Mac OS X and every browser shipped in the last decade, except the web view in TextMate.
Allan, could you possibly reset the defaults to whatever the standard Safari settings are? This might require changing some of the html outputting commands that rely on the smaller default text size, but I think consistency is very important if we're going to enable designery features.
Thanks
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
On 4. Apr 2007, at 05:02, Thomas Aylott (subtleGradient) wrote:
Allan, could you possibly reset the defaults to whatever the standard Safari settings are?
Hmm… I guess now that majority of commands use the webpreview CSS it would be okay — but you guys really should not assume that all browsers use a 16px font as the base font, or whatever you assume ;)
On Apr 5, 2007, at 5:12 AM, Allan Odgaard wrote:
On 4. Apr 2007, at 05:02, Thomas Aylott (subtleGradient) wrote:
Allan, could you possibly reset the defaults to whatever the standard Safari settings are?
Hmm… I guess now that majority of commands use the webpreview CSS it would be okay — but you guys really should not assume that all browsers use a 16px font as the base font, or whatever you assume ;)
Actually, yes, you should. Anyone that has their size set different wants it that way and every site they visit should be bigger or smaller based on their chosen default size.
The only problem here is that TextMate doesn't choose the default setting, it's like using a browser where the user has adjusted the default to their preference.
Yes, all designs should work with different base font sizes, but for designing, it really helps to design to the defaults first.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors