dice/0040755000175000017500000000000007427342330010540 5ustar vossvossdice/README~0100644000175000017500000000063207427335472011625 0ustar vossvossdice - a Metafont font with six dice images These fonts contain only the characters "1", "2", "3", "4", "5", and "6", which are designed as dice. dicetest.tex - example TeX file dicedrv.mf - driver file, used by dice{10,12,15}.mf dice10.mf - 10pt version of the dice font dice12.mf - 12pt version of the dice font dice15.mf - 15pt version of the dice font Jochen Voss dice/README0100644000175000017500000000114407427342330011415 0ustar vossvossdice - a Metafont font with six dice images These fonts contain only the characters "1", "2", "3", "4", "5", and "6", which are designed as dice. dicelatest.tex - example LaTeX file dicetest.tex - example plain TeX file dicedrv.mf - driver file, used by dice{10,12,15}.mf dice10.mf - 10pt version of the dice font dice12.mf - 12pt version of the dice font dice15.mf - 15pt version of the dice font jvdice.sty - LaTeX style file (defines the \jvdice font command) ldiceenc.def - LaTeX "Ldice" font encoding Ldicejvdi.fd - LaTeX font description file Jochen Voss dice/jvdice10.mf0100644000175000017500000000162107427336437012501 0ustar vossvoss% jvdice10.mf - 10pt version of the dice font % % copyright 2002 Jochen Voss % % 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 of the License, 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 this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA mode_setup; em#:=10pt#; thin#:=0.3pt#; corner#:=0.3pt#; eye#:=2pt#; border#:=0.55pt#; input dicedrv bye. dice/jvdice12.mf0100644000175000017500000000162407427336443012503 0ustar vossvoss% jvdice12.mf - 12pt version of the dice font % % copyright 2002 Jochen Voss % % 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 of the License, 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 this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA mode_setup; em#:=12pt#; thin#:=0.32pt#; corner#:=0.36pt#; eye#:=2.4pt#; border#:=1.2pt#; input dicedrv bye. dice/Makefile0100644000175000017500000000041607427341607012204 0ustar vossvossall: jvdice10.tfm jvdice12.tfm jvdice15.tfm jvdice%.tfm: jvdice%.mf mktextfm $@ .PHONY: clean clean: rm -f jvdice10.*gf jvdice10.*pk rm -f jvdice12.*gf jvdice12.*pk rm -f jvdice15.*gf jvdice15.*pk rm -f *.tfm *.log *.dvi dicelatest.aux distclean: clean rm -f *~ dice/dicedrv.mf0100644000175000017500000000506007427335012012501 0ustar vossvoss% dice.mf - driver file for the dice fonts % % copyright 2002 Jochen Voss % % 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 of the License, 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 this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA jvdd#:=(em#-3*eye#)/3; define_pixels(em,thin,corner,eye,jvdd,border); def prepare = % boundary x7=x8=border; x1=x6=corner+border; x2=x5=em-corner+border; x3=x4=em+border; y1=y2=0; y3=y8=corner; y4=y7=em-corner; y5=y6=em; %eyes x9=em/2+border; x10=x11=x12=jvdd+.5eye+border; x13=x14=x15=em-jvdd-.5eye+border; y10=y13=jvdd+.5eye; y9=y11=y14=em/2; y12=y15=em-jvdd-.5eye; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); enddef; def drawbox = pickup pencircle scaled thin; draw z1--z2..z3--z4..z5--z6..z7--z8..cycle; enddef; beginchar("1",em#+2border#,em#+border#,border#); "one eye"; prepare; drawbox; pickup pencircle scaled eye; draw z9--z9; endchar; beginchar("2",em#+2border#,em#+border#,border#); "two eyes"; prepare; drawbox; pickup pencircle scaled eye; draw z10--z10; draw z15--z15; endchar; beginchar("3",em#+2border#,em#+border#,border#); "three eyes"; prepare; drawbox; pickup pencircle scaled eye; draw z9--z9; draw z10--z10; draw z15--z15; endchar; beginchar("4",em#+2border#,em#+border#,border#); "four eyes"; prepare; drawbox; pickup pencircle scaled eye; draw z10--z10; draw z13--z13; draw z15--z15; draw z12--z12; endchar; beginchar("5",em#+2border#,em#+border#,border#); "five eyes"; prepare; drawbox; pickup pencircle scaled eye; draw z9--z9; draw z10--z10; draw z13--z13; draw z15--z15; draw z12--z12; endchar; beginchar("6",em#+2border#,em#+border#,border#); "six eyes"; prepare; drawbox; pickup pencircle scaled eye; draw z10--z10; draw z11--z11; draw z12--z12; draw z13--z13; draw z14--z14; draw z15--z15; endchar; font_size em#; font_quad em#; font_normal_space eye#; font_identifier "dice"; font_coding_scheme "123456"; dice/jvdice15.mf0100644000175000017500000000162207427336451012503 0ustar vossvoss% jvdice15.mf - 15pt version of the dice font % % copyright 2002 Jochen Voss % % 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 of the License, 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 this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA mode_setup; em#:=15pt#; thin#:=0.38pt#; corner#:=0.45pt#; eye#:=3pt#; border#:=0.7pt#; input dicedrv bye. dice/dicetest.tex0100644000175000017500000000034007427336377013076 0ustar vossvoss\nopagenumbers \font\dicea=jvdice10 \font\diceb=jvdice12 \font\dicec=jvdice15 \font\textb=cmr12 \font\textc=cmr15 six{\dicea 12 3456}dice\par \textb seven{\diceb 31415}dice\par \textc eleven{\dicec 42444134464}dice\par \bye dice/ldiceenc.def0100644000175000017500000000021507427337405012770 0ustar vossvoss\ProvidesFile{ldiceenc.def}[2002/02/03 local dice font encoding] \DeclareFontEncoding{Ldice}{}{} \DeclareFontSubstitution{Ldice}{jvdi}{m}{n} dice/Ldicejvdi.fd0100644000175000017500000000023207427337434012753 0ustar vossvoss\ProvidesFile{dice.fd}[2002/02/03 dice images] \DeclareFontFamily{Ldice}{jvdi}{} \DeclareFontShape{Ldice}{jvdi}{m}{n}{% <10> <12> <15> gen * jvdice }{} dice/dicelatest.tex0100644000175000017500000000033307427342010013372 0ustar vossvoss\documentclass{article} \pagestyle{empty} \usepackage{jvdice} \begin{document} six\jvdice{12 3456}dice\par \fontsize{12}{12}seven\jvdice{31415}dice\par \fontsize{15}{12}eleven\jvdice{42444134464}dice\par \end{document} dice/jvdice.sty0100644000175000017500000000164307427341363012553 0ustar vossvoss% Copyright 2002 Jochen Voss % % This package 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 of the License, or % (at your option) any later version. % % This package 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 this program; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{jvdice}[2002/02/03 v0.1 dice fonts, Jochen Voss] \input{ldiceenc.def} \DeclareTextFontCommand{\jvdice}{% \fontencoding{Ldice}\fontfamily{jvdi}\selectfont}