Font identifying from raster
Michael Sweet
mike at easysw.com
Sun Feb 1 08:00:43 PST 2009
shermin wrote:
> Hi,
>
> I am writing the code for Magnetic encoding for my smart card
> printers.I am using a special font for this.I thought of identifying
> the special font for magnetic encoding so that whenever that font is
> found in a job file ,it should be gone for magnetic encoding rather
> than printing blankly.So is there any method to identify the font
> from the raster data.If not ,how can be this achieved.???
You can't recover the text from raster data.
That said, I'd use a page attribute (cupsString1 through
cupsString16 are available, each supporting up to 63 characters + nul)
to pass the string(s) for the mag strip. A custom option can be used
to set the value, and/or you can write a small application that
creates a PostScript file containing the image for the card and the
string(s) for the mag strip.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
More information about the cups
mailing list