No announcement yet.

Characters with accents

  • Filter
  • Time
  • Show
Clear All
new posts

  • Characters with accents

    Is it possible to display characters with accents or character like degree sign ?

    Using : uLCD-32032-P1T


  • #2

    No, these extended characters are not built into the internal fonts. However, you can make your own characters by using the gfx_Bitmap() function.


    • #3

      Thank you for the quick response, I missed this feature.



      • #4

        Use the following format, it's easier to understand and implement.

        HTML Code:
        byte myBitmap1 0x01, 0x08, 0xFE, 0x06, 0x0C, 0x18, 0x30, 0x60, 0xFE, 0x00 // "Z" as byte data
        gfx_Bitmap(myBitmap1, x, y, WHITE); // draw the bitmap


        • #5

          Well, I have the same problem.
          I need for an application greek letters like alpha, beta ... omega. A function to implement own fonts or special characters would be very useful in 4DGL because the world have many other languages with special characters (German, Chech, Kyrillic, Chinese).
          I think the available fonts are stored in the PMMC file, isn't it? Is it possible to develop a tool that stores the fonts on the uSD card? So you can include a font editor in the Graphicscomposer to build your own user-fonts. At startup you can overload the existing fonts with that stored on the uSD and all would be fine. You can then use the new fonts with the same commands you use the internal fonts. It is difficult to use the bitmap command when you habe a longer text to display . This may work if you only want to change a single char (like ° in teperature) but not to develop expedient applications in foraign languages with many many characters.


          • JPL
            JPL commented
            Editing a comment
            After 11 years because the above is dated Oct 2008, I have the same problem .... I need the greek letters like Omega, Beta and deg for Celsius and some math symbols. Does exist a font editor and possibility to create custom font editor and upload it into uSD card? I am using Diablo 16, uLCD43DT.

          • sherwin4D
            sherwin4D commented
            Editing a comment
            Hi JPL,

            Please refer to this for thread for the solution:

            Kind regards,

        • #6

          Ok for chinese you would need unicode characters with 2 bytes to display all tha possible characters, but for the most other languages like german, greek ... fonts with 256 characters are sufficient.


          • #7

            Take a look at BitFontCreator, this fantastic program allows you to create or preload any font and generate C code that can be used in 4DGL for bitmaps. An example of the code output for a letter 'A':

            /* character 0x0041 ('A'): (width=9, offset=576) */
            0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
            0x14, 0x00, 0x14, 0x00, 0x14, 0x00, 0x22, 0x00,
            0x22, 0x00, 0x7F, 0x00, 0x41, 0x00, 0x80, 0x80,
            0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

            Check it out at:



            • #8
              Hi JPL,

              Does exist a font editor and possibility to create custom font editor and upload it into uSD card?
              Yes, a Font Tool program is available for creating/editing fonts. You may use the tool to generate an *.inc file which you
              can inherit on your program. You may also copy and paste the #DATA block from the include file to your
              program if you so prefer.

              FONT TOOL:
              FontTool Rev

              To set the custom font:
              #inherit ""
              // or
              //place myfont here
              func main()
                  set_FontID(myfont);    //set font
              You could also store fonts into FLASHBANK if you need to save RAM space for your program.
              txt_FontBank(FLASHBANK_3, 7);
              Attached is a Designer program which makes use of an include font file to show certain characters, e.g.
              alpha, beta, omega, etc.

              Should you have any questions regarding these, please don't hesitate to ask.

              Best of luck and kind regards,