src/Pure/Tools/fontforge.scala
changeset 71601 97ccf48c2f0c
parent 71163 b5822f4c3fde
child 75393 87ebf5a50283
equal deleted inserted replaced
71600:64aad1e46f98 71601:97ccf48c2f0c
    36       else if (c == '\\') "\\\\"
    36       else if (c == '\\') "\\\\"
    37       else c.toString
    37       else c.toString
    38     }
    38     }
    39 
    39 
    40     if (s.nonEmpty && s(0) == '\\') err('\\')
    40     if (s.nonEmpty && s(0) == '\\') err('\\')
    41     s.iterator.map(escape(_)).mkString(q.toString, "", q.toString)
    41     s.iterator.map(escape).mkString(q.toString, "", q.toString)
    42   }
    42   }
    43 
    43 
    44   def file_name(path: Path): Script = string(File.standard_path(path))
    44   def file_name(path: Path): Script = string(File.standard_path(path))
    45 
    45 
    46 
    46 
   119           fontversion = fontversion1)
   119           fontversion = fontversion1)
   120       }
   120       }
   121     }
   121     }
   122 
   122 
   123     def set: Script =
   123     def set: Script =
   124       List(fontname, familyname, fullname, weight, copyright, fontversion).map(string(_)).
   124       List(fontname, familyname, fullname, weight, copyright, fontversion).map(string).
   125         mkString("SetFontNames(", ",", ")")
   125         mkString("SetFontNames(", ",", ")")
   126   }
   126   }
   127 
   127 
   128   def font_names(path: Path): Font_Names =
   128   def font_names(path: Path): Font_Names =
   129   {
   129   {