Giter Site home page Giter Site logo

rgb(%) support about svgren HOT 6 CLOSED

pg83 avatar pg83 commented on August 14, 2024
rgb(%) support

from svgren.

Comments (6)

pg83 avatar pg83 commented on August 14, 2024 4

Oh, by the way, you may be particulary interested that I use svgren as a primary svg renderer/loader for icons in my Linux distribution, for offline rendering (svg -> png), and for online, too (as a default gdk-pixbuf svg loader - https://github.com/stal-ix/ix/blob/main/pkgs/lib/svgren/gdk/io.cpp)

https://stal-ix.github.io/

from svgren.

pg83 avatar pg83 commented on August 14, 2024

backtrace from gdb:

(gdb) bt
#0  0x00000000004d791e in __syscall4 (n=14, a1=2, a2=140737488340768, a3=0, a4=8)
    at ./arch/x86_64/syscall_arch.h:38
#1  0x00000000004d7982 in __restore_sigs (set=0x7fffffffc720)
    at src/signal/block.c:43
#2  0x00000000004d79d9 in raise (sig=6) at src/signal/raise.c:11
#3  0x00000000004c8bce in abort () at src/exit/abort.c:11
#4  0x000000000043ede4 in abort_message (
    format=0x21480d "terminating due to %s exception of type %s: %s")
    at /ix/build/oRFs25QX9LFGH5oj/src/libcxxabi/src/abort_message.cpp:78
#5  0x0000000000415354 in demangling_terminate_handler ()
    at /ix/build/oRFs25QX9LFGH5oj/src/libcxxabi/src/cxa_default_handlers.cpp:72
#6  0x000000000043e512 in std::__terminate (
    func=0x4151e0 <demangling_terminate_handler()>)
    at /ix/build/oRFs25QX9LFGH5oj/src/libcxxabi/src/cxa_handlers.cpp:59
#7  0x00000000004426e6 in __cxxabiv1::failed_throw (
    exception_header=0x7ffff771e000)
    at /ix/build/oRFs25QX9LFGH5oj/src/libcxxabi/src/cxa_exception.cpp:152
#8  0x0000000000442640 in __cxa_throw (thrown_object=0x7ffff771e080, 
    tinfo=0x22a6b0 <typeinfo for std::invalid_argument>, 
    dest=0x43ea30 <std::invalid_argument::~invalid_argument()>)
    at /ix/build/oRFs25QX9LFGH5oj/src/libcxxabi/src/cxa_exception.cpp:283
#9  0x0000000000369520 in utki::string_parser::read_number<unsigned int> (
    this=0x7fffffffcbc8)
    at /ix/store/pB3hDozBvTEqgfsL-lib-svgren-utki/include/utki/string.hpp:345
#10 0x00000000003653f0 in svgdom::parse_paint (str=...)
    at svgdom/elements/styleable.cpp:1069
#11 0x000000000036462a in svgdom::styleable::parse_style_property_value (
    type=svgdom::style_property::fill, str=...)
    at svgdom/elements/styleable.cpp:286
#12 0x00000000003662ab in (anonymous namespace)::parse_style_property_value (
    type=svgdom::style_property::fill, p=...) at svgdom/elements/styleable.cpp:372
#13 0x0000000000366071 in svgdom::styleable::parse (str=...)
    at svgdom/elements/styleable.cpp:403
#14 0x0000000000383fd3 in svgdom::parser::fill_styleable (this=0x7fffffffe4c8, 
    s=...) at svgdom/parser.cpp:311
#15 0x00000000003845f2 in svgdom::parser::fill_shape (this=0x7fffffffe4c8, s=...)
    at svgdom/parser.cpp:299
#16 0x000000000038021f in svgdom::parser::parse_path_element (this=0x7fffffffe4c8)
    at svgdom/parser.cpp:778
#17 0x000000000037f4f2 in svgdom::parser::parse_element (this=0x7fffffffe4c8)
    at svgdom/parser.cpp:134
#18 0x000000000038509a in svgdom::parser::on_attributes_end (this=0x7fffffffe4c8, 
    is_empty_element=true) at svgdom/parser.cpp:944

from svgren.

igagis avatar igagis commented on August 14, 2024

Thanks for report! Yes, percentages are not supported at the moment. Will have a look.

from svgren.

igagis avatar igagis commented on August 14, 2024

Fix is ready. It was actually a problem in svgdom. But anyway you now need to update all dependency libs to latest versions, as it involved changes to several libs.

from svgren.

pg83 avatar pg83 commented on August 14, 2024

Thanx, It looks like it works

from svgren.

igagis avatar igagis commented on August 14, 2024

sounds cool! I'll check your linux distro out ;)

from svgren.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.