LCDproc development and user support list

Text archives Help


[Lcdproc] [PATCH] imonlcd loadable font support


Chronological Thread 
  • From: umpelev at gmail.com (Sergey Umpelev)
  • Subject: [Lcdproc] [PATCH] imonlcd loadable font support
  • Date: Fri, 22 Jan 2010 12:06:32 +0500

Hi,

Here is the patch for imonlcd driver to enable loading bitmap fonts from a
file. This patch also modifies output of the info command to print the
charset of a loaded font. A new configuration parameter Font is added to
specify a file, from which font will be loaded. If Font parameter is not
specified or there were any errors while loading a font, the builtin
font (iso-8859-15 charset) will be loaded (original imonlcd behavour).

Font file format is as follows:
Zero-terminated string "imonlcd" (for file identification purposes)
Zero-terminated font charset string (for use in the info command)
256*6=1536 bytes of character images data. Individual character image is
coded as it is noticed in the imonlcd_font.h: the character is 6x8 pixels in
size, each byte of the character definition represents one column of pixels.
The most significant bit is the top row, the least significant bit is the
bottom row.

I also attached two font files to use with the patched imonlcd driver. One
of these completely resembles the builtin font and other is based on builtin
font in which characters with codes 160-255 are replaced with characters
from Windows-1251 codepage (cyrillic letters). I think, fonts for other
languages that are using their specific letters could easily be made as it
will be needed.

Best regards,
Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20100122/a650fff0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lcdproc-0.5.3-imonlcd_loadable_font_support.diff
Type: application/octet-stream
Size: 7663 bytes
Desc: not available
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20100122/a650fff0/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iso8859_15.fnt
Type: application/octet-stream
Size: 1556 bytes
Desc: not available
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20100122/a650fff0/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp1251.fnt
Type: application/octet-stream
Size: 1557 bytes
Desc: not available
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20100122/a650fff0/attachment-0005.obj>



  • [Lcdproc] [PATCH] imonlcd loadable font support, Sergey Umpelev, 01/22/2010

Archive powered by MHonArc 2.6.18.

Top of page