[Oberon] Re (2): font-family for a source.
Jörg
joerg.straube at iaeth.ch
Thu Aug 10 19:41:19 CEST 2017
Hi
In web design you have to take care on the environment the browser runs in.
This is in contrast to PDF where you can choosing all fonts YOU have on YOUR
machine.
Choosing explicit font names in web design is a little dangerous as not all
operating systems offer all fonts. Although there are so called "web-safe"
fonts that can be used on almost all modern computers (95%+) you should try
to catch the fonts of the most common OSes first.
A good starting point (but purely subjective) is
font-family { "Segoe UI", "Liberation Sans", Helvetica, Arial, sans-serif;
}
or
font-family { Constantia, "Liberation Serif", Georgia, "Times New Roman",
serif; }
Or just use the fall backs ("serif", "sans-serif") and let the user decide
what he wants to see.
br
Jörg
-----Original Message-----
From: Jörg [mailto:joerg.straube at iaeth.ch]
Sent: Donnerstag, 10. August 2017 19:17
To: 'ETH Oberon and related systems' <oberon at lists.inf.ethz.ch>
Subject: RE: [Oberon] Re (2): font-family for a source.
Hi
If you just write "font-family: sans-serif;" the browser does the following
- On Windows this will take "Arial"
- On OSX/iOS it will take "Helvetica"
- On Android it will take "Droid Sans" or "Roboto" (depending on version)
(unless you changed the default font for sans-serif)
The font-family is a list of font names, the browser tries to load in
sequence. If you put "Helvetica" in front it will first search for
"Helvetica" before falling back to the browser default for "sans-serif".
As you can change the browser default font for sans-serif, you might wish to
use all alternatives before fall back.
If you write "font-family: Helvetica, Arial, sans-serif" the browser uses
"Arial" on a Windows system even if the user changed the default for
sans-serif to "Calibri".
Jörg
-----Original Message-----
From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
peter at easthope.ca
Sent: Donnerstag, 10. August 2017 17:12
To: oberon at lists.inf.ethz.ch
Subject: [Oberon] Re (2): font-family for a source.
From: Chris Burrows <chris at cfbsoftware.com>
Date: Thu, 10 Aug 2017 07:20:19 +0930
> ... the code examples are Arial
From: Hans Klaver <hklaver at dds.nl>
Date: Thu, 10 Aug 2017 01:58:37 +0200
> The Oberon programming source texts in Reiser's book are set in the =
> sans-serif font Helvetica Light, and in M=C3=B6ssenb=C3=B6ck's book in =
> Helvetica.
> ...
> I would suggest: "font-family: Helvetica, sans-serif"
Done.
https://en.wikibooks.org/wiki/Oberon/Oberon.MediaWiki.Mod
Thanks, ... Lyall E.
--
123456789 123456789 123456789 123456789 123456789 123456789 123456789
Tel: +1 360 639 0202 Pender Is.: +1 250 629 3757
http://easthope.ca/Peter.html Bcc: peter at easthope. ca
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list