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

Adjust API: Environment is Copy; prepare returns bool #68

Merged
merged 25 commits into from
Jul 9, 2022
Merged

Conversation

dhardy
Copy link
Contributor

@dhardy dhardy commented Jul 8, 2022

This contains a few fixes and a few API tweaks.

  • Remove fn line_is_ltr; add fn text_is_rtl
  • Replace separate dpp, pt_size parameters with single dpem
  • Remove PX_VALIGN configuration flag: there is probably no reason to ever turn this off
  • Replace BIDI flag with more options under Direction enum
  • Add measure_width, measure_height, bounding_box and vertically_align methods to allow more efficient size-deduction followed by alignment
  • prepare* and update_env methods now only return a boolean describing whether the bounding box is exceeded

@dhardy dhardy merged commit 37c782c into master Jul 9, 2022
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.

1 participant