The entry vector_glyphs
The choice of the vector font: the same lines of the system in each candidate font and in Spleen 8x16, one word of each enlarged, and the measures of the text path. The design: The text of the system: a vector font with subpixel bands: The font file.
The module carries the subsets of the candidates of resources/fonts, and its process opens each one as the font of the cells of a font set of its own (text_rendering.font_file_open). It draws the lines of each candidate through the face of the cells of that set, with the rasterizer and the blend of the text of the system (graphics.character_of_set): a candidate is drawn as it would be drawn if it were the font of the system. The text of the window itself is the text of the system: the glyphs that the process draws from the font outlines into its private glyph cache, or Spleen, as the setting says.
What it is for. It is the record of a choice: a reader sees the same lines in each candidate font at the sizes of the system, and the cost of each place where a glyph can come from, before a font becomes the font of the system.
Start: start("vector_glyphs") in the console, or the bar of the desktop. Its row of start_grant_sets has no grant.
What a reader sees: one block for each candidate and one for Spleen 8x16. The log has:
- "vector_glyphs: one glyph from its outline, ...": the time of one glyph at the scales 1, 2 and 3, from the private glyph cache of the process, and from Spleen; each time is the least of 50 short batches, so that a batch that the host stopped does not count;
- one line for each candidate: the time to open its font file;
- "vector_glyphs: ok, 6 candidates beside Spleen 8x16".
What it does not prove: the times are measures of this host, not bounds.
vector_glyphs module with an entry
- Hash
5a55bb12cf4c321d9cc8eb003520f7d6183eef6eddb2674b4325a4f063df70a4- Size
496495 bytes- Exports
0- Imports
0- Imported by
0- License
- MIT
The choice of the vector font: the same lines of the system in each candidate font and in Spleen 8x16, one word of each enlarged, and the measures of the text path
| Fact | Value |
|---|---|
| Kind | Modules with an entry |
| Source | src/modules/demonstrations/vector_glyphs |
| Boot image | yes: in the boot image, 496495 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | none |
| Imported by | none |
Neighbours
It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.
Exports
| Export | What it does |
|---|---|
entry() | The entry of vector_glyphs: it measures the three sources of a glyph, draws the candidates, writes the measures, then draws again after each event for ever |
entry
entry()
The entry of vector_glyphs: it measures the three sources of a glyph, draws the candidates, writes the measures, then draws again after each event for ever.
With no window it stops with Failed. The measures run before the first picture, on a scratch canvas that is not the window. The font files of the candidates are opened during the first draw.
- Form
- The entry of the module: one parameter, an address, fixed by the contract.
src/modules/demonstrations/vector_glyphs/main.odin:205
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
What the root service gives it
| What | Value | As the root service says |
|---|---|---|
| Grants | none | The candidate fonts, in its window. |
| Other terms of its start grant set | none | |
| Budget that it asks for |
| Its own memory: 1023 pages, with no glyph of a candidate kept: each is drawn band by band at each draw. And the glyph memory of its two copies of the text rendering, its own, which draws the measure of one glyph of the system and the candidates, and the one of the drawing module, which draws its labels: each reserves its memory at its first glyph, 2 x 354 pages (display.TEXT_MEMORY_PAGES) = 708 pages. And the picture of its window, which it draws by hand at its logical size: 1008 x 704 pixels of 4 bytes, 693 pages (interface.hand_picture_pages). 1023 + 708 + 693 = 2424. |
The start grant set is read from start_grant_sets in src/modules/system/root/start_grant_sets.odin. The stated budget is read from the constant MODULE_BUDGET of the source of the module (its line); the build adds the counted parts and writes the sum in the module (tools/modustool/build/budget_count.odin); the root service accepts it up to the largest budget of a process, and adds the limits of processor time and of log records (src/modules/system/root/budgets.odin).
start_grant_sets global variable of the package root
start_grant_sets := [?]Start_Grant_Set_Row {...}
The start grant set of each module of the boot image, with the reason of each.
