Font size of 1/1024 pixel to fix non invertible matrix error
parent
03e41c7e81
commit
7941adc2aa
|
|
@ -110,7 +110,7 @@ module Squib
|
||||||
rule = embed.rules[key]
|
rule = embed.rules[key]
|
||||||
spacing = rule[:width] * Pango::SCALE
|
spacing = rule[:width] * Pango::SCALE
|
||||||
index = clean_str.index(key)
|
index = clean_str.index(key)
|
||||||
str.sub!(key, "<span size=\"0\">a<span letter_spacing=\"#{spacing.to_i}\">a</span>a</span>")
|
str.sub!(key, "<span size=\"1\">a<span letter_spacing=\"#{spacing.to_i}\">a</span>a</span>")
|
||||||
layout.markup = str
|
layout.markup = str
|
||||||
clean_str = layout.text
|
clean_str = layout.text
|
||||||
searches << { index: index, rule: rule }
|
searches << { index: index, rule: rule }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue