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

Some fonts are not fully displayed #6150

Closed
me2beats opened this issue Feb 10, 2019 · 4 comments
Closed

Some fonts are not fully displayed #6150

me2beats opened this issue Feb 10, 2019 · 4 comments
Labels
Status: Confirmed Confirmed as real issue

Comments

@me2beats
Copy link

Some fonts are not fully displayed, for example:
https://www.fontpalace.com/font-download/New+York+Deco/

from kivy.app import App
from kivy.lang import Builder
from kivy.core.text import LabelBase

LabelBase.register(
    name='New York Deco',
    fn_regular='New York Deco.ttf',
    fn_bold='New York Deco.ttf')

KV = """
Label
    font_name: 'New York Deco'
    text: 'THIS TEXT IS NOT displaying properly'

    font_size: 30

"""

class MyApp(App):
    def build(self):
        self.root = Builder.load_string(KV)

MyApp().run()

Result:
only the bottom of the text is displayed

Tested with sdl2 and pil providers, ununtu

@tito tito added Status: Confirmed Confirmed as real issue awaiting-reply Waiting for reply from issue opener, will be closed if no reply labels Feb 10, 2019
@tito
Copy link
Member

tito commented Feb 10, 2019

The font is broken by itself? Check it in https://www.glyphrstudio.com/online/
The font goes above its own bounding box. Even some preview on the tool is broken.

It is quite unusual, but i doubt this is something in Kivy itself? We ask for the size of the bounding box of a text from SDL2, or pygame, or else.

I'm hesitating about a wontfix. Fix the font?
(I already got issues about some home made font by designer, the only way is to fix at least their bounding box then everything is ok.)

Maybe give a try to pango backend too?

@me2beats
Copy link
Author

I have the same problem with Pygame (created an issue):
pygame/pygame#818

But this font displayed fine for example in Godot engine 3.

I'll try to check out pango, but I don’t have a chance yet.

@no-response no-response bot removed the awaiting-reply Waiting for reply from issue opener, will be closed if no reply label Feb 12, 2019
@me2beats
Copy link
Author

It seems there is a solution using pygame pygame/pygame#818 (comment)

But still curious how to implement it in kivy.

@Julian-O
Copy link
Contributor

Julian-O commented Nov 5, 2023

I am less hesitant about closing the issue - the font is broken.

@Julian-O Julian-O closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed Confirmed as real issue
Projects
None yet
Development

No branches or pull requests

3 participants