⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 creatett

📁 字体缩放显示
💻
字号:
#!/bin/csh# -*- mode:SH; -*-## This script creates series of bdf files from TTF file.### Please set up parameters## Font dpi:set DPI=96## TrueType files dir.set ttf_dir=~/ttf# TTF files, please specify only base name# Script will try to use BolD, Italic and BoldItalic versions of faceset FACES="ARIAL ARIBLK  ARIALN TAHOMA TIMES VERDANA"# Output codepage# koi8.r# windows.1251# iso8859.5# iso8859.2set LANG_ID=koi8.rforeach x ( 7 8 9 10 11 12 14 16 18 20 24 30 50 100 150)foreach z ( $FACES )set y = ${ttf_dir}/${z}## Simple face if( -e ${y}.TTF ) then     echo ${y} at ${x}pt     ./ttf2bdf  -m $LANG_ID -p $x -r $DPI ${y}.TTF | bdftopcf | compress > ${DPI}dpi/${z}${x}.pcf.Z endif## Bold face if( -e ${y}BD.TTF ) then    echo Bold ${y} at ${x}pt    ./ttf2bdf  -m $LANG_ID -p $x -r $DPI -w bold  ${y}BD.TTF | bdftopcf | compress > ${DPI}dpi/${z}bd${x}.pcf.Z endif## Italic face if( -e ${y}I.TTF ) then    echo Italic ${y} at ${x}pt    ./ttf2bdf  -m $LANG_ID -p $x -r $DPI -s o  ${y}I.TTF | bdftopcf | compress >${DPI}dpi/${z}i${x}.pcf.Z endif## Bold Italic face if( -e ${y}BI.TTF ) then    echo Bold Italic ${y} at ${x}pt    ./ttf2bdf  -m $LANG_ID -p $x -r $DPI -w bold -s o  ${y}BI.TTF | bdftopcf | compress > ${DPI}dpi/${z}bi${x}.pcf.Z endifend                                                                     endecho Creating fonts directory...cd ${DPI}dpimkfontdir

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -