918 Commits

Author SHA1 Message Date
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
54d595b850 Make the 'aalt' lookup work properly
Emitting a separate "AlternateSubs2" line for each target doesn't work
properly, so we make a second pass over the alternates for the current
glyph, constructing a single "AlternateSubs2" line afer doing all the
"Substitution2"s.
2020-03-28 22:47:57 +00:00
Ben Harris
b779a48d68 Rationalise mosaic graphics implementation
The "separated graphics" flag is now in the "flags" field, rather than
in the character data, and the bits specifying which cells are painted
are now contiguous.  Also the MOS flag is now called MOS6, to go with
MOS4.  This makes the specification of the ZVBI code points more
complex, but cleans up the Unicode ones, which I think is appropriate.

On the way, I found that 'palt' was being applied to 4-cell mosaic
graphics and fixed that.
2020-03-28 22:13:41 +00:00
Ben Harris
eb3418be04 Add support for separated 4-cell mosaic graphics
The shapes of the 4-cell mosaic graphics are based on an alternative
history in which Teletext adopted 4-cell graphics.  It's obviously
reasonable that such a world would still have separated graphics, so
let's have them.

This makes me thing that the method I've used for flagging separated
graphics is silly, but that's a story for another commit.
2020-03-28 21:35:01 +00:00
Ben Harris
7e8a47cfc5 Implement separated graphics as feature 'ss16'
While Unicode 13 added code points for 6-cell mosaic graphics, it
didn't specify any way to select separated vs contiguous graphics.
This differs fron ZVBI, which used differect code points for separated
and contiguous glyphs.  This means that separated graphics must be a
matter of style, which is consistent with the way that they're
selected by a control character in Teletext.

In OpenType, implement this as a stylistic set, 'ss16', that replaces
the contiguous glyphs with their separated counterparts.  I'm
reserving 'ss14' for the 4-cell equivalent.
2020-03-28 21:03:37 +00:00
Ben Harris
4821654490 Put Latin small caps at their proper Unicode code points
There are Unicode code points for most Latin small capital letters, so 
we may as well make our existing designs for them available under those 
code points.  The glyphs generated by the 'smcp' and 'c2sc' lookups are 
now aliases for the canonical Unicode versions.
2020-03-28 20:15:04 +00:00
Ben Harris
d5c6f9ec42 Use aliases to connect small cap glyphs to their Unicode equivalents 2020-03-28 17:36:20 +00:00
Ben Harris
7216af9189 Remove a stray space 2020-03-28 17:00:41 +00:00
Ben Harris
0264e16018 Make the 'c2sc' feature work like others
Now that we can have aliases, we can arrange that 'smcp' applied to
"a", and 'c2sc' applied to "A" give differently-named glyphs that have
the same appearance.  This means that something attempting to generate
Unicode from PostScript will be able to properly distinguish them.  It
also means that the SC flag can be removed and we can stop making
assumptions about case-mapping of glyph names.
2020-03-28 17:00:14 +00:00
Ben Harris
1dc4e2da16 Add a mechanism for making aliases of glyphs
This is done by making the new glyph contain only a reference to the
old one.  While it's possible to have multiple Unicode code points
reference the same glyph, that's rarely what you want because it's
useful to be able to map back from a glyph name to a code point, and
obviously that requires that the glyph have different names when
accessed through different code points.
2020-03-28 16:53:38 +00:00
Ben Harris
c8c26e41a3 Use 4-cell mosaic graphics to render block, lfblock, and rtblock
The results are the same, but since their Unicode code points are with
the other 4-cell characters, the source code it more intelligible.
2020-03-28 16:19:54 +00:00
Ben Harris
7c3dc41f9a Remove a few unused declarations spotted by GCC 2020-03-28 16:03:12 +00:00
Ben Harris
34e35a93b1 Move generation of uniXXXX names from runtime to compile time
It was getting complicated to ensure that everywhere that needed a
glyph name correctly generated them: simpler to have the preprocessor
generate them once.
2020-03-28 15:59:27 +00:00
Ben Harris
0bc46491d3 More efficient (but hacky) searching for glyphs by name
Now rather than linearly searching the list of glyphs, dolookup() can
do a binary search on a list of glyph names.  This is faster, but the
code is currently very ugly.
2020-03-28 12:37:14 +00:00
Ben Harris
1933bc167f Switch encoding from UnicodeBmp to UnicodeFull
This should have no effect on the OTF output, but it ensures that all
characters are properly encoded in BDF.  It also corrects a technical
invalidity in our SFD files.
2020-03-28 10:48:34 +00:00
Ben Harris
0a21eeaeff Remove the SC flag from D.saa5052 and L.saa5052
It didn't work properly anyway.
2020-03-28 10:17:31 +00:00
Ben Harris
31e3b18e11 Make the 'smcp' lookup work like the stylistic sets
The SC flag is no longer applied to lower-case letters.  Instead,
dolookups() automatically searches for suitably-names glyphs.
2020-03-28 10:05:35 +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
facb08e709 More NOTES on bitmap font sizes 2020-03-22 12:42:46 +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
2649e35bab Parameterize extended sample by pixel size too 2020-03-22 10:21:33 +00:00
Ben Harris
dfb86e3fc5 Move sample image down by one (output) pixel
Having a 3px margin at the top and a 5px margin at the bottom was silly.
2020-03-22 10:16:02 +00:00
Ben Harris
0e5c32bfb4 Parameterize sample.ps by the font size
I want to change the font size and I don't want to change a lot of
numbers.
2020-03-22 10:15:03 +00:00
Ben Harris
afe9f6a3ae NOTES on good bitmap sizes. Conclusion: 20, 60, and 100 are good. 2020-03-22 00:26:27 +00:00
Ben Harris
f37014b09a Remove outdated mosaic graphics information from NOTES 2020-03-21 22:10:39 +00:00
Ben Harris
6696756201 Update description of mosaic graphics on Web page. 2020-03-21 22:04:41 +00:00
Ben Harris
2ba6e6fbdd Add Cyrillic ie grave and dze (U+0400, U+0405, U+0450, U+0455)
They're identical to Latin "e" grave and "s".
2020-03-01 12:28:05 +00:00
Ben Harris
1f9ea007dd Add the Greek letter yot (U+037F, U+03F3)
As far as I can see it's visually identical to the Latin 'j'.
2020-03-01 12:12:26 +00:00
Ben Harris
97e4fac0bd Fix a missing space in a comment 2020-03-01 11:48:16 +00:00
Ben Harris
27947e9d87 Add Greek spacing accents, U+0384 and U+0385 2020-03-01 11:38:58 +00:00
Ben Harris
8d99ef3655 Add dotless j 2019-12-14 14:59:17 +00:00
Ben Harris
75decb8817 A few extra glyphs with macrons. 2019-12-14 14:55:56 +00:00
Ben Harris
a21b5b758c All the remaining precomposed latin letters with diaeresis 2019-12-14 14:18:10 +00:00
Ben Harris
56c7d2e66d Add A / a with dot below
Somehowo I missed these in the last batch.
2019-12-14 00:44:09 +00:00
Ben Harris
d8a0fe6469 Add glyphs for a bunch of letters with dots below.
I discovered that Ubuntu has keyboard sequences for these, and they're 
easy to draw.
2019-12-13 18:39:45 +00:00
Ben Harris
15126cfddd Don't auto-hint mosaic graphics characters.
Suggested by Jason A.
2019-12-13 18:37:52 +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
954f60b9e1 Add 4-cell mosaic graphics.
These follow the same approach as 6-cell graphics: the smoothing
algorithm is disabled and there's no margin between character cells.
This is necessary to ensure that "upblock" and "dnblock" harmonise
with "lfblock" and "rtblock", the latter two being unified with 6-cell
graphics and the former not.

I've filled in the rest of the 4-cell characters on the basis that an
alternate history in which Teletext used 4-cell rather than 6-cell
graphics is perfectly plausible and Bedstead may as well support it.
2019-01-20 11:10:24 +00:00
Ben Harris
a37c1240db Put mosaic graphics in their new home.
That's the U+1FB00 block.  Annoyingly, no gaps are left for the
characters unified elsewhere, so the character codes are slightly
unsystematic.
2019-01-20 00:54:32 +00:00
Ben Harris
4e4d1a5cd5 Convert "block", "lfblock" and "rtblock" to mosaic graphics.
In Unicode, these will be unified with 6-cell mosaic graphics, so we
need to use the mosaic graphics system for them.
2019-01-20 00:26:49 +00:00
Ben Harris
6bdb83305e A few interesting characters from U+1FBxx.
That's the forthcoming "Graphics for Legacy Computing" block that will
finally have an official encoding of teletext mosaic graphics.
2019-01-19 01:45:54 +00:00
Ben Harris
c78b95f6f0 Add Cyrillic letters necessary for Serbian.
That's dje, je, lje, nje, tshe, and dzhe.  Because I got an email from
Serbian Wikipedia.
2018-10-26 12:42:40 +01:00
Ben Harris
45af0319c2 Add heading for 002.000 in NEWS file. 2018-04-28 17:22:54 +01:00
Ben Harris
00a0904d64 Update version number in HTML as well. bedstead-002.000 2018-04-25 22:34:14 +01:00
Ben Harris
d2a749c465 Add NEWS to distfiles. 2018-04-25 22:21:54 +01:00