Skip to content

Commit 6fd0b1d

Browse files
Brian Friedkinmkellner
authored andcommitted
fix a few small typos
1 parent efc97ad commit 6fd0b1d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

documentation/commodetto/Creating fonts for Moddable applications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Each font asset consists of a (.png) glyph file and a corresponding font metrics
1313
This allows anti-aliased or non-anti-aliased font sets to be generated as desired. The Poco renderer in the Moddable SDK does not implement a font scaler. Consequently, each required font size/weight must be generated and included as an asset in the application.
1414

1515
BMFont allows an arbitrary number of glyphs in the font.
16-
Moddable supports non-contiguous glyphs ranges allowing the developer or graphic designer to create an efficient font asset with just the characters needed for the application. This can significant reducing asset storage size.
16+
Moddable supports non-contiguous glyph ranges allowing the developer or graphic designer to create an efficient font asset with just the characters needed for the application. This can significantly reduce asset storage size.
1717

1818
Fonts are generated in black. This allows the Moddable SDK build tools to create alpha masks of the characters. To render the fonts in color, applications apply styles.
1919

documentation/commodetto/commodetto.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ out.send(pixels, 2, 2) // Send 2nd pixel in buffer
375375
376376
#### `adaptInvalid(r)`
377377

378-
The `adaptInvalid` function takes a rectangle argument specifying an area inside the `PixelsOut` area and modifies them rectangle as needed to make it a valid update area for the this PixelsOut. The `adaptInvalid` function is necessary because some display controllers are only able to update the display in certain quanta. For example, one display requires that the x coordinate and width are even numbers, another display can only update complete horizontal scan lines, and another updates the entire display even if only a single pixel changed.
378+
The `adaptInvalid` function takes a rectangle argument specifying an area inside the `PixelsOut` area and modifies the rectangle as needed to make it a valid update area for the PixelsOut. The `adaptInvalid` function is necessary because some display controllers are only able to update the display in certain quanta. For example, one display requires that the x coordinate and width are even numbers, another display can only update complete horizontal scan lines, and another updates the entire display even if only a single pixel changed.
379379

380380
let r = renderer.rectangle(x, y, w, h);
381381
pixelsOut.adaptInvalid(r);
@@ -478,7 +478,7 @@ RLE-encoded bitmaps are smaller, reducing the amount of ROM required for assets.
478478

479479
The `RLE4Out` class may be used on the device. More commonly, however, a bitmap is RLE-encoded and written to storage at build time; this avoids the time and memory required to encode the image on the device, while saving storage space.
480480

481-
The `rle4encode` tool in the Moddable SDK compressed 4-bit grayscale BMP files using the `RLE4Out` class. The `compressbmf` tool applies the RLE4Out to each individual glyph in a BMF font.
481+
The `rle4encode` tool in the Moddable SDK compresses 4-bit grayscale BMP files using the `RLE4Out` class. The `compressbmf` tool applies the RLE4Out class to each individual glyph in a BMF font.
482482

483483
The `RLE4Out` class does not implement the optional `continue` function.
484484

@@ -793,13 +793,13 @@ The renderer's `adaptInvalid` function is used to adjust the update area defined
793793
renderer.begin(r.x, r.y, r.w, r.h);
794794
...
795795

796-
Applications written to work with a single display controlled be able to safely ignore `adaptInvalid` by applying its constraints themselves. Code written to work with more than a single display controller will likely need to use `adaptInvalid` for reliable updates to subsections of the display.
796+
Applications written to work with a single display controller should be able to safely ignore `adaptInvalid` by applying its constraints themselves. Code written to work with more than a single display controller will likely need to use `adaptInvalid` for reliable updates to subsections of the display.
797797

798798
The Piu user interface framework calls `adaptInvalid` when necessary, so application scripts don't need to call it directly.
799799

800800
## Pixel format conversion
801801

802-
Commodetto provides a pixel format conversion capability intended primarily for use in tools that process images running on a computer. They are used, for example, by the `image2cs` and `png2bmp` tools in the Moddable SDK. The converters are small and efficient, and so may also be use in deployments to microcontrollers.
802+
Commodetto provides a pixel format conversion capability intended primarily for use in tools that process images running on a computer. They are used, for example, by the `image2cs` and `png2bmp` tools in the Moddable SDK. The converters are small and efficient, and so may also be used in deployments to microcontrollers.
803803

804804
### Convert class
805805

documentation/commodetto/poco.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ For displays that require a different output format, the display driver is respo
349349
Poco supports 1-bit monochrome and 4-bit gray bitmaps as sources for rendering to all pixel formats. In addition, the configured destination pixel format is always supported as a source format. For example, when the rendering pixel format is 16-bit RGB565 little-endian, supported source pixel formats are 1-bit monochrome, 4-bit gray, and 16-bit RGB565 little-endian.
350350

351351
### Compressed pixel formats
352-
Poco implements support for two compressed pixel format.
352+
Poco implements support for two compressed pixel formats.
353353

354354
The first is a weighted run-length compression of 4-bit gray bitmaps. These are commonly used for anti-aliased fonts and image masks. They use the `CommodettoBitmap` and `PocoBitmap` data structures with the pixel format set to `(kCommodettoBitmapGray16 | kCommodettoBitmapPacked)`.
355355

@@ -818,7 +818,7 @@ void PocoDrawFrame(Poco poco,
818818
PocoDimension w, PocoDimension h);
819819
```
820820
821-
`PocoDrawFrame` renders a compressed image stored in the Moddable variant of the ColorCell algorithm. The image to render is pointed to by the `data` argument with a byte count specified by the `dataSize` argument. The image is rendered at the location specified specified by the `x` and `y` arguments. The source dimensions (unclipped size) of the compressed image are given by the `w` and `h` arguments.
821+
`PocoDrawFrame` renders a compressed image stored in the Moddable variant of the ColorCell algorithm. The image to render is pointed to by the `data` argument with a byte count specified by the `dataSize` argument. The image is rendered at the location specified by the `x` and `y` arguments. The source dimensions (unclipped size) of the compressed image are given by the `w` and `h` arguments.
822822
823823
##### `PocoClipPush`
824824

0 commit comments

Comments
 (0)