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

OSError: Label: File 'Lato-Regular.ttf' not found #1

Open
biank88 opened this issue Aug 10, 2016 · 2 comments
Open

OSError: Label: File 'Lato-Regular.ttf' not found #1

biank88 opened this issue Aug 10, 2016 · 2 comments

Comments

@biank88
Copy link

biank88 commented Aug 10, 2016

Kivy: 1.9.2.dev
Platform: ubuntu_16

The app encounters the following CRITICAL error during loading:
OSError: Label: File 'Lato-Regular.ttf' not found

kivy log:
kivy_16-08-10_8.txt

@anselm94
Copy link
Owner

Can you please verify if it works in Kivy-stable version?

@idg5
Copy link

idg5 commented Nov 3, 2016

Can confirm same error on kivy 1.9.1

You are using fonts
Either include the following files

Lato-Bold.ttf
Lato-Heavy.ttf
Lato-Regular.ttf
Lato-Semibold.ttf

in the top directory

or explicitly load them something like

from kivy.core.text import LabelBase
font = {
"name": "Lato",
"fn_regular": "data/fonts/Lato-Regular.ttf",
"fn_bold": "data/fonts/Lato-Bold.ttf"
}
LabelBase.register(**font)

before app.run()
or just change the install instructions to say install these fonts

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

No branches or pull requests

3 participants