Skip to content

[BUG] cairo-rs context.paint() or fill() not working #661

@wanming

Description

@wanming

Bug description

context.paint() or fill() not work on alpine linux, the backgroud of the output png is transparent.

but it works fine on macOS or debian.

How to reproduce

download my example code zip, unzip it, and run cd cairo-issue:

cairo-issue.zip

docker run -v $PWD:$PWD -it -w $PWD rust:1.60.0-alpine3.15 /bin/sh

in docker shell:

apk add cairo-dev libc6-compat musl-dev
cargo run

check the output.png in code folder, the background of the output png should be yellow. but it's not.

I'v tried install other packages, like gtk+3.0-dev or gtk4.0-dev, but the results are the same.

appreciate it if you can give me some help, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions