[Oberon] Re (2): font-family for a source.

Jörg joerg.straube at iaeth.ch
Thu Aug 10 19:17:04 CEST 2017


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