432 Commits

Author SHA1 Message Date
Ben Harris
455bcaadbc Fix a couple of Unicode values for APL 2020-05-15 09:32:42 +01:00
Ben Harris
24e2d0e091 Reasonably complete attempt at an APL character set 2020-05-14 23:24:47 +01:00
Ben Harris
a777d5117f A few other musical symbols that happen to be feasible
My segno is missing the conventional dots, though.
2020-04-26 15:27:28 +01:00
Ben Harris
a2c30aced9 Double flat sign
Slight creativity required, but I think it works.
2020-04-26 15:16:36 +01:00
Ben Harris
b62dd8d519 An assortment of nice obvious musical symbols
Mostly bar lines and staves.
2020-04-26 15:09:56 +01:00
Ben Harris
84faed5e4c Add a few musical symbols
I thought repeat marks might be useful, and ended up doing a few others.  
The repeat marks and clefs are based on the assumption that a five-line 
stave fills the character cell and that you're using the clefs in their 
most common position.
2020-04-26 12:34:46 +01:00
Ben Harris
bfde955281 Add a NOTE about Microsoft's font design guidelines 2020-04-26 12:34:25 +01:00
Ben Harris
15fe3fb95e Make 'aalt' the first lookup in the font
The OpenType spec says it should be so.
2020-04-02 10:01:51 +01:00
Ben Harris
be7f82e324 A few more small-cap fragments 2020-04-02 09:59:07 +01:00
Ben Harris
c436332f25 Don't emit name ID 16 without 17
The OpenType spec isn't entirely confident here, but it seems to think
that name ID 16 is unnecessary if it's identical to 1, and it makes
sense to me that 16/17 should go together as a pair just like 1/2 do.
2020-03-30 21:02:54 +01:00
Ben Harris
7be4eb6945 Actually generate the 'ss14' substitutions
Without then, the feature doesn't work, and more surprisingly
FontForge puts the description of the feature into string ID 0, which
is meant to be the copyright notice.
2020-03-30 20:26:29 +01:00
Ben Harris
591d365428 Link to release notes from Web page 2020-03-30 00:31:28 +01:00
Ben Harris
6c0e11d6f5 Update version to 002.001 bedstead-002.001 2020-03-29 22:25:20 +01:00
Ben Harris
98bc0342b5 Slightly enlarge font sample images to get better grid-fitting
40 pixels is a bad size; 50 pixels is a slightly better one.
2020-03-29 16:11:21 +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
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