[Interest] SVG gradient not working on some machines

Larry Martell larry.martell at gmail.com
Wed Mar 30 16:48:57 CEST 2016


I have some HTML that looks like this:

    <svg width="0" height="0">
        <defs>
            <linearGradient id="RangeGradient"
                 x1="0" y1="0" x2="100%" y2="0">
                <stop offset="0%" stop-color="lightblue" />
                <stop offset="100%" stop-color="indianred" />
            </linearGradient>
        </defs>
    </svg>

<svg width="100" height="25" class="pull-right">
<rect x="0" y="0" width="100" height="25" fill="url(#RangeGradient)" />\
</svg>

On some machines this works fine, but on other machines the entire
rectangle is black. There are no errors in QWebInspector, but in the
app's error log I see this message:

QCoreTextFontDatabase::fontEngine: CGFontCreateWithDataProvider failed

Anyone know what that means, and if that could be the cause of the SVG
issue, and how to fix this?



More information about the Interest mailing list