mirror of
https://github.com/johnwhitington/cpdf-source.git
synced 2025-06-05 22:09:39 +02:00
more
This commit is contained in:
@@ -388,8 +388,10 @@ let subset_font major minor tables indexToLocFormat subset encoding cmap loca mk
|
|||||||
if mem (string_of_tag tag) required_tables then
|
if mem (string_of_tag tag) required_tables then
|
||||||
tablesout := (tag, checkSum, i32sub offset !cut, ttlength)::!tablesout
|
tablesout := (tag, checkSum, i32sub offset !cut, ttlength)::!tablesout
|
||||||
else
|
else
|
||||||
|
if i < Array.length tables - 1 then
|
||||||
cut := i32add !cut (match tables.(i + 1) with (_, _, offset', _) -> i32sub offset' offset))
|
cut := i32add !cut (match tables.(i + 1) with (_, _, offset', _) -> i32sub offset' offset))
|
||||||
tables;
|
tables;
|
||||||
|
Printf.printf "*********** after iteri\n";
|
||||||
(* Reduce offsets by the reduction in header table size *)
|
(* Reduce offsets by the reduction in header table size *)
|
||||||
let header_size_reduction = i32ofi (16 * (Array.length tables - length !tablesout)) in
|
let header_size_reduction = i32ofi (16 * (Array.length tables - length !tablesout)) in
|
||||||
let glyf_table_size_reduction = ref 0l in
|
let glyf_table_size_reduction = ref 0l in
|
||||||
|
Reference in New Issue
Block a user