Check-in [e570cd1c22]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Changed the font name of sevensegmentextended.dotfont. Fixed typos in the comments.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:e570cd1c2228c78bc1b23867bfdcfe66f445862a
User & Date: Ross 2016-03-19 20:25:20
Context
2016-03-21
07:04
Update makefile to include simple packaging for the demo fonts. Leaf check-in: 4b953090b9 user: Ross tags: trunk
2016-03-19
20:25
Changed the font name of sevensegmentextended.dotfont. Fixed typos in the comments. check-in: e570cd1c22 user: Ross tags: trunk
02:36
Snapshot updates to the other example fonts, mostly with the font license, demo string, and documentation updated. check-in: 79f4ed1094 user: Ross tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sevensegmentextended.dotfont.

201
202
203
204
205
206
207





208
209
210
211
212
213
214
...
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
    Glyph{unicode=0x76, pat='  cde  ', name='v'},
    Glyph{unicode=0x6e, pat='  c e g', name='n'},
    Glyph{unicode=0x6d, pat='ab   f ', name='m'},
    Glyph{unicode=0x67, pat='abcd fg', name='g'},
    Glyph{unicode=0x74, pat='   defg', name='t'},

}





local char,floor = string.char, math.floor
for i=0,0x3ff do
    local pat,n = '',i
    for b=0,9 do
        if n % 2 == 1 then pat = pat..char(97+b) end
        n = floor(n / 2)
    end
................................................................................
    Note that ffam, fsub, ufid, name, vers, and PSnm are required by Windows.
    Of those, fsub defaults to 'Regular' and name gets a sensible defaults based
    on ffam and fsub.

    --]]
    Names = {
        copy='Copyright Ross Berteig 2015.',
        ffam='Seven Segments',
        PSnm='SevenSegments-Regular',
        ufid='Seven Segments '.. os.date"%Y-%m-%d" ,
        vers='Version 001.044',
        demo='ABCDEF 0123456789',
        desc='This font provides coverage for all of the characters that can'
        ..' be displayed on a seven segment display, including three additional'
        ..' dots for forming a decimal point, colon, and comma. The characters'
        ..' provided are the hex digits: 0123456789ABCDEF and puncutation marks'
        ..' period, comma, colon, and semicolon.\n'
        ..'For testing, the number sign displays as all segments lit.\n'
        ..'In addition, the private use area starting at U+E800 thru U+EDFF is'
        ..' filled with every possible combination of the 10 segments. The bars'
        ..' are assigned to bits clockwise from the top: bit 0 is the top bar,'
        ..' bit 1 is the upper right bar, and so on with bit 6 being the center'
        ..' bar. After than, bit 7 is the decimal point, bit 8 the comma extension,'
        ..' and bit 9 the upper dot of the colon.'
        ..'We supply a kerning pair table which, if kerning is enabled in your'
        ..' application, will kern the four punctuation marks against an adjacent'







>
>
>
>
>







 







|
|
|








|







201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
...
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
    Glyph{unicode=0x76, pat='  cde  ', name='v'},
    Glyph{unicode=0x6e, pat='  c e g', name='n'},
    Glyph{unicode=0x6d, pat='ab   f ', name='m'},
    Glyph{unicode=0x67, pat='abcd fg', name='g'},
    Glyph{unicode=0x74, pat='   defg', name='t'},

}

--[[
Add 1024 additional glyphs displaying each possible pattern of lit segments.
These are mapped into the Private Use Area at U+E800 through U+EBFF.
--]]
local char,floor = string.char, math.floor
for i=0,0x3ff do
    local pat,n = '',i
    for b=0,9 do
        if n % 2 == 1 then pat = pat..char(97+b) end
        n = floor(n / 2)
    end
................................................................................
    Note that ffam, fsub, ufid, name, vers, and PSnm are required by Windows.
    Of those, fsub defaults to 'Regular' and name gets a sensible defaults based
    on ffam and fsub.

    --]]
    Names = {
        copy='Copyright Ross Berteig 2015.',
        ffam='Seven Segment Extended',
        PSnm='SevenSegmentExtended-Regular',
        ufid='Seven Segment Extended '.. os.date"%Y-%m-%d" ,
        vers='Version 001.044',
        demo='ABCDEF 0123456789',
        desc='This font provides coverage for all of the characters that can'
        ..' be displayed on a seven segment display, including three additional'
        ..' dots for forming a decimal point, colon, and comma. The characters'
        ..' provided are the hex digits: 0123456789ABCDEF and puncutation marks'
        ..' period, comma, colon, and semicolon.\n'
        ..'For testing, the number sign displays as all segments lit.\n'
        ..'In addition, the private use area starting at U+E800 thru U+EBFF is'
        ..' filled with every possible combination of the 10 segments. The bars'
        ..' are assigned to bits clockwise from the top: bit 0 is the top bar,'
        ..' bit 1 is the upper right bar, and so on with bit 6 being the center'
        ..' bar. After than, bit 7 is the decimal point, bit 8 the comma extension,'
        ..' and bit 9 the upper dot of the colon.'
        ..'We supply a kerning pair table which, if kerning is enabled in your'
        ..' application, will kern the four punctuation marks against an adjacent'