diff options
Diffstat (limited to 'fxbarcode')
-rw-r--r-- | fxbarcode/oned/BC_OneDimWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/oned/BC_OneDimWriter.cpp b/fxbarcode/oned/BC_OneDimWriter.cpp index b898340519..14c5911f95 100644 --- a/fxbarcode/oned/BC_OneDimWriter.cpp +++ b/fxbarcode/oned/BC_OneDimWriter.cpp @@ -135,8 +135,8 @@ void CBC_OneDimWriter::CalcTextInfo(const CFX_ByteString& text, float geWidth, int32_t fontSize, float& charsLen) { - std::unique_ptr<CFX_UnicodeEncodingEx> encoding( - FX_CreateFontEncodingEx(cFont)); + std::unique_ptr<CFX_UnicodeEncodingEx> encoding = + FX_CreateFontEncodingEx(cFont, FXFM_ENCODING_NONE); int32_t length = text.GetLength(); uint32_t* pCharCode = FX_Alloc(uint32_t, text.GetLength()); |