366 " src: url('" + make_url(entry.path.base_name) + "') format('truetype');") ::: |
366 " src: url('" + make_url(entry.path.base_name) + "') format('truetype');") ::: |
367 (if (entry.is_bold) List(" font-weight: bold;") else Nil) ::: |
367 (if (entry.is_bold) List(" font-weight: bold;") else Nil) ::: |
368 (if (entry.is_italic) List(" font-style: italic;") else Nil) ::: |
368 (if (entry.is_italic) List(" font-style: italic;") else Nil) ::: |
369 List("}")) |
369 List("}")) |
370 |
370 |
371 ("/* Isabelle fonts */" :: Isabelle_Fonts.fonts(html = true).map(font_face(_))).mkString("\n\n") |
371 ("/* Isabelle fonts */" :: Isabelle_Fonts.fonts(html = true).map(font_face(_))) |
|
372 .mkString("", "\n\n", "\n") |
372 } |
373 } |
373 |
374 |
374 |
375 |
375 /* document directory */ |
376 /* document directory */ |
376 |
377 |
377 def isabelle_css: Path = Path.explode("~~/etc/isabelle.css") |
378 def isabelle_css: Path = Path.explode("~~/etc/isabelle.css") |
378 |
379 |
379 def write_isabelle_css(dir: Path, make_url: String => String = fonts_dir("fonts")) |
380 def write_isabelle_css(dir: Path, make_url: String => String = fonts_dir("fonts")) |
380 { |
381 { |
381 File.write(dir + isabelle_css.base, |
382 File.write(dir + isabelle_css.base, |
382 fonts_css(make_url) + "\n\n\n" + File.read(isabelle_css)) |
383 fonts_css(make_url) + "\n\n" + File.read(isabelle_css)) |
383 } |
384 } |
384 |
385 |
385 def init_dir(dir: Path) |
386 def init_dir(dir: Path) |
386 { |
387 { |
387 Isabelle_System.mkdirs(dir) |
388 Isabelle_System.mkdirs(dir) |