High-Performance Open-Source Archive
|
dvi2bitmap
dvi2bitmap1.0
|
#include <PkFont.h>
Public Member Functions | |
| PkGlyph (unsigned int cc, unsigned int tfmwidth, unsigned int dm, unsigned int w, unsigned int h, int hoff, int voff, PkRasterdata *rasterdata, PkFont *f) | |
| Represents a single glyph in a font. More... | |
| PkGlyph (unsigned int cc, unsigned int tfmwidth, unsigned int dx, unsigned int dy, unsigned int w, unsigned int h, int hoff, int voff, PkRasterdata *rasterdata, PkFont *f) | |
| Represents a single glyph in a font. More... | |
| PkGlyph (int resolution, PkFont *f) | |
| Constructs a dummy glyph for a font. More... | |
| unsigned int | characterCode () const |
| The character code for this glyph. More... | |
| char | characterChar () const |
| The character which this glyph represents. More... | |
| const Byte * | bitmap () |
| Returns the bitmap which represents this glyph. More... | |
| unsigned int | w () const |
| Width of this character. More... | |
| unsigned int | h () const |
| Height of this character. More... | |
| int | hoff () const |
| Obtains the horizontal offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a rightward offset. More... | |
| int | voff () const |
| Obtains the vertical offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a downward offset (which is rather rare, since the reference point is generally near the lower-left corner of the glyph). More... | |
| double | tfmWidth () const |
| The glyph's width. More... | |
| int | hEscapement () const |
| The glyph's horizontal escapement. More... | |
| int | vEscapement () const |
| The glyph's vertical escapement. More... | |
Static Public Member Functions | |
| static verbosities | verbosity (const verbosities level) |
| Sets the verbosity of this module. More... | |
| PkGlyph::PkGlyph | ( | unsigned int | cc, |
| unsigned int | tfmwidth, | ||
| unsigned int | dm, | ||
| unsigned int | w, | ||
| unsigned int | h, | ||
| int | hoff, | ||
| int | voff, | ||
| PkRasterdata * | rasterdata, | ||
| PkFont * | f | ||
| ) |
Represents a single glyph in a font.
The parameters here correspond to the parameters of the same names which are read from the PK file.
| cc | the character code of this glyph |
| tfmwidth | the width of the character, in DVI units |
| dm | the horizontal escapement, in pixels; this is the number of pixels rightwards (towards increasing x) that the reference should move after this glyph is set; the vertical escapement is taken to be zero |
| w | width of the bitmap in pixels |
| h | height of the bitmap in pixels |
| hoff | (hoff,voff) is the position of the glyph reference point, as an offset from the top-left pixel, in units of pixels, and with right and down being positive |
| voff | see parameter hoff |
| rasterdata | the raster information for this glyph |
| f | the font which this glyph belongs to |
References PkFont::designSize.
| PkGlyph::PkGlyph | ( | unsigned int | cc, |
| unsigned int | tfmwidth, | ||
| unsigned int | dx, | ||
| unsigned int | dy, | ||
| unsigned int | w, | ||
| unsigned int | h, | ||
| int | hoff, | ||
| int | voff, | ||
| PkRasterdata * | rasterdata, | ||
| PkFont * | f | ||
| ) |
Represents a single glyph in a font.
The parameters here correspond to the parameters of the same names which are read from the PK file.
| cc | the character code of this glyph |
| tfmwidth | the width of the character, in DVI units |
| dx | the horizontal escapement, in pixels times 216; this defines the number of pixels rightwards (towards increasing x) that the reference should move after this glyph is set |
| dy | the vertical escapement, in pixels times 216 |
| w | width of the bitmap in pixels |
| h | height of the bitmap in pixels |
| hoff | (hoff,voff) is the position of the glyph reference point, as an offset from the top-left pixel, in units of pixels, and with right and down being positive |
| voff | see parameter hoff |
| rasterdata | the raster information for this glyph |
| f | the font which this glyph belongs to |
References PkFont::designSize.
| PkGlyph::PkGlyph | ( | int | resolution, |
| PkFont * | f | ||
| ) |
Constructs a dummy glyph for a font.
| resolution | the resolution which this glyph corresponds to |
| f | the font which this glyph is a member of |
References PkFont::designSize.
| const Byte * PkGlyph::bitmap | ( | ) |
Returns the bitmap which represents this glyph.
This runs from the top-left of the character, with the width and height as given by methods w() and h().
References PkRasterdata::bitmap().
Referenced by main().
|
inline |
The character which this glyph represents.
Referenced by main().
|
inline |
The character code for this glyph.
Referenced by main().
|
inline |
|
inline |
The glyph's horizontal escapement.
|
inline |
Obtains the horizontal offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a rightward offset.
This is the negative of the horizontal offset of the reference point from the bitmap, as discussed in the constructor.
Referenced by main().
|
inline |
The glyph's width.
|
inlinestatic |
Sets the verbosity of this module.
| level | the required verbosity |
|
inline |
The glyph's vertical escapement.
|
inline |
Obtains the vertical offset of the first pixel of the bitmap from the reference point for this glyph, with positive numbers indicating a downward offset (which is rather rare, since the reference point is generally near the lower-left corner of the glyph).
This is the negative of the vertical offset of the reference point from the bitmap, as discussed in the constructor.
Referenced by main().
|
inline |
1.8.4
Need mirroring services?
Contact our team at info@vpspulse.com.
Mirror powered by VPSpulse
Infrastructure sponsored by VPSPulse & Secure Payments by ArionPay.