403Webshell
Server IP : 139.59.63.204  /  Your IP : 216.73.217.62
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/abyogasms.com/vendor/tecnickcom/tc-lib-pdf-font/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/abyogasms.com/vendor/tecnickcom/tc-lib-pdf-font/util/otf2ttf.ff
#!/usr/bin/env fontforge

# FontForge script used to convert Noto CJK OTF fonts into TTF format
# FROM: https://gist.github.com/mojavelinux/c74162d44ca77d1a7c25

# PDF Flags
# * 0x90  - Neither OpenType or Apple
# * 0x800 - Generate old-style 'kern' table
# * 0x08  - Exclude TrueType instructions
genflags = 0x90 + 0x08 + 0x800

src_file = $1
dst_file = $1:r + ".ttf"

Open(src_file)
CIDFlatten()
SelectAll()
ClearInstrs()
SelectNone()

# Remove glyphs we'll later truncate to get under glyph limit
SelectMore(0u1f190,0u1f199)
Clear()
SelectNone()

Generate(dst_file, "", genflags)
Close()

Open(dst_file)

# Add missing space glyph
Select(0u00a0)
Copy()
Select(0u0020)
Paste()
SetWidth(0)
SelectNone()

# select lesser range of glyphs
#SelectMore(0u0020,0uffee)
#SelectInvert()
#Clear()
#SelectNone()

Generate(dst_file, "", genflags)
Close()

Youez - 2016 - github.com/yon3zu
LinuXploit