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

Implementation of ZText (SDF-based fonts) and overlay handling in RendeQuTor #20

Merged
merged 4 commits into from
Jun 13, 2024

Conversation

osschar
Copy link
Contributor

@osschar osschar commented Jun 3, 2024

See examples/textExampleSDF/main.js

Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of extra font files in the repo (and avoid 18 commits).

  • Waad: initial implementation & tuning.
  • Alja: integration with REve.
  • Matevz: final cleanup, loading of fonts & font metrics.

Full set of commits available in https://github.com/alja/RenderCore/tree/master-dec24-1450

For font generation use this (see mk_fonts.sh, gzip -9 the json font-metrics).
https://github.com/osschar/sdf_atlas

…deQuTor.

See examples/textExampleSDF/main.js

Containts contributions from Waad, Alja and Matevz.
Squashed to avoid adding of extra font files in the repo (and avoid 18 commits).
- Waad: initial implementation & tuning.
- Alja: integration with REve.
- Matevz: final cleanup, loading of fonts & font metrics.
Full set of commits available in https://github.com/alja/RenderCore/tree/master-dec24-1450
@ss4774 ss4774 self-assigned this Jun 3, 2024
@alja
Copy link
Contributor

alja commented Jun 3, 2024

@ss4774 I'm currently testing integration to REve.

@ss4774
Copy link
Collaborator

ss4774 commented Jun 4, 2024

I like the results! Let me know when the code will be ready for a merge.

@osschar
Copy link
Contributor Author

osschar commented Jun 4, 2024

Screenshot from 2024-06-03 23-42-50

@osschar
Copy link
Contributor Author

osschar commented Jun 4, 2024

Yes, almost there :)

@osschar
Copy link
Contributor Author

osschar commented Jun 7, 2024

Screenshot from 2024-06-06 23-10-42
This is how it looks in REve demo with the latest commit ... added support for backpanel and frame.
I think I'm getting close ... have tons of ideas now but there are also other things I have to get back to :)

osschar pushed a commit to alja/root that referenced this pull request Jun 10, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of extra files in the repo (some committed by mistake) and to avoid 32 commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics.

Full set of commits available in https://github.com/alja/root/tree/waa-master-2024

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C
@osschar
Copy link
Contributor Author

osschar commented Jun 11, 2024

This is ready to go ... we might have some more things later, like implementation of mixed mode: position in world-coordinates, size in screen units.

@ss4774
Copy link
Collaborator

ss4774 commented Jun 13, 2024

Merging the pull request.

@ss4774 ss4774 merged commit 4d8b787 into UL-FRI-LGM:main Jun 13, 2024
alja pushed a commit to alja/root that referenced this pull request Jun 13, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of extra files in the repo (some committed by mistake) and to avoid 32 commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics.

Full set of commits available in https://github.com/alja/root/tree/waa-master-2024

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.
osschar pushed a commit to alja/root that referenced this pull request Jun 14, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of extra files in the repo (some committed by mistake) and to avoid 32 commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics.

Full set of commits available in https://github.com/alja/root/tree/waa-master-2024

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.
osschar pushed a commit to alja/root that referenced this pull request Jul 28, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of
extra files in the repo (some committed by mistake) and to avoid numerous commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics. Mac and Windows fixes.

Full set of initial development commits is available from:
https://github.com/alja/root/tree/waa-master-2024

Commits to get things working on Mac/Windows and libAfterImage/libpng:
https://github.com/alja/root/tree/waad-revetext-overlay-master-6.33-rb1-final

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.

Location of SDF font and metrics files:
When REveText::AssertSdfFont() is called for the first time it chooses a writable
location in eiter $ROOTSYS/ui5/eve7/sdf-fonts or a ./sdf-fonts in the current
directory.
Alternatively REveText::SetSdfFontDir() can be called beforehand to manually
specify the desired location.
osschar pushed a commit to alja/root that referenced this pull request Jul 28, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of
extra files in the repo (some committed by mistake) and to avoid numerous commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics. Mac and Windows fixes.

Full set of initial development commits is available from:
https://github.com/alja/root/tree/waa-master-2024

Commits to get things working on Mac/Windows and libAfterImage/libpng:
https://github.com/alja/root/tree/waad-revetext-overlay-master-6.33-rb1-final

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.

Location of SDF font and metrics files:

When REveText::AssertSdfFont() is called for the first time it chooses a writable
location in eiter $ROOTSYS/ui5/eve7/sdf-fonts or a ./sdf-fonts in the current
directory.
Alternatively REveText::SetSdfFontDir() can be called beforehand to manually
specify the desired location.
linev pushed a commit to root-project/root that referenced this pull request Jul 29, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of
extra files in the repo (some committed by mistake) and to avoid numerous commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics. Mac and Windows fixes.

Full set of initial development commits is available from:
https://github.com/alja/root/tree/waa-master-2024

Commits to get things working on Mac/Windows and libAfterImage/libpng:
https://github.com/alja/root/tree/waad-revetext-overlay-master-6.33-rb1-final

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.

Location of SDF font and metrics files:

When REveText::AssertSdfFont() is called for the first time it chooses a writable
location in eiter $ROOTSYS/ui5/eve7/sdf-fonts or a ./sdf-fonts in the current
directory.
Alternatively REveText::SetSdfFontDir() can be called beforehand to manually
specify the desired location.
silverweed pushed a commit to silverweed/root that referenced this pull request Aug 19, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of
extra files in the repo (some committed by mistake) and to avoid numerous commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics. Mac and Windows fixes.

Full set of initial development commits is available from:
https://github.com/alja/root/tree/waa-master-2024

Commits to get things working on Mac/Windows and libAfterImage/libpng:
https://github.com/alja/root/tree/waad-revetext-overlay-master-6.33-rb1-final

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.

Location of SDF font and metrics files:

When REveText::AssertSdfFont() is called for the first time it chooses a writable
location in eiter $ROOTSYS/ui5/eve7/sdf-fonts or a ./sdf-fonts in the current
directory.
Alternatively REveText::SetSdfFontDir() can be called beforehand to manually
specify the desired location.
alja pushed a commit to alja/root that referenced this pull request Aug 20, 2024
Contains contributions from Waad, Alja and Matevz. Squashed to avoid adding of
extra files in the repo (some committed by mistake) and to avoid numerous commits.

* Waad: initial implementation & tuning.
* Alja: integration with REve.
* Matevz: final cleanup, loading of fonts & font metrics. Mac and Windows fixes.

Full set of initial development commits is available from:
https://github.com/alja/root/tree/waa-master-2024

Commits to get things working on Mac/Windows and libAfterImage/libpng:
https://github.com/alja/root/tree/waad-revetext-overlay-master-6.33-rb1-final

Related PR in RenderCore: UL-FRI-LGM/RenderCore#20

Demo: tutorials/eve7/texts.C

Update RenderCore version to 1.5.

Location of SDF font and metrics files:

When REveText::AssertSdfFont() is called for the first time it chooses a writable
location in eiter $ROOTSYS/ui5/eve7/sdf-fonts or a ./sdf-fonts in the current
directory.
Alternatively REveText::SetSdfFontDir() can be called beforehand to manually
specify the desired location.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants