![]() |
|
another variation of "10 PRINT" - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: another variation of "10 PRINT" (/showthread.php?tid=3324) |
RE: another variation of "10 PRINT" - bplus - 01-12-2025 Hi @Jack002, What version QB64(pe) are you using? You probably need a PE, something newer than v2.1 for sure. IAnother look at your Windows Fonts shot, you should be able in Windows 10 to load the font by name alone, skip the path stuff. Check under properties what the font name is, it doesn't always match the file name! Or try the code and zip Steve provided earlier. Honestly IMHO it works better with a square font 1:1 ratio of height to width. RE: another variation of "10 PRINT" - hsiangch_ong - 01-13-2025 Jack002 did you read the second post i made on this thread? (01-11-2025, 02:26 AM)hsiangch_ong Wrote: i don't expect someone to use boldfaced font. the code line to load the font should read: i should have posted windows-only path which was hard coded. all of you trying to do it with screen 0 and as short as possible are missing the point. there is no way to do it like on original commodore 64 with an original text mode! so i ventured on doing it with graphics mode, with graphics characters that looked like the two from commodore 64 able to be produced with [b]chr$()[b]. RE: another variation of "10 PRINT" - hsiangch_ong - 01-13-2025 Jack002 you showed file properties of font that was downloaded. you might have to check "unblock" in the dialog at the bottom. sometimes windows is hard about this. Code: (Select All) ENVIRON$("HOME")that's why i advised you to use hard coded full path in program for windows. as i've said, i don't know if windows still allows installing fonts into C:\windows\fonts. i took another look at the properties dialog to notice the font was installed in deep "local" area for user. will have to get the entire path of that, or will have to move the font file to another location. RE: another variation of "10 PRINT" - SMcNeill - 01-13-2025 Windows lets you install fonts still, but it's not necessary. All one has to do is include the font in the same directory as the source code (or the qb64pe folder, if you're not saving it to some personalized folder), and then reference it without any paths whatsoever. font = _LoadFont(fontname$, size, property$) For example: font = _LoadFont("courbd.ttf", 20, "monospace") NOTE: On Windows, this style format will resolve itself in two steps: 1) It checks the _CWD$ (current working directory) path for the file. 2) It checks "CWindows\Fonts\" as the path, in case the first fails and doesn't find the file. You shouldn't need to hardcode paths in Windows unless you've just deliberately placed your font files into a resource folder somewhere relative to your BAS file. RE: another variation of "10 PRINT" - Jack002 - 01-13-2025 (01-12-2025, 09:02 PM)bplus Wrote: Hi @Jack002,QB64 ver 2.1, I just installed it before all these problems QB64pe is ver 4.0 Why is it I SEE the TTF file there in the dir in the file explorer and not in DOS? For what it's worth, I use an app called Agent Ransack, it finds files, and sees inside txt files to find things, it also cannot see this ttf file RE: another variation of "10 PRINT" - bplus - 01-13-2025 Oh heck graphics version! Why monkey around with fonts at all? Code: (Select All) Screen _NewImage(800, 600, 32)RE: another variation of "10 PRINT" - JRace - 01-13-2025 LOL. I was thinking someone might whittle it down to a single keyword, but soon we'll have an Enterprise-grade TenPrint instead. Does anyone want to get started on the User's Guide & advertising campaign? RE: another variation of "10 PRINT" - SMcNeill - 01-13-2025 (01-13-2025, 06:24 PM)JRace Wrote: LOL. I was thinking someone might whittle it down to a single keyword, but soon we'll have an Enterprise-grade TenPrint instead. Just for you @JRace -- I'm adding a new _PrintMaze command to the language! RE: another variation of "10 PRINT" - JRace - 01-13-2025 Let's see the other guys beat that! Ah, the power of being a dev. RE: another variation of "10 PRINT" - bplus - 01-13-2025 Code: (Select All)
Can someone beat Infinity? |