Font size of 1/1024 pixel to fix non invertible matrix error

dev
Andy Meneely 2015-03-31 21:15:06 -04:00
parent 03e41c7e81
commit 7941adc2aa
1 changed files with 1 additions and 1 deletions

View File

@ -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 }