Skip to content

Text Layer ported to Cobra render engine - #2362

Merged
ice0 merged 7 commits into
synfig:masterfrom
rodolforg:core-layer-freetype-cobra
Oct 20, 2021
Merged

ice0 merged 7 commits into
synfig:masterfrom
rodolforg:core-layer-freetype-cobra

Conversation

@rodolforg

@rodolforg rodolforg commented Oct 13, 2021 •

Copy link
Copy Markdown
Contributor

It's magic, I know!

  • Text Layer now uses Cobra with Contour Task
  • Based on Layer_Shape (as are layers Polygon, Rectangle, Bline, Circle, etc.)
  • If selected, it shows a boundary box now
  • It is CLICKABLE
  • No more blurring when zooming canvas/workarea in
  • Doesn't blur layers below it
  • Waaay faster (and more optimizations may be done)
  • Cobra: Invert for multiline is wrong between consecutive text lines (Cobra engine issue... on large zooms it works o.O
    I guess the issue is here software::Contour::render_polyspan() or software::Contour::build_polyspan())
    Fix proposed in Fix inverted contour rendering for consecutive blank pixel rows between shapes #2367
  • Cobra: hit check for conic curves is wrong, making it difficult to select layers at right of Text layer (fixed via cleanup and fix Intersector class: documentation and conic curves #2358)
  • Cobra: hide some Layer Shape parameters (example: winding number)

fix #389
fix #631
fix #831
fix #1566
fix #2065

@rodolforg rodolforg changed the title Layer_Freetype ported to Cobra render engine Text Layer ported to Cobra render engine Oct 13, 2021
@rodolforg

Copy link
Copy Markdown
Contributor Author

Please note that it needs #2358 first.

@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch 2 times, most recently from d2999e0 to 3f2ad4b Compare October 13, 2021 01:32
@rodolforg

rodolforg commented Oct 13, 2021 •

Copy link
Copy Markdown
Contributor Author

I need to hide some parameters and delete some comment-out code, but here it is for testing @morevnaproject . :)

Sorry my delay, I was struggling with vertical alignment... And then I decided to base Layer_Freetype on Layer_Shape to use some stuff (hit_check, etc.).

Buuuuuut there is an error I didn't fix: invert for multiline text :(

@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch from 3f2ad4b to 5b636ca Compare October 14, 2021 03:24
@rodolforg

Copy link
Copy Markdown
Contributor Author

Now rebased to master to fix the hit-check feature :)

@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch 4 times, most recently from 038f0f7 to 5550829 Compare October 15, 2021 04:56
@morevnaproject

Copy link
Copy Markdown
Member

This is BOMB! Thank you so much! 🎉

@rodolforg

Copy link
Copy Markdown
Contributor Author

This is BOMB! Thank you so much! tada

Yeah! Did you test it? Amazing how fast it is

@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch from 5550829 to 4701a31 Compare October 17, 2021 01:40
@rodolforg rodolforg added the Text label Oct 18, 2021
@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch from 4701a31 to 251ea2d Compare October 19, 2021 21:20
@rodolforg

rodolforg commented Oct 20, 2021 •

Copy link
Copy Markdown
Contributor Author

@ice0 now #2367 was merged, should I rebase this PR to master branch?

Rebased :)

@rodolforg
rodolforg force-pushed the core-layer-freetype-cobra branch from 251ea2d to ad82050 Compare October 20, 2021 04:05
@morevnaproject

Copy link
Copy Markdown
Member

Did you test it? Amazing how fast it is

Yes, I did! So excited about the speed! 🎉 🎉 🎉

@morevnaproject

Copy link
Copy Markdown
Member

This PR opens a great possibilities for creating artistic text animation templates, like this one ^__^ - https://forums.synfig.org/t/your-suggestions-for-upcoming-weekly-report/12526/37?u=konstantindmitriev

@rodolforg

Copy link
Copy Markdown
Contributor Author

Wait for my next PR "Text Layer"-related ;)

@morevnaproject

Copy link
Copy Markdown
Member

O__O

@rodolforg

Copy link
Copy Markdown
Contributor Author

LOL - Just ballyhoo - being sensational

@ice0

ice0 commented Oct 20, 2021 •

Copy link
Copy Markdown
Collaborator

@ice0 now #2367 was merged, should I rebase this PR to master branch?

Yes. "Rebase and merge" does not create a merge commit. So, in this case, it will not be possible to find the original PR.

@ice0
ice0 merged commit 17b5212 into synfig:master Oct 20, 2021
@ice0

ice0 commented Oct 20, 2021

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@rodolforg
rodolforg deleted the core-layer-freetype-cobra branch October 25, 2021 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants