407 Commits

Author SHA1 Message Date
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
Ben Harris
ae3be652a3 Bump version number to 002.000.
I can't think of anything else I need to do for it.
2018-04-25 22:18:05 +01:00
Ben Harris
581549340d Add a NEWS file.
Now that we have incompatible changes, I want somewhere to document them.
2018-04-25 22:12:28 +01:00
Ben Harris
e53f8b7c51 Remove mention of stroked fonts from Web page.
I'm not quite confident enough in them yet.
2018-04-25 22:11:58 +01:00
Ben Harris
7a136ee50a Update media type for OpenType fonts.
application/font-sfnt has been deprecated in favour of, among others, 
font/otf.
2018-04-22 20:12:07 +01: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
0f9d379316 Make any rule that uses Ghostscript depend on the Fontmap. 2018-04-09 22:27:24 +01:00
Ben Harris
6932fab2b4 Correctly remove bedstead-complement.ps when making clean.
I forgot to update the rule for the new filename.
2018-04-09 22:14:52 +01:00
Ben Harris
8ff0c0634b Remove everything relating to PFA and AFM files.
Nothing in the build system uses them now, and I'd already stopped
distributing them.
2018-04-09 22:14:10 +01:00
Ben Harris
4cd84ee82c Don't include SFD files in distribution.
They're not really finished products.  Also I don't think I should
encourage people to load random SFDs since FontForge will apparently
happily execute Python code it finds in them.
2018-04-09 22:12:09 +01:00
Ben Harris
438e6cc037 Mention glyph complement on Web page. 2018-04-09 22:01:43 +01:00
Ben Harris
f8acc16830 Rename glyph complement PDF and add it to the distribution.
"bedstead" now appears in the name.
2018-04-09 21:48:51 +01:00