fontisan 0.4.12 → 0.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fontisan/converters/woff2_encoder.rb +147 -242
- data/lib/fontisan/sfnt_font.rb +7 -2
- data/lib/fontisan/tables/head.rb +10 -0
- data/lib/fontisan/version.rb +1 -1
- data/lib/fontisan/woff2/directory.rb +37 -40
- data/lib/fontisan/woff2/encoder_rules.rb +66 -0
- data/lib/fontisan/woff2/glyf_loca_transform.rb +323 -0
- data/lib/fontisan/woff2/triplet_codec.rb +181 -0
- data/lib/fontisan/woff2.rb +3 -0
- data/lib/fontisan/woff_font.rb +5 -2
- metadata +4 -1
data/lib/fontisan/woff_font.rb
CHANGED
|
@@ -248,9 +248,12 @@ module Fontisan
|
|
|
248
248
|
|
|
249
249
|
# Get list of all table tags
|
|
250
250
|
#
|
|
251
|
-
#
|
|
251
|
+
# Returns plain UTF-8 Ruby Strings so callers can compare with literals
|
|
252
|
+
# without BinData::String encoding-sensitive eql? failures.
|
|
253
|
+
#
|
|
254
|
+
# @return [Array<String>] Array of table tag strings (UTF-8)
|
|
252
255
|
def table_names
|
|
253
|
-
table_entries.map(
|
|
256
|
+
table_entries.map { |entry| entry.tag.to_s.force_encoding("UTF-8") }
|
|
254
257
|
end
|
|
255
258
|
|
|
256
259
|
# Get parsed table instance
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fontisan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -719,10 +719,13 @@ files:
|
|
|
719
719
|
- lib/fontisan/version.rb.orig
|
|
720
720
|
- lib/fontisan/woff2.rb
|
|
721
721
|
- lib/fontisan/woff2/directory.rb
|
|
722
|
+
- lib/fontisan/woff2/encoder_rules.rb
|
|
723
|
+
- lib/fontisan/woff2/glyf_loca_transform.rb
|
|
722
724
|
- lib/fontisan/woff2/glyf_transformer.rb
|
|
723
725
|
- lib/fontisan/woff2/header.rb
|
|
724
726
|
- lib/fontisan/woff2/hmtx_transformer.rb
|
|
725
727
|
- lib/fontisan/woff2/table_transformer.rb
|
|
728
|
+
- lib/fontisan/woff2/triplet_codec.rb
|
|
726
729
|
- lib/fontisan/woff2_font.rb
|
|
727
730
|
- lib/fontisan/woff_font.rb
|
|
728
731
|
- scripts/compare_stack_aware.rb
|