Henri Menke

Results 243 comments of Henri Menke
trafficstars

Here is a simple plain TeX reproducer of the problem. ```latex \input luaotfload.sty \def\mainfont{SourceSerifPro-Regular.otf} \long\def\onum#1{% \begingroup \expandafter\font\csname\mainfont:+onum\endcsname="\mainfont:+onum" at 10pt \csname\mainfont:+onum\endcsname#1% \endgroup } \newcount\counter \counter=0 \loop\ifnum\counter

If possible you should add a switch to disable the caching. It might be that LuaTeX garbage-collects unused `\font`s, so if you are using like a thousand different fonts in...

It's a lot less easy than that. First of all I don't know whether it's even possible to detect the return code of a `\write18` within TeX and then there...

Here is a wild guess which is completely untested. ```diff diff --git a/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex b/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex index 2ff5aa2d..c0d65407 100644 --- a/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex +++ b/tex/generic/pgf/frontendlayer/tikz/libraries/tikzexternalshared.code.tex @@ -1592,9 +1592,6 @@ \tikzexternal@file@isuptodatetrue \else \tikzexternal@file@isuptodatefalse - \immediate\openout\w@pgf@writea=\tikzexternal@curfilename\tikzexternal@check@uptodate@ext\relax%...

Oh, you misunderstand. I'm not going to fix anything in `external`. Unless someone else provides a fix this will remain open.

> Maybe this is because `\pgfmath@basic@pow@` still invokes `\pgfmathln@` when the exponent is not an integer, but `\pgfmathln@` has at this point been replaced with `\pgfmathfloatln@`? Sounds likely but `\pgfmath@basic@...`...

Is your package a PGF/TikZ library? If not, you are probably better served by [`xfp`](https://ctan.org/pkg/xfp) (as pointed out by Phelype Oleinik).

[`mix-blend-mode`](https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode) is a CSS feature and not intrinsic to SVG. I'm not sure whether we want to support it for `dvisvgm`. @muzimuzhi Keep in mind that by using `dvips` you...

Unfortunately the naïve implementation doesn't even work. ```patch diff --git a/tex/generic/pgf/systemlayer/pgfsys-common-svg.def b/tex/generic/pgf/systemlayer/pgfsys-common-svg.def index f1d27290..c1824a73 100644 --- a/tex/generic/pgf/systemlayer/pgfsys-common-svg.def +++ b/tex/generic/pgf/systemlayer/pgfsys-common-svg.def @@ -141,6 +141,24 @@ }% } +\def\pgfsys@blend@mode#1{\pgf@sys@svg@gs{style="mix-blend-mode: \csname pgf@sys@svg@blend@mode@map@#1\endcsname;"}} +\expandafter\def\csname pgf@sys@svg@blend@mode@map@normal\endcsname{normal}...

Acutally browser support for this feature is also a bit spotty, in particular for Apple devices. https://caniuse.com/css-mixblendmode