Code Monkey home page Code Monkey logo

Comments (8)

AriZuu avatar AriZuu commented on August 10, 2024

Can you describe the problem a bit more ? Command arguments you are using and possible error message would be helpful in figuring out what might help.

from ttf2ugui.

jianjinliao avatar jianjinliao commented on August 10, 2024

I'm using esp32 + esp-idf + ugui to build UI. I want to display Chinese on the screen,However, ugui does not support Chinese display,I copied a Chinese font of windows and used tt2ugui to convert C:ttf2ugui --font Chinese.ttf --dpi 140 --size 14 --dump
The converted ugui. c still doesn't have a Chinese font, and there's no way to display Chinese

from ttf2ugui.

AriZuu avatar AriZuu commented on August 10, 2024

Try the --show option in ttf2ugui, ie. something like

ttf2ugui --font Chinese.ttf --size 14 --show Test

That should display an ascii art using given font (if that font is available in Windows maybe I could try it myself also).

from ttf2ugui.

AriZuu avatar AriZuu commented on August 10, 2024

I tried chinese font from here: http://www.font-club.com/dfhei1b-gb_141129.html

The --show option displays something that looks like chinese symbols, but I don't know the language show it's difficult to know if it is correct.

from ttf2ugui.

jianjinliao avatar jianjinliao commented on August 10, 2024

Yes, --show the display is in Chinese.I checked that ttf2ugui.c can't convert Chinese characters, which seems to be restricted by -- minchar -- maxchar.Can you re create a branch and remove the conversion restriction?

from ttf2ugui.

jianjinliao avatar jianjinliao commented on August 10, 2024

Ttf2ugui seems to convert only Latin characters and symbols.

from ttf2ugui.

AriZuu avatar AriZuu commented on August 10, 2024

What if you try something like
./ttf2ugui --font Chinese.ttf --dpi 140 --size 14 --dump --maxchar 500

ie. it is possible to specify maxchar value, default is just to dump visible ascii characters 32 - 126.

from ttf2ugui.

jianjinliao avatar jianjinliao commented on August 10, 2024

Thank you for your reply. This problem has been solved.

from ttf2ugui.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.