- And how to get (with Windows' API if no native code exists) the font name that can be used in LoadFont() from the filename "MyFont.ttf"?
- And how to get the total number of characters the font file contains?
- And how to get the list of characters available (not empty) available in a font?
:wink:
Search found 926 matches
- Fri May 03, 2024 10:29 pm
- Forum: Coding Questions
- Topic: Get windows font details
- Replies: 4
- Views: 915
- Thu Apr 25, 2024 6:45 pm
- Forum: The PureBasic Editor
- Topic: Procedures sorting ERROR
- Replies: 3
- Views: 2405
Re: Procedures sorting ERROR
Hi Skywalk,
Indeed, it occurs even when Z is in the middle of a procedure name. Well seen !
Indeed, it occurs even when Z is in the middle of a procedure name. Well seen !

- Thu Apr 25, 2024 6:27 pm
- Forum: Coding Questions
- Topic: Font Quality on a DPI above 100%
- Replies: 2
- Views: 568
Re: Font Quality on a DPI above 100%
I'm using the same font both in the editor as in my programs.
Using this font works perfectly in the PB editor, DPI set at 100% or 200%.
The font is called "iosevka" - https://github.com/be5invis/Iosevka
In the editor it is perfectly sharp...
Using this font works perfectly in the PB editor, DPI set at 100% or 200%.
The font is called "iosevka" - https://github.com/be5invis/Iosevka
In the editor it is perfectly sharp...
- Thu Apr 25, 2024 5:53 pm
- Forum: The PureBasic Editor
- Topic: Procedures sorting ERROR
- Replies: 3
- Views: 2405
Re: Procedures sorting ERROR
I must add that this occurs only when the last letter of the procedure name is a upper Z (not with the lower z).
- Thu Apr 25, 2024 5:48 pm
- Forum: The PureBasic Editor
- Topic: Procedures sorting ERROR
- Replies: 3
- Views: 2405
Procedures sorting ERROR
Hi all,
This is very unusual error: a sorting error.
dirZ is not correctly sorted ! This is the output :

This is very unusual error: a sorting error.
Code: Select all
Procedure dirq()
EndProcedure
Procedure dirz()
EndProcedure
Procedure dirQ()
EndProcedure
Procedure dirZ()
EndProcedure

- Thu Apr 25, 2024 5:31 pm
- Forum: Coding Questions
- Topic: Font Quality on a DPI above 100%
- Replies: 2
- Views: 568
Font Quality on a DPI above 100%
Hi all,
First, look at the two images.
https://i.imgur.com/inkcOUS.png
The above image has a sharp font, Window's DPI set at 100%.
https://i.imgur.com/s6uGZso.png
and this image is less sharp, Window's DPI set at 200%.
The flag #PB_Font_HighQuality in LoadFont() has no effect. (I wonder when ...
First, look at the two images.
https://i.imgur.com/inkcOUS.png
The above image has a sharp font, Window's DPI set at 100%.
https://i.imgur.com/s6uGZso.png
and this image is less sharp, Window's DPI set at 200%.
The flag #PB_Font_HighQuality in LoadFont() has no effect. (I wonder when ...
- Mon Apr 15, 2024 10:16 pm
- Forum: Coding Questions
- Topic: Software update in progress
- Replies: 1
- Views: 910
- Sun Apr 14, 2024 1:12 pm
- Forum: Coding Questions
- Topic: Setting and Getting GadgetITemData on a ListIconGadget
- Replies: 7
- Views: 1546
Re: Setting and Getting GadgetITemData on a ListIconGadget
We all have nine fingers. The first one is the zeroth one.
At school, we learned to count from one, not from zero.... hence the confusion.

At school, we learned to count from one, not from zero.... hence the confusion.

- Sun Apr 14, 2024 11:00 am
- Forum: Coding Questions
- Topic: Can you check this out? (mac os)
- Replies: 26
- Views: 7548
Re: Can you check this out? (mac os)
On my Windows 11 Home, it returns:
Click
0
0
111
- Wed Apr 10, 2024 8:54 pm
- Forum: Coding Questions
- Topic: EditorGadget Problem with RTF
- Replies: 6
- Views: 1221
Re: EditorGadget Problem with RTF
No, it is not runable because it stops at PVDynamic_ColorGadget(), this procedure is missing.
Anyway, I probably found the problem, a very common problem.
You wrote curent_user.s="toto" , it had to be current_user.s="toto" (with two R !) :mrgreen:
To avoid this kind of problem, it is VERY highly ...
Anyway, I probably found the problem, a very common problem.
You wrote curent_user.s="toto" , it had to be current_user.s="toto" (with two R !) :mrgreen:
To avoid this kind of problem, it is VERY highly ...
- Wed Apr 10, 2024 6:54 pm
- Forum: Coding Questions
- Topic: EditorGadget Problem with RTF
- Replies: 6
- Views: 1221
Re: EditorGadget Problem with RTF
It would be probably a little easier to help you to find the error if you provide us a runable code.
PVDynamic_ColorGadget() is missing here...
PVDynamic_ColorGadget() is missing here...
- Wed Apr 10, 2024 6:02 pm
- Forum: Coding Questions
- Topic: DLL returning an integer
- Replies: 8
- Views: 1160
Re: DLL returning an integer
Thanks mk-soft for the trick.
Question for having the confirmation:
If a ProcedureDLL is used in the local program (thus not as an extern DLL file), is it working 100% like a standard Procedure?
ProcedureDLL.s Software()
ProcedureReturn "PBM-Software"
EndProcedure
v1.s=Software()
Debug v1
Question for having the confirmation:
If a ProcedureDLL is used in the local program (thus not as an extern DLL file), is it working 100% like a standard Procedure?
ProcedureDLL.s Software()
ProcedureReturn "PBM-Software"
EndProcedure
v1.s=Software()
Debug v1
- Tue Apr 09, 2024 4:28 pm
- Forum: Coding Questions
- Topic: DLL returning an integer
- Replies: 8
- Views: 1160
Re: DLL returning an integer
Nice example, thank you AZJIO. :wink: Through your code, I have seen that Debug and MessageRequester give different return values, so the string is returned ByRef.
For now, a real "Chinese puzzle", but I understand perfectly what is happening.
I only need to get accustomed.... :mrgreen:
Edit: I saw ...
For now, a real "Chinese puzzle", but I understand perfectly what is happening.
I only need to get accustomed.... :mrgreen:
Edit: I saw ...
- Tue Apr 09, 2024 3:32 pm
- Forum: Coding Questions
- Topic: DLL returning an integer
- Replies: 8
- Views: 1160
Re: DLL returning an integer
Ok, no PeekI() needed, thanks.
Ok, use of Import or Prototypes are recommended instead of CallFunction.
So, Prototypes handles .dll files so I think it is the same way to create the .dll (with Compiler set to Executable Format: Shared DLL)
But Import handles .lib files instead of .dll. How do we ...
Ok, use of Import or Prototypes are recommended instead of CallFunction.
So, Prototypes handles .dll files so I think it is the same way to create the .dll (with Compiler set to Executable Format: Shared DLL)
But Import handles .lib files instead of .dll. How do we ...
- Tue Apr 09, 2024 2:25 pm
- Forum: Coding Questions
- Topic: Pushbutton Test Toggling
- Replies: 8
- Views: 1849
Re: Pushbutton Test Toggling
Welcome to the magic world of PureBasic!
You can use the bitwise XOR to toggle between 0 and 1.
I quickly simplified your program by merging ToggleInfoOn() and ToggleInfoOff() to simply ToggleInfo().
Inside the ToggleInfo(), the PBState is toggled, and you toggle at the same time the gadgets.
;4/8 ...
You can use the bitwise XOR to toggle between 0 and 1.
I quickly simplified your program by merging ToggleInfoOn() and ToggleInfoOff() to simply ToggleInfo().
Inside the ToggleInfo(), the PBState is toggled, and you toggle at the same time the gadgets.
;4/8 ...