Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this.
-
TsT
- Party member
- Posts: 161
- Joined: Thu Sep 25, 2008 7:04 pm
- Location: France
-
Contact:
Post
by TsT » Sun Jun 14, 2009 2:13 pm
If the code below is correct :
Code: Select all
love.graphics.newFont(love.default_font, size)
The documentation of love.graphics.newFont seems incomplete (see
here or
here ) it told only about the use of a filename (string) argument, nothing else.
So we should put it in the documentation.
Best Regards,
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
Post
by bartbes » Sun Jun 14, 2009 2:22 pm
Well, actually, I think that if you print love.default_font you're getting something like: "vera.ttf".. So.. yes, it might be better if added, but basically the love.default_font is a filename too (AFAIK).
-
mike
- Administrator
- Posts: 364
- Joined: Mon Feb 04, 2008 5:24 pm
Post
by mike » Sun Jun 14, 2009 3:20 pm
We should probably make a reference to the default_font variable (which is a number, btw

), but the documentation will hopefully be improved when the new version rolls around.
Now posting IN STEREO (where available)
-
TsT
- Party member
- Posts: 161
- Joined: Thu Sep 25, 2008 7:04 pm
- Location: France
-
Contact:
Post
by TsT » Sun Jun 14, 2009 10:22 pm
Mike has anderstood.
My request is because you can pass other kind of data (than string) to the function, and that is not documented.
It's not really important for most of people, but I wrote security part, and my secure check show me this as warning
Regards,
Users browsing this forum: No registered users and 39 guests