General Category > Discussion - Software

Lower case letter problem

<< < (2/2)

gokhannsahin:
After the font converter tool has been updated, the error has been fixed.
Thanks a lot.

gokhannsahin:

Sorry, I have a question again about font using.
How can I use both image and font on the same page? I can't display the image after any font has been uploaded and set.

FTDI Community:
Hello,

Yes, you can use images and fonts on the same page of your application.

Please ensure that the font data and image data are not overlapping in the RAM_G or overrunning the end of the RAM_G(especially if your image is being inflated from a compressed file and will therefore be larger when de-compressed). It is also necessary to assign the font and your image with different handles.

Does the font work well when used without the image and likewise does the image work well without the font? And if you display other items after the font (e.g. some points or other shapes) do they display correctly?

Best Regards,
FTDI Community



gokhannsahin:
when the images want to display before the setfont2 function, then everything is normal, so both the image and font are displaying on the page.

--- Code: --- vCommandImageCoBuf(&xHomeImages[4]);
        vCommandCoBuf(BITMAP_HANDLE(3));
vCommandCoBuf(BITMAP_SOURCE(xHomeImages[2].ulGraphicRamAddr));
vCommandCoBuf(BITMAP_LAYOUT(L4, 21, 55));
vCommandCoBuf( BITMAP_SIZE(NEAREST, BORDER, BORDER, 42, 55));
vCommandSetFont2CoBuf(xNumberSpeed.w_font, xHomeImages[2].ulGraphicRamAddr, 32);

--- End code ---

The image after the setfont2 function isn't displaying but the first image and font are displaying well.

--- Code: --- vCommandImageCoBuf(&xHomeImages[4]);
        vCommandCoBuf(BITMAP_HANDLE(3));
vCommandCoBuf(BITMAP_SOURCE(xHomeImages[2].ulGraphicRamAddr));
vCommandCoBuf(BITMAP_LAYOUT(L4, 21, 55));
vCommandCoBuf( BITMAP_SIZE(NEAREST, BORDER, BORDER, 42, 55));
vCommandSetFont2CoBuf(xNumberSpeed.w_font, xHomeImages[2].ulGraphicRamAddr, 32);
        vCommandImageCoBuf(&xHomeImages[2]);  // this image isn't displaying

--- End code ---

Note: BITMAP_HANDLEs are different.
Should I call the bitmap commands before setfont2 function for the font using? Or after?

gokhannsahin:
Is there any problem using the setfont2? or I'm making mistake?

Navigation

[0] Message Index

[*] Previous page

Go to full version