Search found 28 matches
- Thu Dec 26, 2024 12:59 am
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Was a brand new Laptop did not expect it to die within 2 weeks.
- Mon Dec 23, 2024 4:21 pm
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Thanks @Caronte3D and sorry for the late reply.
I lost the harddrive with the sources for two games in SB.
My original plan was to finish one of the games during the holidays.
When i get my motivation back i will definitely give this a try
I lost the harddrive with the sources for two games in SB.
My original plan was to finish one of the games during the holidays.
When i get my motivation back i will definitely give this a try

- Thu Dec 19, 2024 11:25 am
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Thank you, i tried it but it did not work for me.
- Wed Dec 18, 2024 9:43 am
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Is there a way to supply the font name, type and path as procedure parameters?
Procedure.i LoadFontZector(gadget_id.i);<- would be nice to have the font family and path as parameters
!var font = new FontFace('Zector','url(./font/Zector.ttf)');
!font.load().then(function(loadedFont) {
!document ...
Procedure.i LoadFontZector(gadget_id.i);<- would be nice to have the font family and path as parameters
!var font = new FontFace('Zector','url(./font/Zector.ttf)');
!font.load().then(function(loadedFont) {
!document ...
- Sun Dec 15, 2024 8:15 pm
- Forum: Game Programming
- Topic: VectorDrawing: How does IsInsidePath() work with added Translation & Scaling?
- Replies: 0
- Views: 58600
VectorDrawing: How does IsInsidePath() work with added Translation & Scaling?
How does IsInsidePath() work with TranslateCoordinates() & ScaleCoordinates()?
The provided example is a modified version of the IsInsidePath() example in the help, with added Translation & Scaling.
The mouse position gets adjusted and is visualized with a small circle.
Any suggestions?
Example ...
The provided example is a modified version of the IsInsidePath() example in the help, with added Translation & Scaling.
The mouse position gets adjusted and is visualized with a small circle.
Any suggestions?
Example ...
- Wed Dec 11, 2024 5:57 pm
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Perfect, got it working for a canvas with vector drawing (first example + LoadFont()). 
The second example worked great with gadgets (if #PB_Any is used the GadgetID() is needed).
I am working on a little game project using the vector drawing library.
Thank you very much.

The second example worked great with gadgets (if #PB_Any is used the GadgetID() is needed).
I am working on a little game project using the vector drawing library.
Thank you very much.
- Tue Dec 10, 2024 8:29 pm
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Is there a way to use this font: https://ggbot.itch.io/zector-font ?
I cant get it to work (im trying to load the css below with RSBasic's OpenLibrary() command)
css:
@font-face {
font-family: 'Zector';
src: url('Zector.woff2') format('woff2'),
url('Zector.woff') format('woff'),
url('Zector ...
I cant get it to work (im trying to load the css below with RSBasic's OpenLibrary() command)
css:
@font-face {
font-family: 'Zector';
src: url('Zector.woff2') format('woff2'),
url('Zector.woff') format('woff'),
url('Zector ...
- Sun Dec 08, 2024 12:00 pm
- Forum: General Discussion
- Topic: SAP and SpiderBasic
- Replies: 1
- Views: 9511
- Sat Dec 07, 2024 4:38 pm
- Forum: Coding Questions
- Topic: How to use a custom font?
- Replies: 15
- Views: 29358
Re: How to use a custom font?
Nice thanks, should be added to SB.
- Sat Dec 07, 2024 4:20 pm
- Forum: Feature Requests and Wishlists
- Topic: SpriteBlendingMode()
- Replies: 0
- Views: 12395
SpriteBlendingMode()
SpriteBlendingMode() like in PB would be nice to have.