EpdSetSndFont(bSndFont As Byte, pSmooth As Bit)
|
Parameter |
Description |
|
bSndFont |
font index |
|
pSmooth |
Smooth resizing option (not yet implemented - could be 0 or 1) |
Select the SND font to be used.
EpdSetSndFont(1,0)
To use a specific SND font, include the corresponding SND font .inc file in your project, then select it in code with EpdSetSndFont().
This only needs to be called once — the selected font stays active until you call EpdSetSndFont() again with a different index.
If you're using multiple SND fonts, remember to switch back explicitly before printing with a different one.
Note: Only font sizes that are a multiple of 8 are supported — 8×8, 16×16, 16×24, and similar.
This isn't an arbitrary restriction: SND fonts are specifically the font family suitable to work in bufferless mode (unlike BDF fonts, which require a frame buffer), and that only works cleanly because glyph data packs into whole bytes with no partial-byte remainder to handle.
This also matters for rotated printing specifically — building a rotated glyph byte works by packing 8 consecutive source rows into each output byte, which only comes out even when the glyph's own height is itself a multiple of 8.
Created with the Personal Edition of HelpNDoc: Maximize Your Productivity with a Help Authoring Tool