Check-in [ef0d83aeec]
Not logged in

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

Overview
Comment:Clarify the comments about the name strings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ef0d83aeeccb38b85f7c26ca82c1c48f25e0826e
User & Date: Ross 2015-12-23 21:15:39
Context
2015-12-24
01:11
Move TTX details of TrueType contours into ttfont where it belongs, leaving a very simple array of arrays for the glyph outline exposed to scripting. check-in: b0577ee769 user: Ross tags: trunk
2015-12-23
21:15
Clarify the comments about the name strings. check-in: ef0d83aeec user: Ross tags: trunk
18:35
Make the MIT license I assumed I had applied explicit in the Readme and in the code. The license will also be added to the public repository's documentation, and the repository publicly announced some time after this checkin. check-in: dcc428b741 user: Ross tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/dotfonter.lua.

164
165
166
167
168
169
170
171





172
173
174
175
176
177
178

179
180
181
182
183
184
185
    ttfont.MapGlyph("unicode", char:byte(), name)
    if char:byte() <= 0x7f then
        ttfont.MapGlyph("mac", char:byte(), name)
    end
    ttfont.MapGlyph("win", char:byte(), name)
end

--[[ Adjust the strings.





--]]
ttfont.SetNames{
    vers='Version 001.042',
    copy='Copyright Ross Berteig 2015.',
    ffam='Upright Seven Segments',
    PSnm='UprightSevenSegments-Regular',
    ufid='Upright Seven Segments '.. os.date"%Y-%m-%d" ,

    demo='ABCDEF 0123456789',
}

-- get the finished font and write it as TTX
local font = ttfont.GetFont()
--print(font)
font:save("temp.ttx")







|
>
>
>
>
>


<




>







164
165
166
167
168
169
170
171
172
173
174
175
176
177
178

179
180
181
182
183
184
185
186
187
188
189
190
    ttfont.MapGlyph("unicode", char:byte(), name)
    if char:byte() <= 0x7f then
        ttfont.MapGlyph("mac", char:byte(), name)
    end
    ttfont.MapGlyph("win", char:byte(), name)
end

--[[ Set the strings. 

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.

--]]
ttfont.SetNames{

    copy='Copyright Ross Berteig 2015.',
    ffam='Upright Seven Segments',
    PSnm='UprightSevenSegments-Regular',
    ufid='Upright Seven Segments '.. os.date"%Y-%m-%d" ,
    vers='Version 001.042',
    demo='ABCDEF 0123456789',
}

-- get the finished font and write it as TTX
local font = ttfont.GetFont()
--print(font)
font:save("temp.ttx")