;;; vflibcap-ultrapoint -- -*- mode: lisp; -*-

;; Copyright (C) 2000 Daiki Ueno

;; Author: Daiki Ueno <ueno@unixuser.org>
;; Created: 2000/05/22

;; This file is part of UltraPoint.

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.

;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

(define-default  VFlib
  (extension-hints (".bdf" bdf) (".pfa" type1) (".pfb" type1) (".pcf" pcf)
		   (".ttf" truetype) (".ttc" truetype))
  (implicit-font-classes "pcf" "bdf")
  (uncompression-programs  (".Z" "zcat") (".gz" "gzip -cd"))
  (code-conversion-files  
   "iso8859-1_unicode.ccv" "iso8859-2_unicode.ccv" "iso8859-3_unicode.ccv"
   "iso8859-4_unicode.ccv" "iso8859-5_unicode.ccv" "iso8859-6_unicode.ccv"
   "iso8859-7_unicode.ccv" "iso8859-8_unicode.ccv" "iso8859-9_unicode.ccv"
   "iso8859-10_unicode.ccv" "iso8859-13_unicode.ccv" 
   "iso8859-14_unicode.ccv" "iso8859-15_unicode.ccv"
   "jisx0208_unicode.ccv" "ksc5601_unicode.ccv" "gb2312_unicode.ccv"))

(define-default  pcf
  (font-directories  "/usr/X11R6/lib/X11/fonts//")
  (compression-extensions ".gz" ".Z")
  (properties ("FONT_CLASS" "PCF"))  )

(define-default truetype
  (font-directories "/usr/X11R6/lib/X11/fonts/TrueType//")
  (properties ("FONT_CLASS" "TrueType")))

(define-macro  iso8859_1:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "ISO8859-1") (encoding "ISO") (hinting "on"))

(define-font iso8859_1:n:t
  iso8859_1:n:ttf (font-file "lt1-r-omega-serif.ttf"))
(define-font iso8859_1:nI:t
  iso8859_1:n:ttf (font-file "lt1-i-omega-serif.ttf"))
(define-font iso8859_1:nB:t
  iso8859_1:n:ttf (font-file "lt1-b-omega-serif.ttf"))
(define-font iso8859_1:nBI:t
  iso8859_1:n:ttf (font-file "lt1-bi-omega-serif.ttf"))

(define-macro  iso8859_2:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "ISO8859-2") (encoding "ISO") (hinting "on"))

(define-font iso8859_2:n:t
  iso8859_2:n:ttf (font-file "lt2-r-omega-serif.ttf"))
(define-font iso8859_2:nI:t
  iso8859_2:n:ttf (font-file "lt2-i-omega-serif.ttf"))
(define-font iso8859_2:nB:t
  iso8859_2:n:ttf (font-file "lt2-b-omega-serif.ttf"))
(define-font iso8859_2:nBI:t
  iso8859_2:n:ttf (font-file "lt2-bi-omega-serif.ttf"))

(define-macro  iso8859_3:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "ISO8859-3") (encoding "ISO") (hinting "on"))

(define-font iso8859_3:n:t
  iso8859_3:n:ttf (font-file "lt3-r-omega-serif.ttf"))
(define-font iso8859_3:nI:t
  iso8859_3:n:ttf (font-file "lt3-i-omega-serif.ttf"))
(define-font iso8859_3:nB:t
  iso8859_3:n:ttf (font-file "lt3-b-omega-serif.ttf"))
(define-font iso8859_3:nBI:t
  iso8859_3:n:ttf (font-file "lt3-bi-omega-serif.ttf"))

(define-macro  iso8859_4:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "ISO8859-4") (encoding "ISO") (hinting "on"))

(define-font iso8859_4:n:t
  iso8859_4:n:ttf (font-file "lt4-r-omega-serif.ttf"))
(define-font iso8859_4:nI:t
  iso8859_4:n:ttf (font-file "lt4-i-omega-serif.ttf"))
(define-font iso8859_4:nB:t
  iso8859_4:n:ttf (font-file "lt4-b-omega-serif.ttf"))
(define-font iso8859_4:nBI:t
  iso8859_4:n:ttf (font-file "lt4-bi-omega-serif.ttf"))

(define-macro  iso8859_5:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "ISO8859-5") (encoding "ISO") (hinting "on"))

(define-font iso8859_5:n:t
  iso8859_5:n:ttf (font-file "lt5-r-omega-serif.ttf"))
(define-font iso8859_5:nI:t
  iso8859_5:n:ttf (font-file "lt5-i-omega-serif.ttf"))
(define-font iso8859_5:nB:t
  iso8859_5:n:ttf (font-file "lt5-b-omega-serif.ttf"))
(define-font iso8859_5:nBI:t
  iso8859_5:n:ttf (font-file "lt5-bi-omega-serif.ttf"))

(define-macro  jisx0208:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "JISX0208") (encoding "ISO2022") (hinting "on"))

(define-font jisx0208:n:t
  jisx0208:n:ttf (font-file "dfhsmw3.ttc"))
(define-font jisx0208:nI:t
  jisx0208:n:ttf (font-file "dfhsmw3.ttc"))
(define-font jisx0208:nB:t
  jisx0208:n:ttf (font-file "dfhsmw7.ttc"))
(define-font jisx0208:nBI:t
  jisx0208:n:ttf (font-file "dfhsmw7.ttc"))

(define-macro  ksc5601:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "KSC5601") (encoding "ISO2022") (hinting "on"))

(define-font ksc5601:n:t
  ksc5601:n:ttf (font-file "cyberbit.ttf"))
(define-font ksc5601:nI:t
  ksc5601:n:ttf (font-file "cyberbit.ttf"))
(define-font ksc5601:nB:t
  ksc5601:n:ttf (font-file "cyberbit.ttf"))
(define-font ksc5601:nBI:t
  ksc5601:n:ttf (font-file "cyberbit.ttf"))

(define-macro  gb2312:n:ttf
  (font-class truetype) (platform-id "microsoft") 
  (character-set "GB2312") (encoding "ISO2022") (hinting "on"))

(define-font gb2312:n:t
  gb2312:n:ttf (font-file "gkai00mp.ttf"))
(define-font gb2312:nI:t
  gb2312:n:ttf (font-file "gkai00mp.ttf"))
(define-font gb2312:nB:t
  gb2312:n:ttf (font-file "gbsn00lp.ttf"))
(define-font gb2312:nBI:t
  gb2312:n:ttf (font-file "gbsn00lp.ttf"))
