Page 1 of 1

Documentation(love0.5.0) about love.graphics.newFont use

Posted: Sun Jun 14, 2009 2:13 pm
by TsT
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,

Re: Documentation(love0.5.0) about love.graphics.newFont use

Posted: Sun Jun 14, 2009 2:22 pm
by bartbes
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).

Re: Documentation(love0.5.0) about love.graphics.newFont use

Posted: Sun Jun 14, 2009 3:20 pm
by mike
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.

Re: Documentation(love0.5.0) about love.graphics.newFont use

Posted: Sun Jun 14, 2009 10:22 pm
by TsT
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 :D

Regards,