File: width_calculator.rb

package info (click to toggle)
ruby-pdf-reader 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,232 kB
  • ctags: 574
  • sloc: ruby: 8,424; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
# coding: utf-8

# PDF files may define fonts in a number of ways. Each approach means we must
# calculate glyph widths differently, so this set of classes conform to an
# interface that will perform the appropriate calculations.

require 'pdf/reader/width_calculator/built_in'
require 'pdf/reader/width_calculator/composite'
require 'pdf/reader/width_calculator/true_type'
require 'pdf/reader/width_calculator/type_zero'
require 'pdf/reader/width_calculator/type_one_or_three'