turbine-lib 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/PKG-INFO +1 -1
  2. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/pyproject.toml +1 -1
  3. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/font_convert.py +4 -4
  4. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib.egg-info/PKG-INFO +1 -1
  5. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/README.md +0 -0
  6. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/setup.cfg +0 -0
  7. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/__init__.py +0 -0
  8. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/binarydata.py +0 -0
  9. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/database.py +0 -0
  10. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/datexportapi.py +0 -0
  11. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/datfile.py +0 -0
  12. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/ddssubfile.py +0 -0
  13. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/fontsubfile.py +0 -0
  14. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/libs/datexport.dll +0 -0
  15. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/libs/msvcp71.dll +0 -0
  16. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/libs/msvcp90.dll +0 -0
  17. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/libs/msvcr71.dll +0 -0
  18. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/libs/zlib1T.dll +0 -0
  19. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/subfile.py +0 -0
  20. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/subfiledata.py +0 -0
  21. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/textsubfile.py +0 -0
  22. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/textutils.py +0 -0
  23. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib/utils.py +0 -0
  24. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib.egg-info/SOURCES.txt +0 -0
  25. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib.egg-info/dependency_links.txt +0 -0
  26. {turbine_lib-0.1.4 → turbine_lib-0.1.5}/turbine_lib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turbine_lib
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: 仅支持Windows 32位Python的库
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "turbine_lib"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "仅支持Windows 32位Python的库"
9
9
  classifiers = [
10
10
  "Programming Language :: Python :: 3",
@@ -285,8 +285,8 @@ class DestFontInfo:
285
285
  # self.Charset -= 65536
286
286
  self.CharsCount = info.CharsCount
287
287
  self.Padding = int(info.Padding.Left) & 0xFF # byte
288
- self.ScaleW = info.FontSize # 新增:用于作为width
289
- self.ScaleH = info.FontSize # 新增:用于作为height
288
+ self.ScaleW = self.FontSize # 新增:用于作为width
289
+ self.ScaleH = self.FontSize # 新增:用于作为height
290
290
 
291
291
  self.Chars = []
292
292
  for i in range(self.CharsCount):
@@ -306,8 +306,8 @@ class DestFontInfo:
306
306
  with open(path, 'wb') as fs:
307
307
  # 写入头部数据 - 根据新格式调整
308
308
  fs.write(struct.pack('<I', 0)) # masterFileID
309
- fs.write(struct.pack('<I', self.ScaleW)) # width
310
- fs.write(struct.pack('<I', self.ScaleH)) # height
309
+ fs.write(struct.pack('<I', self.FontSize)) # width
310
+ fs.write(struct.pack('<I', self.FontSize)) # height
311
311
  fs.write(struct.pack('<I', self.CharsCount)) # CharsCount
312
312
 
313
313
  # 写入字符信息 - 根据新格式调整
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: turbine_lib
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: 仅支持Windows 32位Python的库
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
File without changes
File without changes