Skip to content

[l10n] Add logger message in Controller if libraqm not supported #787

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

alvroble
Copy link
Contributor

Description

Adds logging to detect and report if libraqm is not supported during Controller initialization. This change helps developers identify when the optional libraqm dependency is missing, which can cause limitations in complex text rendering capabilities, specially for Right-to-Left (RTL) languages.

When the Controller is first initialized, it now checks for libraqm support using PIL.features.check('raqm') and logs a WARNING message when libraqm is not available.

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Documentation
  • Other

Checklist

  • I’ve run pytest and made sure all unit tests pass before sumbitting the PR

If you modified or added functionality/workflow, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms/os:

Note: Keep your changes limited in scope; if you uncover other issues or improvements along the way, ideally submit those as a separate PR. The more complicated the PR the harder to review, test, and merge.

@newtonick
Copy link
Collaborator

ACK

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.

2 participants