On Sat, May 15, 2021 at 9:13 AM Michael Opdenacker < michael.opdenacker@bootlin.com> wrote: > SVG directly included in EPUB output has multiple issues, > in particular font size and alignment ones (tested on two > EPUB readers). > > Signed-off-by: Michael Opdenacker > --- > documentation/conf.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/documentation/conf.py b/documentation/conf.py > index 5a2e25f7b2..798a365c7f 100644 > --- a/documentation/conf.py > +++ b/documentation/conf.py > @@ -136,3 +136,7 @@ latex_elements = { > 'passoptionstopackages': > '\PassOptionsToPackage{bookmarksdepth=5}{hyperref}', > 'preamble': '\setcounter{tocdepth}{2}', > } > + > +# Make the EPUB builder prefer PNG to SVG because of issues rendering > Inkscape SVG > +from sphinx.builders.epub3 import Epub3Builder > +Epub3Builder.supported_image_types = ['image/png', 'image/svg+xml', > 'image/gif', 'image/jpeg'] > If you concluded svg has issues, should we remove it from this list instead? > -- > 2.25.1 > > > > >