From 36983897034dda2f8844c55e908dce1f7411d781 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 4 Oct 2023 14:12:56 +0200 Subject: Adding upstream version 0.8.0. Signed-off-by: Daniel Baumann --- docs/conf.py | 3 +++ pydyf/__init__.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index a08c175..c868316 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,6 +46,9 @@ html_theme_options = { 'collapse_navigation': False, } +# Favicon URL +html_favicon = 'https://www.courtbouillon.org/static/images/favicon.png' + # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". diff --git a/pydyf/__init__.py b/pydyf/__init__.py index 3d0b122..25165f0 100755 --- a/pydyf/__init__.py +++ b/pydyf/__init__.py @@ -280,6 +280,10 @@ class Stream(Object): """Set text rendering mode.""" self.stream.append(_to_bytes(mode) + b' Tr') + def set_text_rise(self, height): + """Set text rise.""" + self.stream.append(_to_bytes(height) + b' Ts') + def set_line_cap(self, line_cap): """Set line cap style.""" self.stream.append(_to_bytes(line_cap) + b' J') -- cgit v1.2.3