Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Staging:O
ttf-converter
fixraces.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fixraces.patch of Package ttf-converter
Index: ttf-converter-1.0.6/ttf-converter =================================================================== --- ttf-converter-1.0.6.orig/ttf-converter +++ ttf-converter-1.0.6/ttf-converter @@ -235,7 +235,7 @@ def fix_glyph_data(font, shift_unicode_v elif glyph.glyphname.startswith('char'): corrected_unicode = int(glyph.glyphname[4:]) elif glyph.glyphname.startswith('uni'): - corrected_unicode = int(glyph.glyphname[3:],16) + corrected_unicode = int(glyph.glyphname[3:], 16) else: continue @@ -346,9 +346,10 @@ def convert_bitmap_fonts(input_files, ar for filename in filenames[1:]: if filename.endswith('.gz'): with tempfile.NamedTemporaryFile(suffix='.pcf') as tmpfile: - gzipfile = gzip.open(filename) - print(filename, tmpfile.name) - tmpfile.write(gzipfile.read()) + with gzip.open(filename) as gzipfile: + print(filename, tmpfile.name) + tmpfile.write(gzipfile.read()) + tmpfile.flush() font.importBitmaps(tmpfile.name) else: font.importBitmaps(filename)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor