Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/vajra.id/public_html/application/third_party/dompdf/lib/ttf2ufm/src/other/ |
Upload File : |
#!/usr/bin/perl # # Copyright (c) 2000 by Sergey Babkin # (see COPYRIGHT for full copyright notice) # # script to calculate the total number of stems used by the # glyphs in case if stems are always pushed to the stack and # never popped (as X11 does) $insubrs = 0; $inchars = 0; while(<>) { if(/\/Subrs/) { $insubrs = 1; } elsif(/\/CharStrings/) { $insubrs = 0; $inchars = 1; } if($insubrs && /^dup (\d+)/) { $cursubr = $1; $substems[$cursubr] = 0; } elsif (/^dup (\d+) \/(\S+) put/) { $codeof{$2} = $1; } if($inchars) { if(/^\/(\S+)\s+\{/) { $curchar = $1; $charstems = 0; } elsif( /endchar/ ) { printf("%d:%s\t%d\n", $codeof{$curchar}, $curchar, $charstems); } elsif( /(\d+)\s+4\s+callsubr/) { $charstems += $substems[$1+0]; } } if(/[hv]stem3/) { if($insubrs) { $substems[$cursubr] += 3; } elsif($inchars) { $charstems += 3; } } elsif( /[hv]stem/ ) { if($insubrs) { $substems[$cursubr]++; } elsif($inchars) { $charstems++; } } }