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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text alignment to sf::Text #2713

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Commits on Oct 2, 2023

  1. Add text alignment to sf::Text

    Hapaxia authored and ChrisThrasher committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    0c17cc5 View commit details
    Browse the repository at this point in the history
  2. Deduplicate code

    ChrisThrasher committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    d2af1f4 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. fixes some minor concerns raised

    Re-uses line offsets vector for temporary line widths to avoid using a secondary vector.
    
    Removes check to test if index is out of range as it would never be so.
    
    Rounds offset to nearest integer to improve base clarity (this can still be affected - as usual - if transformed).
    Hapaxia committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    9bcdbc4 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. change LineAlignment enum to enum class

    also includes asserts for lineOffsets vector and updated tests.
    Hapaxia committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    91bf37e View commit details
    Browse the repository at this point in the history