diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-10-03 21:20:32 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-10-03 21:20:32 -0400 |
commit | 34d683d8857adab360c75edffe5a1af410c3a373 (patch) | |
tree | c85e5ad32a6e54431d36ad99f7f4b93544bdfd6b /lib/sisu/v3/param.rb | |
parent | debian/changelog (3.0.19-1) (diff) | |
parent | v2 v3: documenation, html, man2html (sisu.1) (diff) |
Merge commit 'sisu_3.1.0' into debian/sid
Diffstat (limited to 'lib/sisu/v3/param.rb')
-rw-r--r-- | lib/sisu/v3/param.rb | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/lib/sisu/v3/param.rb b/lib/sisu/v3/param.rb index e2cffa9b..674b8cba 100644 --- a/lib/sisu/v3/param.rb +++ b/lib/sisu/v3/param.rb @@ -814,9 +814,31 @@ module SiSU_Param end end def texpdf_font - @h['texpdf_font'] && (@h['texpdf_font']=~/\S{3,}/) \ - ? @h['texpdf_font'] - : @env.font.texpdf + def main + @h['texpdf_font'] \ + && (@h['texpdf_font']=~/\S{3,}/) \ + ? @h['texpdf_font'] + : @env.font.texpdf.main + end + def sans # not used + @h['texpdf_font_sans'] \ + && (@h['texpdf_font_sans']=~/\S{3,}/) \ + ? @h['texpdf_font_sans'] + : @env.font.texpdf.sans + end + def serif # not used + @h['texpdf_font_serif'] \ + && (@h['texpdf_font_serif']=~/\S{3,}/) \ + ? @h['texpdf_font_serif'] + : @env.font.texpdf.serif + end + def mono + @h['texpdf_font_mono'] \ + && (@h['texpdf_font_mono']=~/\S{3,}/) \ + ? @h['texpdf_font_mono'] + : @env.font.texpdf.mono + end + self end def skin @h['skin'] |