New clipboard API for front ends, and textarea progress
by Michael Drake
Text inputs and textareas used in HTML forms have never been robust and
we've decided to fix them for NetSurf 3.0.
Since the existing implementation is unmaintainable, the plan is to make
html forms use the desktop/textarea.{c|h} widget (which is currently used
for Hotlist node editing and the Atari URL bar).
The first stage of this is to add all the extra functionality we require
to the desktop/textarea widget, including clipboard support.
I've updated the front end clipboard API so now it can be used outside
browser windows, and to remove use of the html/text-plain selection
structure:
http://source.netsurf-browser.org/netsurf.git/commit/?id=e93fae7f2d9fdcc4...
The Atari, Amiga, and BeOS front ends all need updated.
The RISC OS front end needs attention so that it can paste when another
application has ownership of the clipboard.
--
Michael Drake (tlsa) http://www.netsurf-browser.org/
10 years, 9 months
[Patch] Make fill-opacity and stroke-opacity available to renderers
by Trent Gamblin
As the title says, this makes the parser store the fill-opacity and stroke-opacity values. This works on this SVG with my Allegro 5 renderer:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg">
<style type="text/css">
circle:hover {fill-opacity:0.9;}
</style>
<g style="fill-opacity:0.7;">
<circle cx="6.5cm" cy="2cm" r="100" style="fill:red; stroke:black; stroke-width:0.1cm" transform="translate(0,50)" />
<circle cx="6.5cm" cy="2cm" r="100" style="fill:blue; stroke:black; stroke-width:0.1cm" transform="translate(70,150)" />
<circle cx="6.5cm" cy="2cm" r="100" style="fill:green; stroke:black; stroke-width:0.1cm" transform="translate(-70,150)"/>
</g>
</svg>
The patch is attached.
Thanks,
Trent
10 years, 10 months
libsvgtiny gradients
by Trent Gamblin
Hello,
I came across your library and am hoping to use it in a game of mine. The README says that linearGradient is supported, and while investigating it seems there's at least some code for it. However when I try to use it, like in this simple example:
<svg>
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>
</defs>
<ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
</svg>
I get the following output from the test program:
svgtiny_find_gradient: id "grad1"
linear_gradient_stop_count 0
viewbox 0 0 1000 1000
fill none stroke none stroke-width 1 path 'M 285 70 C 285 100.376 246.944 125 200 125 C 153.056 125 115 100.376 115 70 C 115 39.6243 153.056 15 200 15 C 246.944 15 285 39.6243 285 70 Z '
It doesn't seem to be finding any gradient stops? I'm not really sure. Can anyone suggest if linearGradients are supported and if so how to make them work? Thanks!
Trent
10 years, 10 months
Merge request: toolchains - mono/atari-adjustments
by Ole
Hello,
can someone please merge my branch mono/atari-adjustments of the
toolchain tree?
Latest commit:
Do not allow curl to use poll()
poll() is just an wrapper around select() on FreeMiNT so it just
introduces overhead, do not use it.
Thanks & Greets,
Ole
10 years, 10 months