oxy976 / m5stack_rus_fonts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Доброго дня.
Судя по комментария в Readme, не один я заметил, что сломалось отображение шрифтов.
Насколько я понял, они подняли версию библиотеки TFT_eSPI и вроде как добавили поддержку юникода. Но вот добавить шрифты с национальными символами "забыли".
В оригинальной библиотеке TFT_eSPI есть пример, где с SPIFS загружается шрифт в формате VLW. Там всякие иероглифы отображаются нормально.
Видимо теперь всё сводится к тому, что бы сделать подходящие шрифты в данном формате.
Может, конечно, можно и в RobotoR16pt8b.h какой ни будь добавить кириллицу, так что бы она работала "из коробки", но пока не знаю как к этому подступиться. Подозреваю, что в итоге, из проекта нужно будет выбросить библиотеку utf8rus.
Тут виден момент, когда была внесена правка:
https://github.com/m5stack/M5Stack/commits/master/src/utility/In_eSPI.cpp
Здесь пример из оригинальной библиотеки, показывающий работу с юникодом. Код во многом совместим.
https://github.com/Bodmer/TFT_eSPI/tree/master/examples/Smooth%20Fonts/Unicode_test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.