26 Commits

Author SHA1 Message Date
Ben Harris
b62b0454b5 webstead: add Emscripten and musl copyright notices
Programs compiled with Emscripten end up statically linked against the
Emscripten runtime, which includes musl libc.  So we need to comply with
their licences by including a copy of the licence and the relevant
copyright notices.  I think putting them on the webstead page in small
print is probably the best approach.

This might need updating each release to match the version of Emscripten
that I build the editor with.
2026-01-13 21:42:18 +00:00
Ben Harris
fd06786a45 Add SPDX-License-Identifier to CSS files 2025-01-08 23:35:43 +00:00
Ben Harris
0cd03defca CSS: switch to monospace
Safari badly misdisplays Bedstead in proportional mode.  This is
caused by a bug in WebKit, and I haven't found an acceptable
workaround.  Thus, I think the best thing to do is to turn off
proportional spacing on the Web page entirely.  I think it looks nice,
but even I'll admit that it's a little too tight, and I know others
prefer the monospaced version.

Also, I can't think of a way that a real chip anything like the
SAA5050 could produce proportionally-spaced text.  It's fundamentally
based on getting fed character data at a constant 1 MHz.  There's no
way it can ask for a character early because the previous one was
narrow.
2024-10-04 00:30:30 +01:00
Ben Harris
d23a7c9b5c CSS: use "background" shorthand property
It's more compact and works just as well.  In fact, I think it might
work better on browsers that support background-image but not
background-size.  On such browsers the entire rule will be ignored,
which is what I want.  If the background image can't appear at
precisely the correct size, it shouldn't appear at all.

Of course, ideally on a browser that fails to display the background,
the title also wouldn't fade out to the left.  I wonder if there's a
sensible way to achieve that.
2024-10-04 00:06:49 +01:00
Ben Harris
dbf936f949 Convert the fading <div> in the Web page back to a <span>
HTML doesn't allow <div> inside <h1>.  I found before that using a
<span> caused the background not to work.  That seems to be down to CSS2
section 10.6.1, describing inline, non-replaced elements: "The height of
the content area should be based on the font, but this specification
does not specify how."

Happily, we can just define this particular <span> to be a block
element, so that it behaves like a <div> even though it's a <span>.
That works fine, and because we're only using it to get a well-defined
content area it doesn't matter if it's ineffective when the stylesheet
is missing.
2024-09-27 19:07:50 +01:00
Ben Harris
c837049c42 Update Web page for Unicode 16.0 separated graphics 2024-09-22 11:15:35 +01:00
Ben Harris
1475a00b27 Slightly darken <code> etc
That makes their different word spacing look a little less confusing.
2022-02-26 23:40:37 +00:00
Ben Harris
dfc5e415f4 New title for Web page and some other tweaks
The new title is a fade from a (manipulated) photo of the word
"Bedstead" displayed by my Beeb on a CRT monitor into the title text in
Bedstead Extended.  The other visible tweak is to increase the left
margin so that the headings have some clearance from the left edge of
the window.  At the same time, I've set the other margins explicitly to
the 8px that Firefox and Chromium use by default.
2022-02-26 23:17:59 +00:00
Ben Harris
413736787c Set a maximum width on the body of the Web page
This stops the lines of text becoming excessively long.
2021-10-10 20:41:03 +01:00
Ben Harris
31a06494cc Moderate tidyings-up of the Web page
It's not nice, but it's not horrifying any more either.
2020-03-29 16:10:36 +01:00
Ben Harris
41b698b29e First attempt at translating sample images into HTML
On browsers that support Web fonts, it seems silly to still be using 
images for displaying font samples.  So I've tried to translate the 
samples into HTML.  The result is a bit of a mess, but it roughly works.  
The images are still there, and the stylesheet tries to arrange that 
they get used where appropriate, and that speech synthesizers don't try 
to read the samples.
2020-03-29 12:21:50 +01:00
Ben Harris
b4a95ce0e3 Add a sample of separated graphics to the Web page 2020-03-29 00:33:48 +00:00
Ben Harris
885cfc5560 Switch to using text for the Web page title
A typical Web browser support Web Fonts these days, so there's no need 
to use an image for the purpose.  The other images remain for now since 
they're not really representing text.
2020-03-22 12:59:51 +00:00
Ben Harris
f5d0ac6a9a Add a gratuitous example of mosaic graphics to the Web page 2020-03-22 12:42:04 +00:00
Ben Harris
6e1e1462dd Web site colours: swap :link and :visited.
It's conventional for :visited to be the darker shade.
2019-02-02 19:39:39 +00:00
Ben Harris
013f0fab52 Adjust Web page colours to better match my actual monitor. 2019-02-02 19:20:11 +00:00
Ben Harris
0b66884f7f Reduce horizontal scrolling in Web page.
Playing with Firefox's "Responsive Design Mode" made it clear to me
that Bedstead's Web page was not very mobile-friendly, especially in
the way that the title runs off the end of a reasonable-sized vertical
screen.  A simple CSS rule requests downscaling of images to the width
of the screen, which helps a lot.
2019-01-31 00:38:00 +00:00
Ben Harris
75bd5aa376 Switch Bedstead Web page to dark-on-light.
I recently saw Bedstead featured on a collection of programming fonts
and noticed that it was much prettier there than on its own Web page.
That's clearly wrong, and I think displaying it in a light colour on a
dark background (and with less than maximum contrast) helped.  The new
colours are based on my memory of the old Philips green-screen monitor
currently connected to my Beeb (because I'm too lazy to get out of bed
and check it).
2019-01-31 00:32:21 +00:00
Ben Harris
b3b9184bed Extract @font-face rules into their own CSS file.
This seems sensible, since the @font-face rules should be grneric to all 
uses of Bedstead in CSS.
2018-04-22 19:59:24 +01:00
Ben Harris
0c31e0ef86 Set list-style-type in CSS.
It was obviously wrong that the <ul> on the Bedstead Web page had 
circular bullets.  The current CSS Lists and Counters working draft, 
<http://www.w3.org/TR/2014/WD-css-lists-3-20140320/>, allows for setting 
the bullet to a string, and Firefox 54 supports this, so use it in the 
CSS for Bedstead's Web page.
2017-07-15 23:25:36 +01:00
Ben Harris
6062313421 Comprehensive rework of widths. Now there are six.
The names of the widths now track those in the OpenType 'OS/2' table, so 
the former condensed and semicondensed are now ultra-condensed and 
extra-condensed, and there are new condensed and semi-condensed widths 
to fill the gaps.  Also, the fonts are named more consistently with 
Adobe's practice: "Bedstead Semi Condensed" and so forth.

The new Bedstead Condensed makes a pretty decent terminal font, which is 
a nice side-effect.
2017-07-15 23:22:14 +01:00
Ben Harris
97721e5362 Slightly nicer web page typography. 2017-07-02 18:36:54 +01:00
Ben Harris
1c39b2bbd1 CSS: Add font-synthesis: none.
Otherwise, Firefox synthesises Bedstead Bold when I use <h2>.
2017-06-25 20:59:33 +01:00
Ben Harris
7f184003e7 CSS: use "normal" rather than explicitly disabling "palt".
This makes it clearer that the whole of font-feature-settings is
overridden.
2016-11-07 01:41:36 +00:00
Ben Harris
bb3d8b7cbe Put the whole Web page into Bedstead.
With "palt" enabled, it looks fairly good.
2016-11-06 21:53:57 +00:00
Ben Harris
f7e9ba52b3 Web page: use Bedstead for <code> etc if possible. 2016-11-06 00:41:29 +00:00