diff --git a/MiRCART-python/MiRCARTCanvasImportStore.py b/MiRCART-python/MiRCARTCanvasImportStore.py index 6b55b48..275a9ac 100644 --- a/MiRCART-python/MiRCARTCanvasImportStore.py +++ b/MiRCART-python/MiRCARTCanvasImportStore.py @@ -53,7 +53,7 @@ class MiRCARTCanvasImportStore(): # }}} # {{{ importTextFile(self, pathName): XXX def importTextFile(self, pathName): - self.inFile = open(pathName, "r", encoding="utf-8") + self.inFile = open(pathName, "r", encoding="utf-8-sig") self.inSize = self.outMap = None; inCurColourSpec = ""; inCurRow = -1; inLine = self.inFile.readline() diff --git a/MiRCART-python/MiRCARTToPngFile.py b/MiRCART-python/MiRCARTToPngFile.py index 45bee4e..e1f03b8 100755 --- a/MiRCART-python/MiRCARTToPngFile.py +++ b/MiRCART-python/MiRCARTToPngFile.py @@ -68,6 +68,7 @@ class MiRCARTToPngFile: outCurPos = [0, 0] outImg = Image.new("RGBA", outSize, (*self._ColourMapNormal[1], 255)) outImgDraw = ImageDraw.Draw(outImg) + outImgDraw.fontmode = "1" for inCurRow in range(len(self.inCanvasMap)): for inCurCol in range(len(self.inCanvasMap[inCurRow])): inCurCell = self.inCanvasMap[inCurRow][inCurCol]