Recent

Author Topic: CTFontGetAdvancesForGlyphs returns wrong position for "Te" or "To" letters  (Read 881 times)

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Can you help - CTFontGetAdvancesForGlyphs returns incorrect array of glyphs for a text string. It returns wrong positions of letters when "To" or "Te" letters appears.

I attach a screenshot and test project. Compile the project, run it, then find a BMP file in the same folder.

Switching from CTFontGetAdvancesForGlyphs to CTFontGetOpticalBoundsForGlyphs gives the same problem.

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 370
Re: CTFontGetAdvancesForGlyphs returns wrong position for "Te" or "To" letters
« Reply #1 on: December 06, 2020, 03:03:37 pm »
I would grateful for any advice. Probably I missed to initialize some font parameter.

 

TinyPortal © 2005-2018