mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
hb-graphite now no longer has -ve advances within clusters. Fix infinite loop in tag_to_script(). python fixed to use tag_to_script and allow hbtestfont to be passed font files, where fontconfig knows about them.
This commit is contained in:
1 parent
e5bed0a37f
commit
3109a86add
4 files changed
+10
-5
No files matched your search
@@ -41,7 +41,7 @@ cdef extern from "hb-language.h" :
|
||||
char * hb_language_to_string(hb_language_t language)
|
||||
|
||||
cdef extern from "hb-ot-tag.h" :
|
||||
hb_script_t hb_ot_tag_to_script (char *sname)
|
||||
hb_script_t hb_ot_tag_to_script (hb_tag_t tag)
|
||||
|
||||
cdef extern from "hb-buffer.h" :
|
||||
ctypedef struct hb_buffer_t :
|
||||
@@ -141,7 +141,7 @@ cdef class buffer :
|
||||
cdef hb_script_t scriptnum
|
||||
|
||||
language = hb_language_from_string(lang)
|
||||
scriptnum = hb_ot_string_to_script(script)
|
||||
scriptnum = hb_ot_tag_to_script(hb_tag_from_string(script))
|
||||
hb_buffer_set_script(self.buffer, scriptnum)
|
||||
hb_buffer_set_language(self.buffer, language)
|
||||
|
||||
|
||||
@@ -20,7 +20,11 @@ p.add_option('-d', '--debug', action='store_true', help="Output trace info")
|
||||
p.add_option('--nogui', action='store_true', help="Don't display a gui")
|
||||
(opts, args) = p.parse_args()
|
||||
|
||||
fpat = opts.font + ":weight="
|
||||
if opts.font.lower().endswith(".ttf") :
|
||||
fpat = ":file="
|
||||
else :
|
||||
fpat = ""
|
||||
fpat += opts.font + ":weight="
|
||||
fpat += "bold" if opts.bold else "medium"
|
||||
fpat += ":slant="
|
||||
fpat += "italic" if opts.italic else "roman"
|
||||
|
||||
Reference in new issue
Block a user