Manveru wrote:
[Attachment(s) <#TopText> from Manveru included below]
Hi,
This patch is not ideal, as the the size of the array has to be
declared in newstroke_font.h, because sizeof() operator is used in
drawtxt.cpp.
I have an idea how to modify the code to feed hashmap from array of
glyphs we already have defined, ignoring all "F^K[KFYFY[K[", which may
reduce amount of memory used to store glyphs in code (I am even
thinking about compression, as text format used is very compressible),
and make the code more objective in approach.
1) Check your copyright message. It is my understanding that this work
belongs to Vladimir, not Jean-Pierre. Correct me if I am wrong
Jean-Pierre or Vladimir.
2) You can extern the size of the array by declaring an unsigned to hold it.
---------*.h-------------
extern unsigned newstroke_fontz;
----------*.cpp-----------
newstroke_font = {....};
// then just below:
unsigned newstroke_fontz = DIM( newstroke_font );
-------------------------------
3) Hashmap is a good idea. I don't think the compression is.