Advertisement
akovia

convert2tff step though

Jul 30th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. + find /home/akovia/bin/MyFontDownloader/bin/MyFonts/ -type f -print0
  2.  
  3. + xargs -0 '-I{}' mv '{}' '{}.ttf'
  4.  
  5. # this will reencode the fonts to utf8, which we can then convert to otf using transtype pro 3 if we wish
  6. ./convert2ttf
  7. read
  8. ++ read
  9.  
  10. + ./convert2ttf
  11. =============================================================
  12. + trap read debug
  13. read
  14. ++ read
  15.  
  16. dirname $1)
  17. dirname $1
  18. ++ dirname '/*.ttf'
  19. + PATHNAME=/
  20. read
  21. ++ read
  22.  
  23. basename $1)
  24. basename $1
  25. ++ basename '/*.ttf'
  26. + FONTFILE='*.ttf'
  27. read
  28. ++ read
  29.  
  30. + FIRSTLTR='*'
  31. read
  32. ++ read
  33.  
  34. + FIRSTLOW='*'
  35. read
  36. ++ read
  37.  
  38. + IFS=-
  39. + read -a FONTFAM
  40. read
  41. ++ read
  42.  
  43. + LTRPATH='//*'
  44. read
  45. ++ read
  46.  
  47. + FAMPATH='//*/*.ttf[0]'
  48. + test -f '/*.ttf'
  49. read
  50. ++ read
  51.  
  52. + (( b++ ))
  53. #::::::::::::::::::::::::::::::::::::::::: CLEANUP ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  54. # Clean Up temp fonts
  55. rm "$TTFTEMP"/fontx*.ttf
  56. read
  57. ++ read
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement