Hi All,
I have been researching into using emWin and FontConverter and I have come across something that has left me puzzled. It appears that when creating a monospaced font in FontConverter it still makes use of proportional font structures. When I look into the structs in emWin I can see that a monospaced struct font does exist however it seems like it is largely unused:
typedef struct {
const unsigned char * pData;
const U8 * pTransData;
const GUI_FONT_TRANSINFO * pTrans;
U16P FirstChar;
U16P LastChar;
U8 XSize;
U8 XDist;
U8 BytesPerLine;
} GUI_FONT_MONO;
I would like some clarification as to how to use these structs when creating fonts through FontConverter / modifying those files. Alternatively, any clarification on what pTransData, pTrans, XSize, XDist and BytesPerLine mean in this context would be great as they are not present in the fontconverter C files and I would like to make those files use these structs!
I have been researching into using emWin and FontConverter and I have come across something that has left me puzzled. It appears that when creating a monospaced font in FontConverter it still makes use of proportional font structures. When I look into the structs in emWin I can see that a monospaced struct font does exist however it seems like it is largely unused:
typedef struct {
const unsigned char * pData;
const U8 * pTransData;
const GUI_FONT_TRANSINFO * pTrans;
U16P FirstChar;
U16P LastChar;
U8 XSize;
U8 XDist;
U8 BytesPerLine;
} GUI_FONT_MONO;
I would like some clarification as to how to use these structs when creating fonts through FontConverter / modifying those files. Alternatively, any clarification on what pTransData, pTrans, XSize, XDist and BytesPerLine mean in this context would be great as they are not present in the fontconverter C files and I would like to make those files use these structs!