Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic in dessin-pdf #97

Open
OlivierLemoine opened this issue Mar 26, 2024 · 0 comments
Open

Panic in dessin-pdf #97

OlivierLemoine opened this issue Mar 26, 2024 · 0 comments
Milestone

Comments

@OlivierLemoine
Copy link
Member

Remove panic for a result

panic!("Failed to add external font : {}", err)

@OlivierLemoine OlivierLemoine added this to the v0.8 milestone Mar 26, 2024
SadCl0wn added a commit that referenced this issue Dec 18, 2024
SadCl0wn added a commit that referenced this issue Dec 18, 2024
SadCl0wn added a commit that referenced this issue Dec 18, 2024
OlivierLemoine added a commit that referenced this issue Feb 18, 2025
* Update README.md

* weap

* weap du tu doc problem

* Better font management before rebase

* erase some coments

* erase some coment

* Resolve conversation problems

* Add suggestion and it should work

* first try to remove trait in dessin-pdf

* Remove comments, should work

* weap

* It worked for pdf, just him

* Now, it also works for svg and png

* Remove the panic in the dessin-pdf lib, it should work

* Correcting test errors

* start to cleanup

---------

Co-authored-by: Olivier Lemoine <[email protected]>
Co-authored-by: Francois Morillon <[email protected]>
OlivierLemoine added a commit that referenced this issue Feb 26, 2025
* Remove version dependency

* Start new API

* Add style

* Add base curve

* Add circle

* Begin svg impl

* Remove algebr

* Add test for image

* Add rosace ex

* Add curve in tosvg, add add examples

* PDF so far

* Review macro

* Fix dessin-pdf image size

* Add anchor

* Add pdf image

* bottom_left
Co-authored-by: Olivier Lemoine <[email protected]>

* Tmp text

* WYP
Co-authored-by: Olivier Lemoine <[email protected]>

* Add arcs and thick arcs

* Fix arc end control

* Start documentation

* Fix style size

* Fix arc

* Add tests and start rework export API

* Impl exporter for SVG

* Fix rectangle empty size

* Start work on PDF exporter

* WIP

Co-authored-by: Olivier Lemoine <[email protected]>

* Start documenting

* Add more doc

* bump dependencies
partial fix textbox
Co-authored-by: Olivier Lemoine <[email protected]>

* Add tests for anchor

* Update readme

* Add readme for crates.io

* Update version

* Add readme for create.io

* Bump versions

* Fix image placement on svgs

* Bump versions

* Add auto escaping < and > for svg

* Add custom font for SVG + font name

* Add text rotation

* Update links to doc

* fix typo rbg instead of rgb
add a macro allowing styling after tranform to a shape
use is rename var to avoid linter issues
Co-authored-by: Olivier Lemoine <[email protected]>

* Add textbox vertical align

* Update macro engine

* Add vertical layout

* Impl Texbox as Layout

* Fix warnings

* Add extend for curve

* Fix bounding box join and intersect

* Update README.md

* Bump versions

* Fix erased type

* Fix group bounding-box

* Add derive macro

* Hotfix style into shape

* Add failing test

* Fix varible as argument for if and for

* add some test
add const generic regular polygones
Co-authored-by: Olivier Lemoine <[email protected]>

* Add doc

* Fix bounding box being square of the result if the shape had a transform

Co-authored-by: Olivier Lemoine <[email protected]>

* Impl default-font

* Fix svg viewport

* Add scafolding for dessin-image

* Test with dynamic shape

* Add dynamic

* fix curve bounding box not applying local transform

Co-authored-by: Olivier Lemoine <[email protected]>

* potential fix of autocenter

* Add dynamic ref

* Remove builtin fonts for now

* Fix SVG Auto bounding box

* Start impl dessin-image

* Add Fit component

* Add metadata

* Use raqote as Image rasterizer

* Add metadata to layout

* Add back local_transform to textbox

* Clean Option<BoundingBox>

* Start adding missing doc

* Add some and into_some derive macro

* Clean text to use derive macro

* Fix local_bounding_box of text

* Fixing tests and set default width of TextBox to inf

* Add test for textbox

* Bump version to 0.8.14-pre

* Add optionnal args

* Fix rotation computation

* Remove test file

* Add let guard

* Add Padding

* Add documentation for crates.io

* Start working on pdf export with printpdf 0.6 (#73)

* bump all dependencies

* add export_curve implementation to pdf
partial text export to pdf missing font handling and position control

* manage font in struct

* pdf: add support for translation and rotation

---------

Co-authored-by: francois morillon <[email protected]>

* Remove .idea

* Update actions

* New proc-macro (#83)

* New proc-macro

* Start converting example + fix erased type should actualy be a shape

* Fix style creation + add back optional styled shape. Continue translating to new macro

* Fix tests compilation

* Continue updating doc

* Fix tests

---------

Co-authored-by: oli <[email protected]>

* Fix github actions + Fix 432 example

* Update rust.yml

* Fix #71 svg rotation + tweak proc-macro (#84)

* Add a couple very simple examples and two contribs (#85)

* Co-authored-by: francois-deadalus <[email protected]>

* add red_circle_with_macro and red_circle_without_macro in exemples

* correct error in red_circle_without_macro helped by François and Olivier

* Same as before

* add green rectangle with and without macro + blue blue triangle with macro and the unfinished without macro

* Add any_triangle, right_angle and yellow_thick with and without macro example, plus, triangle in the contrib

* add arc with and without macro, plus, rewrite triangle in contrib

* Add orange_octogon with and whithout macro

* add diamond_with_macro, textbox with and without macro and diamond in contrib

* fmt

* use octogon in the octogon example

* rename Triangle_test to Triangle

---------

Co-authored-by: francois morillon <[email protected]>

* Bump version

* Add rust fmt to github action

* Fix compile error

* Add option to run all examples

* Add depreciation context to old dessin macro

* Add test from examples

* Add new examples (#86)

Add examples with both macro

* Remove trait for dessin svg (#87)

* Co-authored-by: francois-deadalus <[email protected]>

* remove trait for dessin.SVG

* Should corrects errors

* Fix last small issues

---------

Co-authored-by: Olivier Lemoine <[email protected]>

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Corrects padding (#88)

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Add an examples for padding named purple_padding

* Corrects a little mistake in padding.rs

* Add some comments and do some corrections

* It should work

* Corrects the test problem

---------

Co-authored-by: Olivier Lemoine <[email protected]>

* Update rust.yml

* Bump version

* Remove dependency from once_cell (#90)

* ugly weap

* Better font management (#91)

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Weap

* Better weap

* Better font management without rebase

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Weap

* Better weap

* Better font management without rebase

* Change svg for each example

* Changes after feedback

* possible improvements

* corect error

* change some svg

* Update example outputs

* Renaming stuff

---------

Co-authored-by: Math/Nuba <[email protected]>

* Better weap

* big weap

* Use new macro (#93)

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Translate all old macro use to new macro

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Translate all old macro use to new macro

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Translate all old macro use to new macro

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Translate all old macro use to new macro

* should work now

* Changes remainig old macro uses

* Translate all old macro use to new macro

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* should work now

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* Changes remainig old macro uses

* after the weap, it should works now

* Add some more docs

---------

Co-authored-by: Olivier Lemoine <[email protected]>

* Bump version

* Use Palette on examples

* ugly weap

* Better weap

* big weap

* Use Palette on examples

* Correct errors and change svg

* Correct errors

* correct test error

* Correct examples errors

* Should work

* Update examples

* Correct dessin-svg
svg chang wanted :
-yellow_thick_arc : show transparency
-right_angle_triangle : show transparency
-red_circle
-purple_padding : move to purple color
-green_rectangle

* Erase old rgb

* Same as before

* Update examples

* Better font management for pdf (#95)

* weap

* weap du tu doc problem

* Better font management before rebase

* erase some coments

* erase some coment

* Resolve conversation problems

* Add suggestion and it should work

* Remove coments

* Remove trait for dessin pdf (#96)

* weap

* weap du tu doc problem

* Better font management before rebase

* erase some coments

* erase some coment

* Resolve conversation problems

* Add suggestion and it should work

* first try to remove trait in dessin-pdf

* Remove comments, should work

---------

Co-authored-by: Olivier Lemoine <[email protected]>

* fix macro dessin2 for if let case of ambiguous match of a stuct patern

* Remove panic in dessin pdf   issues #97 (#98)

* Update README.md

* weap

* weap du tu doc problem

* Better font management before rebase

* erase some coments

* erase some coment

* Resolve conversation problems

* Add suggestion and it should work

* first try to remove trait in dessin-pdf

* Remove comments, should work

* weap

* It worked for pdf, just him

* Now, it also works for svg and png

* Remove the panic in the dessin-pdf lib, it should work

* Correcting test errors

* start to cleanup

---------

Co-authored-by: Olivier Lemoine <[email protected]>
Co-authored-by: Francois Morillon <[email protected]>

* Update pngs

* Use palette for colors (#94)

* Corrects padding issues

Co-authored-by: Olivier Lemoine <[email protected]>

* ugly weap

* Better weap

* big weap

* Use Palette on examples

* ugly weap

* Better weap

* big weap

* Use Palette on examples

* Correct errors and change svg

* Correct errors

* correct test error

* Correct examples errors

* Should work

* Update examples

* Correct dessin-svg
svg chang wanted :
-yellow_thick_arc : show transparency
-right_angle_triangle : show transparency
-red_circle
-purple_padding : move to purple color
-green_rectangle

* Erase old rgb

* Same as before

* Update examples

---------

Co-authored-by: Olivier Lemoine <[email protected]>
Co-authored-by: Olivier Lemoine <[email protected]>

* Update macro (use * instead of ! for style) and fmt

* First draft dessin-dioxus

* Update README.md

* Fmt

* Use derive Shape for Style

* Update dependencies

* Update pipeline

* [dessin-dioxus] Add none to fill

* [dessin] Add PartialEq to Shape

* Update version, before publishing 0.8.0

* Update READMEs

* Update main README

* Remove deprecated macro `dessin`, and replace it with `dessin2`

* Some formting

* Fmt

---------

Co-authored-by: François Morillon <[email protected]>
Co-authored-by: morillon fançois <[email protected]>
Co-authored-by: Math/Nuba <[email protected]>
Co-authored-by: Math/Nuba <[email protected]>
Co-authored-by: Francois Morillon <[email protected]>
Co-authored-by: Math/Nuba <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant