Search found 4 matches

by auraes
Tue Sep 04, 2018 7:11 am
Forum: Bugs - Documentation
Topic: Default ExecutableFormat for the Console example file
Replies: 0
Views: 1261

Default ExecutableFormat for the Console example file

In the PureBasic - Console example file, the default ExecutableFormat is Linux instead of Console.
by auraes
Thu Jan 04, 2018 12:34 pm
Forum: Coding Questions
Topic: Define.<type> with no variables specified (PureBasic 5.61)
Replies: 1
Views: 1038

Define.<type> with no variables specified (PureBasic 5.61)

Hi there,
i get a Syntax error, PureBasic 5.61 (Linux - x64), if i try to use Define.<type> with no variables specified :

Code: Select all

Define.w
Line 1: Syntax error.
All work fine with PureBasic 5.45 LTS (Linux - x64)
by auraes
Mon Jan 23, 2017 12:01 pm
Forum: Coding Questions
Topic: LoadFont() never return zero
Replies: 3
Views: 1283

Re: LoadFont() never return zero

Thank you.
I get the same thing under Linux (Lubuntu 16.04.1 LTS, 64-bit)
So, LoadFont() and IsFont() never seem to return zero... Why not !?
I'll take a look at RegisterFontFile() to be sure to have the good Font.
by auraes
Mon Jan 23, 2017 9:36 am
Forum: Coding Questions
Topic: LoadFont() never return zero
Replies: 3
Views: 1283

LoadFont() never return zero

Hi,
If the font was not loaded successfully, LoadFont() returns nonzero instead of zero.
If OpenWindow(0, 0, 0, 270, 160, "Loading font...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
r = LoadFont(1, "", 24)
Debug r
r = LoadFont(#PB_Any, "", 24)
Debug r

r = LoadFont(1, "anything", 24 ...