Skip to content

Commit

Permalink
Remove post table format 2.5, which has been deprecated in TTF since …
Browse files Browse the repository at this point in the history
…2000.
  • Loading branch information
practicingruby committed Sep 10, 2014
1 parent 2de046c commit f636633
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
17 changes: 11 additions & 6 deletions lib/ttfunk/table/post.rb
Expand Up @@ -64,11 +64,17 @@ def parse!
@min_mem_type1, @max_mem_type1 = read(32, "N2n2N*")

@subtable = case @format
when 0x00010000 then extend(Post::Format10)
when 0x00020000 then extend(Post::Format20)
when 0x00025000 then extend(Post::Format25)
when 0x00030000 then extend(Post::Format30)
when 0x00040000 then extend(Post::Format40)
when 0x00010000
extend(Post::Format10)
when 0x00020000
extend(Post::Format20)
when 0x00025000
raise NotImplementedError,
"Post format 2.5 is not supported by TTFunk"
when 0x00030000
extend(Post::Format30)
when 0x00040000
extend(Post::Format40)
end

parse_format!
Expand All @@ -84,6 +90,5 @@ def parse_format!

require 'ttfunk/table/post/format10'
require 'ttfunk/table/post/format20'
require 'ttfunk/table/post/format25'
require 'ttfunk/table/post/format30'
require 'ttfunk/table/post/format40'
23 changes: 0 additions & 23 deletions lib/ttfunk/table/post/format25.rb

This file was deleted.

0 comments on commit f636633

Please sign in to comment.