From f8eda54904065f5f259e8702c1b0c821335df27f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 8 May 2011 23:21:03 +0000 Subject: cantarell (8may11) git-svn-id: svn://tug.org/texlive/trunk@22361 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/cantarell/Makefile | 217 +++++++++++++++++++++ Master/texmf-dist/source/cantarell/README | 22 +++ .../texmf-dist/source/cantarell/cantarell-drv.tex | 137 +++++++++++++ .../source/cantarell/cantarell-fixlatin.etx | 75 +++++++ .../source/cantarell/cantarell-fixtextcomp.etx | 137 +++++++++++++ .../texmf-dist/source/cantarell/cantarell-map.tex | 28 +++ .../source/cantarell/cantarell-reglyph.tex | 71 +++++++ .../source/cantarell/cantarell-samples.pdf | Bin 0 -> 103376 bytes .../source/cantarell/cantarell-samples.tex | 63 ++++++ Master/texmf-dist/source/cantarell/cantarell.pdf | Bin 0 -> 73717 bytes Master/texmf-dist/source/cantarell/cantarell.tex | 173 ++++++++++++++++ Master/texmf-dist/source/cantarell/sfd2type1.pe | 22 +++ 12 files changed, 945 insertions(+) create mode 100644 Master/texmf-dist/source/cantarell/Makefile create mode 100644 Master/texmf-dist/source/cantarell/README create mode 100644 Master/texmf-dist/source/cantarell/cantarell-drv.tex create mode 100644 Master/texmf-dist/source/cantarell/cantarell-fixlatin.etx create mode 100644 Master/texmf-dist/source/cantarell/cantarell-fixtextcomp.etx create mode 100644 Master/texmf-dist/source/cantarell/cantarell-map.tex create mode 100644 Master/texmf-dist/source/cantarell/cantarell-reglyph.tex create mode 100644 Master/texmf-dist/source/cantarell/cantarell-samples.pdf create mode 100644 Master/texmf-dist/source/cantarell/cantarell-samples.tex create mode 100644 Master/texmf-dist/source/cantarell/cantarell.pdf create mode 100644 Master/texmf-dist/source/cantarell/cantarell.tex create mode 100644 Master/texmf-dist/source/cantarell/sfd2type1.pe (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/cantarell/Makefile b/Master/texmf-dist/source/cantarell/Makefile new file mode 100644 index 00000000000..ff2ffbcddf4 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/Makefile @@ -0,0 +1,217 @@ +## Makefile +## Copyright 2011 Mohamed El Morabity +# +# This work may be distributed and/or modified under the conditions of the LaTeX +# Project Public License, either version 1.3 of this license or (at your option) +# any later version. The latest version of this license is in +# http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +# distributions of LaTeX version 2005/12/01 or later. +# +# This work has the LPPL maintenance status `maintained'. +# +# The Current Maintainer of this work is Mohamed El Morabity +# +# This work consists of all files listed in manifest.txt. + +###################### +# Fonts informations # +###################### + +FONT_NAME = cantarell +FOUNDRY = public +FONT_CODES = fca + +# Supported LaTeX encodings +SUPPORTED_ENCODINGS = ot1 t1 ts1 +# Supported LaTeX encodings containing small caps +SUPPORTED_SC_ENCODINGS = $(filter-out ts1,$(SUPPORTED_ENCODINGS)) +# Custom encodings provided +CUSTOM_ENCODINGS = $(FONT_NAME)-fixlatin $(FONT_NAME)-fixtextcomp + + +##################### +# Installation root # +##################### + +TEXMFHOME = $(shell kpsexpand '$$TEXMFHOME') + + +########### +# Archive # +########### + +ARCHIVE_ROOT = $(FONT_NAME) +ARCHIVE = $(FONT_NAME).zip + + +########### +# Sources # +########### + +FONTFORGE_FILES = $(wildcard *.sfd) + +# Fontinst files +FONTINST_FILE = $(FONT_NAME)-drv.tex +FONTINST_REGLYPH_FILE = $(FONT_NAME)-reglyph.tex +FONTINST_MAP_FILE = $(FONT_NAME)-map.tex + +# Custom Fontinst encoding files +ETX_FILES = $(CUSTOM_ENCODINGS:=.etx) + +STYLE_FILES = $(wildcard *.sty) + +DOCUMENTATION = $(FONT_NAME).tex $(FONT_NAME).pdf $(FONT_NAME)-samples.tex $(FONT_NAME)-samples.pdf README + +# Files to be installed in texmf/source +BUILD_FILES = $(FONTINST_FILE) $(FONTINST_REGLYPH_FILE) $(FONTINST_MAP_FILE) $(ETX_FILES) Makefile sfd2type1.pe $(DOCUMENTATION) + +# Source files to be installed +SOURCES_FILES = $(FONTFORGE_FILES) $(STYLE_FILES) $(BUILD_FILES) $(DOCUMENTATION) + + + +################### +# Generated files # +################### + +TYPE1_FILES = $(FONTFORGE_FILES:.sfd=.pfb) +AFM_FILES = $(TYPE1_FILES:.pfb=.afm) + +# Fontinst log file +FONTINST_REC_FILE = $(FONT_NAME)-rec.tex + +# Metrics files +PL_FILES = $(foreach e,$(SUPPORTED_ENCODINGS) $(CUSTOM_ENCODINGS:$(FONT_NAME)-%=%), \ + $(foreach f,$(FONTFORGE_FILES:.sfd=), \ + raw-$(e)-$(f).pl raw-$(e)-$(f)-Slanted.pl \ + ) \ + ) +TMP_MTX_FILES = $(PL_FILES:%.pl=%.mtx) $(PL_FILES:raw-%.pl=%.mtx) +VPL_FILES = $(foreach f,$(FONTFORGE_FILES:.sfd=), \ + $(foreach e,$(SUPPORTED_ENCODINGS), \ + $(e)-$(f).vpl $(e)-$(f)-Slanted.vpl \ + ) \ + $(foreach e,$(SUPPORTED_SC_ENCODINGS), \ + $(e)-$(f)-SmallCaps.vpl $(e)-$(f)-Slanted-SmallCaps.vpl \ + ) \ + ) +TFM_FILES = $(PL_FILES:.pl=.tfm) $(VPL_FILES:.vpl=.tfm) +VF_FILES = $(VPL_FILES:.vpl=.vf) + +MAP = $(FONT_NAME).map + +# Font definition files +FD_FILES = $(foreach e,$(SUPPORTED_ENCODINGS), \ + $(foreach f,$(FONT_CODES), \ + $(e)$(f).fd \ + ) \ + ) + +# Generated encoding files +ENC_FILES = $(SUPPORTED_ENCODINGS:%=$(FONT_NAME)-%.enc) $(CUSTOM_ENCODINGS:$(FONT_NAME)-%=$(FONT_NAME)-%.enc) + +# Generated files to be installed +GENERATED_FILES = $(TYPE1_FILES) $(AFM_FILES) $(TFM_FILES) $(VF_FILES) $(MAP) $(FD_FILES) $(ENC_FILES) + + + + +default: all + + +all: dist + + +dist: $(ARCHIVE) + + +%.pfb %.afm: %.sfd + fontforge sfd2type1.pe $< + + +%.tfm: %.pl + pltotf $< $@ + + +%.tfm: %.vpl + vptovf $^ $ + + +%.vf: %.vpl + vptovf $^ $@ + + +$(FONTINST_REC_FILE): $(TYPE1_FILES) $(AFM_FILES) $(ETX_FILES) $(FONTINST_FILE) $(FONTINST_REGLYPH_FILE) + latex $(FONTINST_FILE) + + +$(PL_FILES) $(VPL_FILES): $(FONTINST_REC_FILE) + + +$(MAP): $(FONTINST_REC_FILE) $(FONTINST_MAP_FILE) + latex $(FONTINST_MAP_FILE) + + +$(FD_FILES) $(ENC_FILES): $(MAP) + + +texmf-tree: clean-texmf-tree $(GENERATED_FILES) $(SOURCES_FILES) + mkdir -p $(ARCHIVE_ROOT)/doc/latex/$(FONT_NAME)/ + mkdir -p $(ARCHIVE_ROOT)/tex/latex/$(FONT_NAME)/ + mkdir -p $(ARCHIVE_ROOT)/fonts/{enc,map}/dvips/$(FONT_NAME)/ + mkdir -p $(ARCHIVE_ROOT)/fonts/{afm,tfm,truetype,type1,vf}/$(FOUNDRY)/$(FONT_NAME)/ + mkdir -p $(ARCHIVE_ROOT)/source/$(FONT_NAME)/ + cp -p $(DOCUMENTATION) $(ARCHIVE_ROOT)/doc/latex/$(FONT_NAME)/ + cp -p $(FD_FILES) $(STYLE_FILES) $(ARCHIVE_ROOT)/tex/latex/$(FONT_NAME)/ + cp -p $(ENC_FILES) $(ARCHIVE_ROOT)/fonts/enc/dvips/$(FONT_NAME)/ + cp -p $(MAP) $(ARCHIVE_ROOT)/fonts/map/dvips/$(FONT_NAME)/ + cp -p $(AFM_FILES) $(ARCHIVE_ROOT)/fonts/afm/$(FOUNDRY)/$(FONT_NAME)/ + cp -p $(TFM_FILES) $(ARCHIVE_ROOT)/fonts/tfm/$(FOUNDRY)/$(FONT_NAME)/ + cp -p $(TYPE1_FILES) $(ARCHIVE_ROOT)/fonts/type1/$(FOUNDRY)/$(FONT_NAME)/ + cp -p $(VF_FILES) $(ARCHIVE_ROOT)/fonts/vf/$(FOUNDRY)/$(FONT_NAME)/ + cp -p $(BUILD_FILES) $(ARCHIVE_ROOT)/source/$(FONT_NAME)/ + cp -p README $(ARCHIVE_ROOT) + cd $(ARCHIVE_ROOT) && find . -type f > manifest.txt + + +$(ARCHIVE): clean-texmf-tree texmf-tree + zip -r $@ $(ARCHIVE_ROOT) + + +install: texmf-tree + mkdir -p $(TEXMFHOME) + cp -a $(ARCHIVE_ROOT)/* $(TEXMFHOME) + texhash + updmap --enable Map=$(MAP) + + +uninstall: + $(RM) -r $(TEXMFHOME)/doc/latex/$(FONT_NAME)/ + $(RM) -r $(TEXMFHOME)/tex/latex/$(FONT_NAME)/ + $(RM) -r $(TEXMFHOME)/fonts/{enc,map}/dvips/$(FONT_NAME)/ + $(RM) -r $(TEXMFHOME)/fonts/{afm,tfm,truetype,type1,vf}/$(FOUNDRY)/$(FONT_NAME)/ + $(RM) -r $(TEXMFHOME)/source/$(FONT_NAME)/ + updmap --disable $(MAP) + texhash + + +clean: clean-texmf-tree + $(RM) $(TYPE1_FILES) $(AFM_FILES) + $(RM) $(FONTINST_REC_FILE) + $(RM) $(PL_FILES) $(TYPE1_FILES:.pfb=.pl) + $(RM) $(TMP_MTX_FILES) $(TYPE1_FILES:.pfb=.mtx) + $(RM) $(VPL_FILES) + $(RM) $(TFM_FILES) + $(RM) $(VF_FILES) + $(RM) $(MAP) + $(RM) $(FD_FILES) + $(RM) $(ENC_FILES) + $(RM) $(ARCHIVE) + $(RM) *~ *.log + + +clean-texmf-tree: + $(RM) -r $(ARCHIVE_ROOT) + + +.PHONY: clean clean-texmf-tree texmf-tree diff --git a/Master/texmf-dist/source/cantarell/README b/Master/texmf-dist/source/cantarell/README new file mode 100644 index 00000000000..19b323d4d0b --- /dev/null +++ b/Master/texmf-dist/source/cantarell/README @@ -0,0 +1,22 @@ +------------------------ + Cantarell, version 1.0 +------------------------ + +Cantarell is a contemporary Humanist sans serif designed by Dave Crossland and +Jakub Steiner. This font, delivered under the OFL version 1.1, is available on +The GNOME download server at +http://download.gnome.org/sources/cantarell-fonts/0.0/. + +This package provides support for this font in LaTeX. It includes Type 1 +versions of the fonts, converted for this package using FontForge from its +sources, for full support with Dvips. + +Installation and usage instructions are described in +doc/latex/cantarell/cantarell.pdf. + +This package is released under the LaTeX Project Public License, either version +1.3c or above, with the exception of the .pfb and .sfd files, released under the +Open Font License version 1.1. + +If you have comments about the package, please contact Mohamed El Morabity +(melmorabity AT fedoraproject DOT org). diff --git a/Master/texmf-dist/source/cantarell/cantarell-drv.tex b/Master/texmf-dist/source/cantarell/cantarell-drv.tex new file mode 100644 index 00000000000..48477321388 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-drv.tex @@ -0,0 +1,137 @@ +%% cantarell-drv.tex +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\input fontinst.sty + + +\setint{slant}{167} +\setint{smallcapsscale}{800} + +\substitutesilent{scit}{scsl} + + +\recordtransforms{cantarell-rec.tex} + + +\foreach(encoding){ot1,t1,ts1} + \transformfont{raw-\str{encoding}-Cantarell-Regular}{\reencodefont{\str{encoding}}{\fromafm{Cantarell-Regular}}} + \transformfont{raw-\str{encoding}-Cantarell-Regular-Slanted}{\slantfont{\int{slant}}\reencodefont{\str{encoding}}{\fromafm{Cantarell-Regular}}} + \transformfont{raw-\str{encoding}-Cantarell-Bold}{\reencodefont{\str{encoding}}{\fromafm{Cantarell-Bold}}} + \transformfont{raw-\str{encoding}-Cantarell-Bold-Slanted}{\slantfont{\int{slant}}\reencodefont{\str{encoding}}{\fromafm{Cantarell-Bold}}} +\endfor(encoding) + +\foreach(encoding){fixlatin,fixtextcomp} + \transformfont{raw-\str{encoding}-Cantarell-Regular}{\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Regular}}} + \transformfont{raw-\str{encoding}-Cantarell-Regular-Slanted}{\slantfont{\int{slant}}\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Regular}}} + \transformfont{raw-\str{encoding}-Cantarell-Bold}{\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Bold}}} + \transformfont{raw-\str{encoding}-Cantarell-Bold-Slanted}{\slantfont{\int{slant}}\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Bold}}} +\endfor(encoding) + +\input cantarell-reglyph + + +\fontinstcc +\def\fd_family#1#2#3{ + \a_toks{#3} + \edef\lowercase_file{\lowercase{ + \edef\noexpand\lowercase_file{#1#2.fd}}} + \lowercase_file + \open_out{\lowercase_file} + \out_line{\percent_char~Filename:~\lowercase_file} + \out_line{\percent_char~Created~by:~tex~\jobname} + \out_line{\percent_char~Created~using~fontinst~v\fontinstversion} + \out_line{} + \out_line{\percent_char~THIS~FILE~SHOULD~BE~PUT~IN~A~TEX~INPUTS~ + DIRECTORY} + \out_line{} + \out_line{\string\ProvidesFile{\lowercase_file}} + \out_lline{[ + \the\year/ + \ifnum10>\month0\fi\the\month/ + \ifnum10>\day0\fi\the\day\space + Fontinst~v\fontinstversion\space + font~definitions~for~#1/#2. + ]} + \out_line{} + %%% + \out_line{\string\expandafter\string\ifx\string\csname\space cantarell@scale\string\endcsname\string\relax} + \out_line{\space\space\string\let\string\cantarell@scale\string\@empty} + \out_line{\string\fi} + \out_line{} + %%% + \out_line{\string\DeclareFontFamily{#1}{#2}{\the\a_toks}} + { + \csname #1-#2\endcsname + \out_line{} + \let\do_shape=\substitute_shape + \csname #1-#2\endcsname + \let\do_shape=\remove_shape + \csname #1-#2\endcsname + } + \x_cs\g_let{#1-#2}\x_relax + \out_line{} + \out_line{\string\endinput} + \close_out{Font~definitions} +} +\normalcc + + +\installfonts +\installfamily{OT1}{fca}{} + +\installfont{ot1-Cantarell-Regular}{ot1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{ot1}{OT1}{fca}{m}{n}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Regular-Slanted}{ot1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{ot1}{OT1}{fca}{m}{sl}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Regular-SmallCaps}{ot1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{ot1c}{OT1}{fca}{m}{sc}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Regular-Slanted-SmallCaps}{ot1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{ot1c}{OT1}{fca}{m}{scsl}{<->\string\cantarell@scale} + +\installfont{ot1-Cantarell-Bold}{ot1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{ot1}{OT1}{fca}{b}{n}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Bold-Slanted}{ot1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{ot1}{OT1}{fca}{b}{sl}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Bold-SmallCaps}{ot1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{ot1c}{OT1}{fca}{b}{sc}{<->\string\cantarell@scale} +\installfont{ot1-Cantarell-Bold-Slanted-SmallCaps}{ot1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{ot1c}{OT1}{fca}{b}{scsl}{<->\string\cantarell@scale} +\endinstallfonts + + +\installfonts +\installfamily{T1}{fca}{} + +\installfont{t1-Cantarell-Regular}{t1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{t1}{T1}{fca}{m}{n}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Regular-Slanted}{t1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{t1}{T1}{fca}{m}{sl}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Regular-SmallCaps}{t1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{t1c}{T1}{fca}{m}{sc}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Regular-Slanted-SmallCaps}{t1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{t1c}{T1}{fca}{m}{scsl}{<->\string\cantarell@scale} + +\installfont{t1-Cantarell-Bold}{t1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{t1}{T1}{fca}{b}{n}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Bold-Slanted}{t1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{t1}{T1}{fca}{b}{sl}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Bold-SmallCaps}{t1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{t1c}{T1}{fca}{b}{sc}{<->\string\cantarell@scale} +\installfont{t1-Cantarell-Bold-Slanted-SmallCaps}{t1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{t1c}{T1}{fca}{b}{scsl}{<->\string\cantarell@scale} +\endinstallfonts + + +\installfonts +\installfamily{TS1}{fca}{} + +\installfont{ts1-Cantarell-Regular}{ts1-Cantarell-Regular,fixtextcomp-Cantarell-Regular,textcomp}{ts1}{TS1}{fca}{m}{n}{<->\string\cantarell@scale} +\installfont{ts1-Cantarell-Regular-Slanted}{ts1-Cantarell-Regular-Slanted,fixtextcomp-Cantarell-Regular-Slanted,textcomp}{ts1}{TS1}{fca}{m}{sl}{<->\string\cantarell@scale} +\installfontas{ts1-Cantarell-Regular}{TS1}{fca}{m}{sc}{<->\string\cantarell@scale} +\installfontas{ts1-Cantarell-Regular-Slanted}{TS1}{fca}{m}{scsl}{<->\string\cantarell@scale} + +\installfont{ts1-Cantarell-Bold}{ts1-Cantarell-Bold,fixtextcomp-Cantarell-Bold,textcomp}{ts1}{TS1}{fca}{b}{n}{<->\string\cantarell@scale} +\installfont{ts1-Cantarell-Bold-Slanted}{ts1-Cantarell-Bold-Slanted,fixtextcomp-Cantarell-Bold-Slanted,textcomp}{ts1}{TS1}{fca}{b}{sl}{<->\string\cantarell@scale} +\installfontas{ts1-Cantarell-Bold}{TS1}{fca}{b}{sc}{<->\string\cantarell@scale} +\installfontas{ts1-Cantarell-Bold-Slanted}{TS1}{fca}{b}{scsl}{<->\string\cantarell@scale} +\endinstallfonts + + +\endrecordtransforms +\bye diff --git a/Master/texmf-dist/source/cantarell/cantarell-fixlatin.etx b/Master/texmf-dist/source/cantarell/cantarell-fixlatin.etx new file mode 100644 index 00000000000..2f0ad8d6a36 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-fixlatin.etx @@ -0,0 +1,75 @@ +%% cantarell-fixlatin.etx +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\relax +\encoding + +% dbar +\setslot{dcroat} +\endsetslot + +% Ng +\setslot{Eng} +\endsetslot + +% ng +\setslot{eng} +\endsetslot + +% Tcedilla +\setslot{Tcommaaccent} +\endsetslot + +% tcedilla +\setslot{tcommaaccent} +\endsetslot + +% dotlessj +\setslot{uni0237} +\endsetslot + +% ringfitted +\setslot{ring} +\endsetslot + +% rangedash +\setslot{endash} +\endsetslot + +% punctdash +\setslot{emdash} +\endsetslot + +% ff +\setslot{uniFB00} +\endsetslot + +% fi +\setslot{uniFB01} +\endsetslot + +% fl +\setslot{uniFB02} +\endsetslot + +% ffi +\setslot{uniFB03} +\endsetslot + +% ffl +\setslot{uniFB04} +\endsetslot + +\endencoding diff --git a/Master/texmf-dist/source/cantarell/cantarell-fixtextcomp.etx b/Master/texmf-dist/source/cantarell/cantarell-fixtextcomp.etx new file mode 100644 index 00000000000..6eec480475d --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-fixtextcomp.etx @@ -0,0 +1,137 @@ +%% cantarell-fixtextcomp.etx +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\relax +\encoding + +% Needed to set vaxis variable +\setslot{parenleft} +\endsetslot + +% Needed to fake asteriskcentered +\setslot{asterisk} +\endsetslot + +% Needed to fake centigrade +\setslot{C} +\endsetslot + +% Needed to set descender variable +\setslot{g} +\endsetslot + +% Needed to fake openbracketleft +\setslot{bracketleft} +\endsetslot + +% Needed to fake openbracketright +\setslot{bracketright} +\endsetslot + +% capitalgreve, asciigrave +% Needed to fake asciigravedbl +\setslot{grave} +\endsetslot + +% Needed to fake bardbl +\setslot{bar} +\endsetslot + +% tildelow +\setslot{asciitilde} +\endsetslot + +% capitaldieresis, asciidieresis +\setslot{dieresis} +\endsetslot + +% capitalmacron, asciimacron +\setslot{macron} +\endsetslot + +% twosuperior +\setslot{uni00B2} +\endsetslot + +% threesuperior +\setslot{uni00B3} +\endsetslot + +% capitalacute, asciiacute +% Needed to fake asciiacutedbl +\setslot{acute} +\endsetslot + +% mu +\setslot{uni00B5} +\endsetslot + +% cedilla +\setslot{cedilla} +\endsetslot + +% onesuperior +\setslot{uni00B9} +\endsetslot + +% capitalcircumflex +\setslot{circumflex} +\endsetslot + +% capitalcaron, asciicaron +\setslot{caron} +\endsetslot + +% capitalbreve, asciibreve +\setslot{breve} +\endsetslot + +% capitaldotaccent +\setslot{dotaccent} +\endsetslot + +% capitalring +\setslot{ring} +\endsetslot + +% ogonek +\setslot{ogonek} +\endsetslot + +% capitaltilde +\setslot{tilde} +\endsetslot + +% capitalhungarumlaut +\setslot{hungarumlaut} +\endsetslot + +% Needed to fake twelveudash and threequartersemdash +\setslot{endash} +\endsetslot + +% quotesinglebase +\setslot{quotesinglebase} +\endsetslot + +% quotedblbase +\setslot{quotedblbase} +\endsetslot + +% euro +\setslot{Euro} +\endsetslot + +\endencoding diff --git a/Master/texmf-dist/source/cantarell/cantarell-map.tex b/Master/texmf-dist/source/cantarell/cantarell-map.tex new file mode 100644 index 00000000000..a674bbf62c7 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-map.tex @@ -0,0 +1,28 @@ +%% cantarell-map.etx +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\input finstmsc.sty + +\resetstr{PSfontsuffix}{.pfb} + +\foreach(encoding){ot1,t1,ts1} + \etxtoenc{\str{encoding}}{cantarell-\str{encoding}} +\endfor(encoding) + +\adddriver{dvips}{cantarell.map} +\input cantarell-rec.tex +\donedrivers + +\bye diff --git a/Master/texmf-dist/source/cantarell/cantarell-reglyph.tex b/Master/texmf-dist/source/cantarell/cantarell-reglyph.tex new file mode 100644 index 00000000000..29a07c3d5fa --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-reglyph.tex @@ -0,0 +1,71 @@ +%% cantarell-reglyph.tex +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\relax + + +\reglyphfonts + \reglyphfont{ot1-Cantarell-Regular}{raw-ot1-Cantarell-Regular} + \reglyphfont{ot1-Cantarell-Regular-Slanted}{raw-ot1-Cantarell-Regular-Slanted} + \reglyphfont{ot1-Cantarell-Bold}{raw-ot1-Cantarell-Bold} + \reglyphfont{ot1-Cantarell-Bold-Slanted}{raw-ot1-Cantarell-Bold-Slanted} +\endreglyphfonts + + +\reglyphfonts + \reglyphfont{t1-Cantarell-Regular}{raw-t1-Cantarell-Regular} + \reglyphfont{t1-Cantarell-Regular-Slanted}{raw-t1-Cantarell-Regular-Slanted} + \reglyphfont{t1-Cantarell-Bold}{raw-t1-Cantarell-Bold} + \reglyphfont{t1-Cantarell-Bold-Slanted}{raw-t1-Cantarell-Bold-Slanted} +\endreglyphfonts + +\reglyphfonts + \renameglyph{Ng}{Eng} + \renameglyph{dbar}{dcroat} + \renameglyph{ng}{eng} + \renameglyph{Tcedilla}{Tcommaaccent} + \renameglyph{tcedilla}{tcommaaccent} + \renameglyph{dotlessj}{uni0237} + \renameglyph{ff}{uniFB00} + \renameglyph{fi}{uniFB01} + \renameglyph{fl}{uniFB02} + \renameglyph{ffi}{uniFB03} + \renameglyph{ffl}{uniFB04} + + \reglyphfont{fixlatin-Cantarell-Regular}{raw-fixlatin-Cantarell-Regular} + \reglyphfont{fixlatin-Cantarell-Regular-Slanted}{raw-fixlatin-Cantarell-Regular-Slanted} + \reglyphfont{fixlatin-Cantarell-Bold}{raw-fixlatin-Cantarell-Bold} + \reglyphfont{fixlatin-Cantarell-Bold-Slanted}{raw-fixlatin-Cantarell-Bold-Slanted} +\endreglyphfonts + + +\reglyphfonts + \reglyphfont{ts1-Cantarell-Regular}{raw-ts1-Cantarell-Regular} + \reglyphfont{ts1-Cantarell-Regular-Slanted}{raw-ts1-Cantarell-Regular-Slanted} + \reglyphfont{ts1-Cantarell-Bold}{raw-ts1-Cantarell-Bold} + \reglyphfont{ts1-Cantarell-Bold-Slanted}{raw-ts1-Cantarell-Bold-Slanted} +\endreglyphfonts + +\reglyphfonts + \renameglyph{twosuperior}{uni00B2} + \renameglyph{threesuperior}{uni00B3} + \renameglyph{onesuperior}{uni00B9} + \renameglyph{mu}{uni00B5} + + \reglyphfont{fixtextcomp-Cantarell-Regular}{raw-fixtextcomp-Cantarell-Regular} + \reglyphfont{fixtextcomp-Cantarell-Regular-Slanted}{raw-fixtextcomp-Cantarell-Regular-Slanted} + \reglyphfont{fixtextcomp-Cantarell-Bold}{raw-fixtextcomp-Cantarell-Bold} + \reglyphfont{fixtextcomp-Cantarell-Bold-Slanted}{raw-fixtextcomp-Cantarell-Bold-Slanted} +\endreglyphfonts diff --git a/Master/texmf-dist/source/cantarell/cantarell-samples.pdf b/Master/texmf-dist/source/cantarell/cantarell-samples.pdf new file mode 100644 index 00000000000..8b4df023385 Binary files /dev/null and b/Master/texmf-dist/source/cantarell/cantarell-samples.pdf differ diff --git a/Master/texmf-dist/source/cantarell/cantarell-samples.tex b/Master/texmf-dist/source/cantarell/cantarell-samples.tex new file mode 100644 index 00000000000..6e53d4cfd6f --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell-samples.tex @@ -0,0 +1,63 @@ +%% cantarell-samples.tex +%% Copyright 2011 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\documentclass{article} + +\usepackage[francais,american]{babel} +\usepackage{cantarell} +\usepackage[T1,OT1]{fontenc} +\usepackage[utf8x]{inputenc} +\usepackage{microtype} +\usepackage{textcomp} + +\newcommand{\latinSample}{% + \foreignlanguage{francais}{% + Tous les êtres humains naissent libres et égaux en dignité et en droits. Ils sont doués de raison et de conscience et doivent agir les uns envers les autres dans un esprit de fraternité.% + }% +} + +\newcommand{\miscSample}{% + 0123456789 ff fi fl ffi ffl \textperthousand{} \textcopyright{} \textregistered{} \texttrademark{} \texteuro{} \textsterling{} \textyen% +} + +\newcommand{\fontSample}[2]{% + {\usefont{T1}{fca}{#1}{#2} \latinSample} + + {\fontfamily{fca}\fontseries{#1}\fontshape{#2}\selectfont\miscSample}\\% +} + +\begin{document} + +\section*{Cantarell Regular} + +\fontSample{m}{n} + +\fontSample{m}{sl} + +\fontSample{m}{sc} + +\fontSample{m}{scsl} + +\section*{Cantarell Bold} + +\fontSample{b}{n} + +\fontSample{b}{sl} + +\fontSample{b}{sc} + +\fontSample{b}{scsl} + +\end{document} diff --git a/Master/texmf-dist/source/cantarell/cantarell.pdf b/Master/texmf-dist/source/cantarell/cantarell.pdf new file mode 100644 index 00000000000..5cb0e33e225 Binary files /dev/null and b/Master/texmf-dist/source/cantarell/cantarell.pdf differ diff --git a/Master/texmf-dist/source/cantarell/cantarell.tex b/Master/texmf-dist/source/cantarell/cantarell.tex new file mode 100644 index 00000000000..535448d15c3 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/cantarell.tex @@ -0,0 +1,173 @@ +%% cantarell.tex +%% Copyright 2010 Mohamed El Morabity +% +% This work may be distributed and/or modified under the conditions of the LaTeX +% Project Public License, either version 1.3 of this license or (at your option) +% any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +% distributions of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\documentclass{article} + +\usepackage[american]{babel} +\usepackage{booktabs} +\usepackage[default]{cantarell} +\usepackage{microtype} +\usepackage{multirow} +\usepackage{path} +\usepackage{relsize} +\usepackage[colorlinks]{hyperref} + +\hypersetup{% + pdftitle={LaTeX support for Cantarell},% + pdfauthor={Mohamed El Morabity}% +}% + +\newcommand{\acronym}[1]{\textsc{\lowercase{#1}}} +\newcommand{\code}{\texttt} +\newcommand{\command}{\texttt} +\newcommand{\email}[1]{\href{mailto:#1}{\nolinkurl{#1}}} +\newcommand{\name}{} +\newcommand{\package}{\texttt} +\newcommand{\parameter}[1]{\textnormal{\textit{#1}}} +\newcommand{\program}{} + +\title{\LaTeX{} support for Cantarell\\\relsize{-1}Version~1.0} + +\author{Mohamed \name{El~Morabity}\\\email{melmorabity@fedoraproject.org}} + +\begin{document} + +\maketitle + +\tableofcontents + +\section{Introduction} + +Cantarell is a contemporary Humanist sans serif designed initially by Dave +\name{Crossland} and maintained by Jakub \name{Steiner} also. This font, +delivered under the \acronym{OFL} version~1.1, is available on the +\acronym{GNOME} download server~\cite{cantarell}. + +This package provides support for this font in \LaTeX{}. It includes Type~1 +versions of the fonts, converted from its sources using \program{FontForge}, for +full support with \program{Dvips}. + +\section{Installation} + +These directions assume that your \TeX{} distribution is +\acronym{TDS}-compliant. + +Once the \path|cantarell.zip| archive extracted: +\begin{enumerate} +\item Copy \path|doc/|, \path|fonts/|, \path|source/|, and \path|tex/| + directories to your \path|texmf/| directory (either your local or global + \path|texmf/| directory). +\item Run \command{mktexlsr} to refresh the file name database and make \TeX{} + aware of the new files. +\item Run \command{updmap --enable Map cantarell.map} to make \program{Dvips}, + \program{dvipdf} and \program{pdf\TeX} aware of the new fonts. +\end{enumerate} + +Note that this package requires the \package{keyval}~\cite{keyval} and +\package{slantsc}~\cite{slantsc} (to handle italic/slanted small caps) ones to +work. + +\section{Usage} + +\subsection{Calling Cantarell} + +You can use the Cantarell font in a \LaTeX{} document by adding the command +\begin{verbatim} +\usepackage{cantarell} +\end{verbatim} +to the preamble. The package supplies the \code{\char`\\fcafamily} command to +switch the current font to Cantarell. + +\subsubsection{Options} + +\paragraph{Cantarell as default (sans-serif) font} + +You can set \LaTeX{} to use Cantarell as standard font throughout the whole +document by passing the \code{default} option to the package: +\begin{verbatim} +\usepackage[default]{cantarell} +\end{verbatim} +To set Cantarell as default sans-serif only: +\begin{verbatim} +\usepackage[defaultsans]{cantarell} +\end{verbatim} + +\paragraph{Font scaling} + +The font can be up- and downscale by any factor. This can be used to make +Cantarell more friendly when used in company with other type faces, e.g., to +adapt the x-height. The package option \code{scale=\parameter{ratio}} will scale +the font according to \parameter{ratio} (1.0 by default), for example: +\begin{verbatim} +\usepackage[scale=0.95]{cantarell} +\end{verbatim} + +\subsection{Encodings} + +The following encodings are supported: +\begin{center} + OT1, T1, TS1 (partial) +\end{center} +To use one or another encoding, give the \LaTeX{} name to the \package{fontenc} +package as usual, as in +\begin{verbatim} +\usepackage[T1]{fontenc} +\usepackage{cantarell} +\end{verbatim} + +\subsection{Available weights and variants} + +The following table lists the available font series and shapes with their +\acronym{NFSS} classification. Parenthesized combinations are provided via +substitutions. +\begin{center} + \begin{tabular}{llll} + \toprule + family&encoding&series&shape\\ + \midrule + \multirow{3}{*}{fca}&\multirow{2}{*}{OT1, T1}&\multirow{2}{*}{m, b (bx)}&n, sl (it)\\ + &&&sc, scsl (scit)\\ + \cmidrule{2-4} + &TS1&m, b (bx)&n, sl (it)\\ + \bottomrule + \end{tabular} +\end{center} +Notice that the slanted shapes are faked ones, as well as the small capitals +(reduced to 80\%). + +\section{Known bugs and improvements} + +Please send bug reports and suggestions about the Cantarell \LaTeX{} support to +\href{mailto:melmorabity@fedoraproject.org}{Mohamed \name{El~Morabity}}, neither +to Dave \name{Crossland} nor the \acronym{GNOME} project. They only distribute +the font files themselves. + +\section{License} + +This package is released under the \LaTeX{} project public license, either +version~1.3c or above~\cite{lppl}. Anyway both the Type~1 and Fontforge source +files are delivered under the Open Font License version~1.1~\cite{ofl}. + +\begin{thebibliography}{9} +\bibitem{cantarell} \url{http://download.gnome.org/sources/cantarell-fonts/0.0/} +\bibitem{keyval} + \url{http://www.ctan.org/tex-archive/macros/latex/required/graphics/} +\bibitem{slantsc} + \url{http://www.ctan.org/tex-archive/macros/latex/contrib/slantsc/} +\bibitem{lppl} \url{http://www.latex-project.org/lppl/lppl-1-3c.html} +\bibitem{ofl} \url{http://scripts.sil.org/OFL_web} +\end{thebibliography} + +\end{document} diff --git a/Master/texmf-dist/source/cantarell/sfd2type1.pe b/Master/texmf-dist/source/cantarell/sfd2type1.pe new file mode 100644 index 00000000000..7a73db9d261 --- /dev/null +++ b/Master/texmf-dist/source/cantarell/sfd2type1.pe @@ -0,0 +1,22 @@ +#!/usr/bin/env fontforge +## sfd2type1.pe +## Copyright 2011 Mohamed El Morabity +# +# This work may be distributed and/or modified under the conditions of the LaTeX +# Project Public License, either version 1.3 of this license or (at your option) +# any later version. The latest version of this license is in +# http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all +# distributions of LaTeX version 2005/12/01 or later. +# +# This work has the LPPL maintenance status `maintained'. +# +# The Current Maintainer of this work is Mohamed El Morabity +# +# This work consists of all files listed in manifest.txt. + +i=1 +while (i < $argc) + Open($argv[i]) + Generate($argv[i]:r + ".pfb") + i = i+1 +endloop -- cgit v1.2.3