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

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.
Post Reply
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

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

Post 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,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post 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).
User avatar
mike
Administrator
Posts: 364
Joined: Mon Feb 04, 2008 5:24 pm

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

Post 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.
Now posting IN STEREO (where available)
User avatar
TsT
Party member
Posts: 161
Joined: Thu Sep 25, 2008 7:04 pm
Location: France
Contact:

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

Post 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,
My projects current projects : dragoon-framework (includes lua-newmodule, lua-provide, lovemodular, , classcommons2, and more ...)
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests