Files
news.gitea.happylizard.me/bin/gems/ttfunk-1.8.0/lib/ttfunk/table/cff/subr_index.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

25 lines
588 B
Ruby

# frozen_string_literal: true
module TTFunk
class Table
class Cff < TTFunk::Table
# CFF Subroutine index.
class SubrIndex < TTFunk::Table::Cff::Index
# Subroutine index biase. For correct subroutine selection the
# calculated bias must be added to the subroutine number operand before
# accessing the index.
# @return [Integer]
def bias
if items.length < 1240
107
elsif items.length < 33_900
1131
else
32_768
end
end
end
end
end
end