John C. Welch wrote:
On 1/29/10 10:25 AM, "TGC"<[email protected]> wrote:
What was originally being suggested is that the HTML *composer* not offer a
choice of font, so that whatever the recipient has set as his "default font"
is used, on the theory that what they have set as default is whatever they'd
most like to see. Thus, there's no possibility of mangling any sent messages.
You have to have some choice of font in the composer. What, if someone wants
to have most of it in Helvetica and a code snippet in Courier they have to
change the application preferences?
No, font selection certainly does not need to be present in the composer
to handle that, and many other use cases.
The following markup illustrates precisely how you can achieve the
effect you want, without having to have any font selection for the user.
---
<!DOCTYPE html>
<title>Message Subject</title>
<style>
/* Default stylesheet provided by the mail client. */
body { font: medium Arial, Helvetica, sans-serif; color: black;
background: white; }
</style>
<p>Hi there,<br>
Here's a code sample that I thought you should take a look at.</p>
<pre>#include <stdio.h>
int main(void) {
printf("Hello World!");
return 0;
}</pre>
<p>It really is <em>that simple!</em></p>
---
If you load that up into a web browser, you'll see that the paragraphs
are rendered in a sans-serif font and the code is rendered in monospace,
and it was all achieved *without* any user editable font families or sizes.
If a user wants that to be presented in a bigger font in the compose,
all they have to do is zoom, just like you can do in your browser.
Zooming does not change the font size specified in the stylesheet, just
the size that it's rendered at.
Also, the plain text alternative of that will look as simple as:
---
Hi there,
Here's a code sample that I thought you should take a look at.
#include <stdio.h>
int main(void) {
printf("Hello World!");
return 0;
}
It really is /that simple!/
---
Even in plain text, you can choose a font. You just only get one to use for
a given message. It is not even possible to suggest no font choice as an
option.
I'm really not sure what you're trying to say here. I don't know what
it means to "suggest no font choice".
Secondly...AGAIN...I choose a monospaced font because what I'm sending you
needs to line up, it's code, pick your poison.
There is no way that if you force it all to a proportional font that you
have picked that the message will not be mangled. This is unpossible.
That's why the mail client should make it easy to switch between
proportional and monospace fonts. It might be nice to make that the
default for some messages based on some parameter like, for example, the
folder, the sender or mailing list, or some other parameter. So users
who prefer proportional fonts for general emails, but monospace for
technical mailing lists can configure that for themselves.
--
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
_______________________________________________
[email protected] mailing list
List help: http://lists.ranchero.com/listinfo.cgi/email-init-ranchero.com