king2 Posted January 29, 2016 Report Share Posted January 29, 2016 I want to use cyrillic characters and as well as latin, digits and some symbols like 'micro'. How can I convert font? What should I supply as range? 0-451 to get digits and cyrillic chars?Can I supply multiply ranges to get rid of characters that I do not need?Thanks!update: online converter has maxlength=1 in custom range fields. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted January 29, 2016 Report Share Posted January 29, 2016 Please have a look at this article: http://wiki.ugfx.org/index.php/Font_renderingIt will lead you through the process of adding your own fonts (see the Adding fonts) section. The article contains links to both the online font converter as well as to a wikipedia page that contains tables for all languages to figure out the required filter range.Back when we added unicode support we even created a dedicated article talking about Cyrillic: http://wiki.ugfx.org/index.php/CyrillicIt's currently not possible to specify multiple filter ranges. If the gap is big enough it might make sense to simply generate two font files.We hope that helps.~ Tectu Link to comment Share on other sites More sharing options...
king2 Posted January 29, 2016 Author Report Share Posted January 29, 2016 I have read both articles and finally got font (maybe it will be useful to write in online converter that custom range should be set not in character codes, but by characters itself?)I got file with size of 251k.I cannot use two fonts because I have to use digits and cyrillic chars in one text.I think multiple ranges is a good idea to save firmware space. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted January 29, 2016 Report Share Posted January 29, 2016 The limiting factor regarding multiple filter ranges is the web interface (the online converter), not the actual converter itself.You can manually convert your font using the font encoder which you can find under /tools/mcufontencoder/. The filter parameter takes an unlimited amount of range parameter.We should probably add this option to the online converter as well ~ Tectu Link to comment Share on other sites More sharing options...
king2 Posted January 29, 2016 Author Report Share Posted January 29, 2016 Maybe I overlooked this?How I can supply multiply ranges to mcufont.exe? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted January 29, 2016 Report Share Posted January 29, 2016 The usage text states:"filter ... Remove everything except specified characters."This means that you can specify multiple ranges after the filter keyword and the corresponding file.I assume that filter foo.dat should work.~ Tectu Link to comment Share on other sites More sharing options...
king2 Posted January 29, 2016 Author Report Share Posted January 29, 2016 No, it won't work at all.When I trying to run it with command:mcufont import_ttf scada.ttf 20it terminates with message:This application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information.I have tried this on Windows 8 64-bit and Windows XP 32-bit with same result.I have tried to convert font DejaVuSans.ttf from fonts directory - same error.update: My friend gave me access to linux shell where linux binary runs fine without core dump (on second try), so I can convert fonts now. Multi-range is working, thank you! But windows binary needs to be repaired.. Link to comment Share on other sites More sharing options...
inmarket Posted January 29, 2016 Report Share Posted January 29, 2016 That error nessage normally indicates that the necessary dll's are not available. The dll's in the windows binary directory in the repository need to be in the same directory as the executable when you run it.I will retest the windows binary just to make sure later. Link to comment Share on other sites More sharing options...
wctltya Posted September 27, 2016 Report Share Posted September 27, 2016 Hi, Seems the issue is not fixed yet, because I have the same problem. I'm starting the mcufont.exe under windows command prompt in the same folder where the all dll's are, i.e. D:\MyPaticularPathToTheUGFLibrary\tools\mcufontencoder\binaries\windows, but got the same error. The OS is Windows 7 Pro 64. I'm trying to use the local font converter, because I need to specify multiple ranges as "king2". Link to comment Share on other sites More sharing options...
inmarket Posted September 27, 2016 Report Share Posted September 27, 2016 Make sure your source control fetcher is fetching mcufont.exe and the dlls in binary (not in ascii mode unlike the source code). The mcufont.exe definitely works. I run it on Win10 64bit and the original exe was compiled on win7 64bit. If you have no success in getting a valid executable then the source code can be directly compiled using the supplied windows makefile and either a cygwin compiler or a mingw32 compiler. I haven't tried vcc (the microsoft compiler). If you compile under windows go directly to the mcufont encoder directory and compile from there rather than from the mcufont root as the mcufont test harness doesn't compile under windows. Link to comment Share on other sites More sharing options...
wctltya Posted September 27, 2016 Report Share Posted September 27, 2016 (edited) Hi inmarket, I'm running it under Windows command prompt "D:\....\mcufont.exe ...", so I don't know how windows " source control fetcher " can fetch it in a different way than an executable, and same for dll's?!? Edited September 27, 2016 by wctltya Link to comment Share on other sites More sharing options...
fanrir Posted October 6, 2016 Report Share Posted October 6, 2016 Hello, is it possible to post application? I build it by mingw, but have the same error Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted October 7, 2016 Report Share Posted October 7, 2016 The Windows binary of the font encoder has been updated a couple of days ago. You can find the latest version of it in the µGFX library repository. It should work without any dependencies or other problems: https://git.ugfx.io/uGFX/uGFX/commit/c9b616014fee75c60824819f78eb8e7ff247439e Link to comment Share on other sites More sharing options...
fanrir Posted October 7, 2016 Report Share Posted October 7, 2016 (edited) It works, thank you! Edited October 7, 2016 by fanrir Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now