ukrainian fonts convert

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Thank you for the fast reply,

      I have generated .c file using attached pattern .txt with Antialiased 4bpp and 16 bit unicode . it dint work .

      And I have generated in Antialiased 4bpp and 8bit ASCII + ISO 8859 and changed script to Cyrillic. in this only character 'P' is displaying.

      Kindly help...

      Regards,
      arat
      Files
      • pattern.txt

        (150 Byte, downloaded 18 times, last: )
    • Hi,

      what exactly didn't work? There's nothing wrong with your pattern file, it worked for me. Did you disable all characters before reading the pattern file?

      When the font was successfully generated, it just has to be added to the project. Then, GUI_SetFont() can be called with a pointer to the GUI_FONT structure of your created font.

      Best regards,

      Florian
    • Hi Florian,

      I have generated in Antialiased 4bpp and 8bit ASCII + ISO 8859 and changed script to Cyrillic. This generated file (.c ) has been added to the project. and called GUI_Set Font() with GUI _FONT structure..... ... but it is displaying only "P" (Latin letter ETH) that means 0X00D0.

      Is this because of script...?

      my defined text is #define DISP_FLUOROSCOPY "ФЛУОРОСКОПІЯ" , after adding generated font file , it displays like PPPPPPPPPPPP.

      I used Roboto Bk19 font.

      plz help me regarding
    • Hi,

      it doesn't work when you save non-ASCII characters in your C file. First, you have to encode the string to UTF-8, which you can do using this tool.

      C Source Code

      1. #define DISP_FLUOROSCOPY "\xd0\xa4\xd0\x9b\xd0\xa3\xd0\x9e\xd0\xa0\xd0\x9e\xd0\xa1\xd0\x9a\xd0\x9e\xd0\x9f\xd0\x86\xd0\xaf"

      Then, you also have to call GUI_UC_SetEncodeUTF8() at the beginning of your application (after GUI_Init()). Now, you can set a font that contains the characters in your UTF-8 String and display the string.

      The font you generated doesn't contain the characters of your string. It worked for me with a font that contains the cyrillic characters (see attachment).

      Best regards,

      Florian
      Files
    • Hi,

      what I did was selecting the font, disabling all characters and reading the pattern file. The pattern file contains the Cyrillic characters (not converted to UTF-8). I also set the encoding to UCS-2 LE BOM, which is necessary in order for the pattern file to be read correctly. You can find the pattern file in the attachments.

      Best regards,

      Florian
      Files
      • pattern.txt

        (26 Byte, downloaded 16 times, last: )
    • Thanks a lot Florian.

      Finally i am able to display the cyrillic character/string.

      I just generated the cyrillic font file (.c) with (Antialiased 4bpp + 16bit Unicode) and called GUI_UC_SetEncodeUTF8() at the beginning of the application (after GUI_Init()).


      Case closed.