diff options
| author | Joel <info@b-electronics.ch> | 2016-10-03 21:25:42 +0200 |
|---|---|---|
| committer | Gogs <gogs@fake.local> | 2016-10-03 21:25:42 +0200 |
| commit | 412ea078eeb7f16e774834e3b0e63deb3c6a8e1b (patch) | |
| tree | 20f9b712d9724e92188942464a3efc7eecffb549 /tools/mcufontencoder/src/main.cc | |
| parent | ea0dd89cfcc752f38a315c6721fafdec80eb8280 (diff) | |
| parent | c9b616014fee75c60824819f78eb8e7ff247439e (diff) | |
| download | uGFX-412ea078eeb7f16e774834e3b0e63deb3c6a8e1b.tar.gz uGFX-412ea078eeb7f16e774834e3b0e63deb3c6a8e1b.tar.bz2 uGFX-412ea078eeb7f16e774834e3b0e63deb3c6a8e1b.zip | |
Merge branch 'master' of dongie/uGFX into master
Diffstat (limited to 'tools/mcufontencoder/src/main.cc')
| -rw-r--r-- | tools/mcufontencoder/src/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mcufontencoder/src/main.cc b/tools/mcufontencoder/src/main.cc index 19c9c6f7..70cd9132 100644 --- a/tools/mcufontencoder/src/main.cc +++ b/tools/mcufontencoder/src/main.cc @@ -90,7 +90,7 @@ static status_t cmd_import_ttf(const std::vector<std::string> &args) int size = std::stoi(args.at(2)); bool bw = (args.size() == 4 && args.at(3) == "bw"); std::string dest = strip_extension(src) + std::to_string(size) + (bw ? "bw" : "") + ".dat"; - std::ifstream infile(src); + std::ifstream infile(src, std::ios::binary); if (!infile.good()) { @@ -118,7 +118,7 @@ static status_t cmd_import_bdf(const std::vector<std::string> &args) std::string src = args.at(1); std::string dest = strip_extension(args.at(1)) + ".dat"; - std::ifstream infile(src); + std::ifstream infile(src, std::ios::binary); if (!infile.good()) { |
