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

PAINTROID-684 Apply outline to text #1330

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

Conversation

JulianJautz
Copy link
Contributor

@JulianJautz JulianJautz commented Feb 7, 2024

new button in Texttool for creating white text with outline in selected colour

  • text is painted in two steps: first white filling, then outline in stroke mode

https://jira.catrob.at/browse/PAINTROID-684

Your checklist for this pull request

Please review the contributing guidelines and wiki pages of this repository.

  • Include the name of the Jira ticket in the PR’s title
  • Include a summary of the changes plus the relevant context
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project’s coding guidelines
  • Verify that the changes generate no compiler or linter warnings
  • Perform a self-review of the changes
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Confirm that new and existing unit tests pass locally
  • Check that the commits’ message style matches the project’s guideline
  • Stick to the project’s gitflow workflow
  • Verify that your changes do not have any conflicts with the base branch
  • After the PR, verify that all CI checks have passed
  • Post a message in the #paintroid Slack channel and ask for a code reviewer

@JulianJautz JulianJautz force-pushed the PAINTROID-684_apply_outline_to_text branch from af3b933 to fdc6dd6 Compare February 8, 2024 13:52
TextTool feature: text with outline

-added new button for outline
-outline created by painting twice (second time in stroke mode)
@JulianJautz JulianJautz force-pushed the PAINTROID-684_apply_outline_to_text branch from a1f2e3d to 94fcdae Compare February 12, 2024 16:30
@khalid-nasralla
Copy link
Contributor

Code looks good to me and the outlining works really good.

One small thing I noticed, but I dont think it has something to do with how the outlining was implemented, is that sometimes depending on the text font that is being used, the outlines of a character intersect. This is especially noticable when also using Boldness on the text that uses Outlines. I noticed this with the text fonts "Sans Serif" and "STC", with other fonts, this problem doesnt occur.

studio64_hKbbeY55w8
studio64_2WWeyJemFM

@khalid-nasralla
Copy link
Contributor

If there is something that can be done against this problem, it would be nice, else I would still approve it and I think its definitely worth merging as this is a great feature. Maybe we can then create a separate ticket for this text font problem

@JulianJautz
Copy link
Contributor Author

If there is something that can be done against this problem, it would be nice, else I would still approve it and I think its definitely worth merging as this is a great feature. Maybe we can then create a separate ticket for this text font problem

Yes, I also noticed this behaviour. Interestingly, it seems like it depends on the Android version on the phone. I don't know exactly, but the issue with "STC" starts around API 30, with "Sans Serif" even later. The two fonts did not have a displaying issue with older version, when I tested it. I thought about some ways to fix it, but could not come up with a solution (e.g. painting the outline first would mean that it is not possible to make it bigger towards the middle but just to the border of the text).

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