Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: custom text, the kerning is always zero  (Read 593 times)

0 Members and 1 Guest are viewing this topic.

andrewkoro105

  • Newbie
  • *
  • Posts: 5
    • View Profile
custom text, the kerning is always zero
« on: January 21, 2023, 01:42:07 pm »
I write my own implementation of the text and it always returns 0 when I request a kerning.The query in line 118 of https://github.com/Hedgehogo/Interface_Engine/blob/master/lib/ui/iObject/iUnscalable/interactive/text/character/simple/character.cpp this is a letter class, it has a getKerning function in which passes the following letter

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: custom text, the kerning is always zero
« Reply #1 on: January 23, 2023, 07:18:30 am »
Do you use a monospace font?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything