aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mcufontencoder/src/main.cc
diff options
context:
space:
mode:
authorJoel <info@b-electronics.ch>2016-10-03 21:25:42 +0200
committerGogs <gogs@fake.local>2016-10-03 21:25:42 +0200
commit412ea078eeb7f16e774834e3b0e63deb3c6a8e1b (patch)
tree20f9b712d9724e92188942464a3efc7eecffb549 /tools/mcufontencoder/src/main.cc
parentea0dd89cfcc752f38a315c6721fafdec80eb8280 (diff)
parentc9b616014fee75c60824819f78eb8e7ff247439e (diff)
downloaduGFX-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.cc4
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())
{