0

I'm creating an application where users are able to change the font and size of certain texts. This makes layout kind of hard. However I've got some predefined texts and I don't like the way they're broken down to lines sometimes.

For example, a text might be: "• Midsommardagen", which might be broken down to what's shown in the image provided.

enter image description here

I think that's ugly and would rather break it down to:

• Midsommar-
dagen

As that's more visually pleasing and fit's better with the Swedish language ("Midsummer day").

What's the best approach to this? Core Text? Any tips on how to realise it with Core Text?

netdigger
  • 3,659
  • 3
  • 26
  • 49
  • 1
    Maybe: https://stackoverflow.com/questions/18979545/add-hyphens-on-word-break-in-a-uilabel – DonMag Feb 21 '20 at 16:03
  • Wasn’t exactly what I wanted? But seems to solve the problem in a easy to implement way! :) now I just need to know if I I can change language (instead of using preferred) – netdigger Feb 22 '20 at 09:01
  • Because the pdf can be generated for a language that is not the same as those in preferred – netdigger Feb 22 '20 at 09:02

0 Answers0