font: load font glyphs into memory
commit6242b9ed6c0e6fad51ff997b2faca4159518f21b
authorAli Gholami Rudi <ali@rudi.ir>
Fri, 4 May 2012 05:46:00 +0000 (4 10:16 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Fri, 4 May 2012 05:46:00 +0000 (4 10:16 +0430)
tree11373b05622c0b13cc281a7f32e18ac86c6635e8
parent9490414f961b885295eaa9037cf8db1fb8d8bc8c
font: load font glyphs into memory

Loading glyphs from disk can result in noticeable delays in fbpad,
specially when the disk is busy.  What's more, modifying loaded font
files when fbpad is running may result in strange characters in fbpad.
On the other hand, fonts files are relatively small compared to the size
of framebuffers and very little memory can be saved by not loading them.

This patch changes fbpad to load the whole font file into the memory
to solve the mentioned problems.
font.c