]> matita.cs.unibo.it Git - helm.git/commitdiff
bugfix: rely on byte count instead of mixing byte and character count
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 1 Jun 2006 09:32:12 +0000 (09:32 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 1 Jun 2006 09:32:12 +0000 (09:32 +0000)
helm/software/matita/gtkmathview.matita.conf.xml.in
helm/software/matita/matitaGui.ml

index 704ca13ef79581d123ce39c37030fa873e01cb3c..5935eaafc118b3c442ed35505a7733941f445f84 100644 (file)
     </section>
   </section>
 -->
+<!--
+  <section name="gtk-backend">
+    <section name="pango-default-shaper">
+      <section name="variants">
+       <section name="normal">
+         <key name="family">courier</key>
+       </section>
+       <section name="italic">
+         <key name="family">courier</key>
+       </section>
+      </section>
+    </section>
+  </section>
+-->
 </math-engine-configuration>
index 1f170cb912592b955a85a1294fcb2632f7571be1..b1b2a6ad3fa683c2856a9f4226bd547077534365 100644 (file)
@@ -903,7 +903,7 @@ class gui () =
         source_buffer#insert ~iter:(source_buffer#get_iter_at_mark `INSERT) s
       in
       let get_ligature word =
-        let len = MatitaGtkMisc.utf8_string_length word in
+        let len = String.length word in
         let aux_tex () =
           try
             for i = len - 1 downto 0 do