So I tried that ‘pack_sprites’ example on the webpage you gave and I get an error
[gmic] *** Error in ./main/*repeat/*substitute/ *** Command ‘font’: Unknown font ‘titanone’
So I tried it with [backwardslash]" enclosure and it still fails so I tried it with a space in it [backwardslash]“titan one[backwardslash]” and it still won’t work.
So as I was trying to figure what I was doing wrong I tried the ‘visible watermark’ filter in GMIC_QT (3.6.1) to test the fonts, and even there I get the error:
Command ‘font’: Unknown font ‘33’.
With many fonts, including titan one, but many other fonts do work though.
From what I gather all fonts that have spaces in the name fail.
All of this on windows.
So is this something on my system or do other windows users have this too?
Did I screw something up on my windows?
addendum: The CLI help on the command ‘font’ lists all the available font names without spaces I noticed, but even a copy-paste from it won’t make the ones that originally have spaces work.
And as I said even in GMIC_qt where I use a dropdown box to select fonts it’s throwing up an error for me.
Perhaps unrelated I also get that when I in gmic_qt try to use the paper cuts filter the whole thing just crashes unceremoniously back to the desktop, not even showing an error. So perhaps it is something wrong on my side.
Hello, this is not the right thread [EDIT. Discussion moved to this thread] to post your error msgs (look at the title), please open an new one.
Dear Paul
I was trying the example he put in the article, if it does not work on windows he would want to fix that so as not to exclude half the users.
See the logic?
He could simply use a non-spaced working font in the example for instance and at least the article would be OK for both linux and windows users, if it is a windows issue that is.
Hello @Whatnot
That seems to be related to the fact that the G’MIC font file is probably not installed on your system.
We can check that easily:
- Try command
gmic font impact,24and tell us what it says. - The G’MIC font file should be located here, on Windows :
%APPDATA%/gmic/gmic_fonts.gmz(see my screenshot below). If you don’t have this file, then it won’t work (and we have to understand why you don’t have it).
This folder contains all the data file required by G’MIC when you run some of the filters/commands. Usually, a needed file is downloaded/installed automatically when it is not present and a command requires it.
But it may happen some security rules prevent G’MIC downloading them.
- Not a problem : Just get it from the G’MIC server : http://gmic.eu/gmic_fonts.gmz
and copy it in the folder%APPDATA%/gmic/and it should be OK.
Let me know if that works for you.
it says:
[gmic]./ Start G’MIC interpreter (v.3.6.1).
[gmic]./ Return default font ‘impact’ with height 24 and regular face.
[gmic]./ End G’MIC interpreter.
And there is a gmic_fonts.gmz in my appdata, I already checked, but maybe it’s outdated? Mine is dated April 2024
I got the one from the link (I previously did an internet search and did not find it btw) and I notice that it has a different size. So I’ll try a replacement.
Edit: YES it worked, mine was outdated it seems.
It’s odd though because I do updates with GMIC_QT and ‘gmic update’ and they seem to work fine and aren’t blocked by anything.
But thanks for the fix, and excuse me since it was a very personal issue and not a wide reaching one, so perhaps Paul was right then and this was the wrong place to bring it up. Sorry guys.
I tested it with the visible watermark filter, now to test it with the script.
And the script works too!
It’s funny how obvious that link was BTW, I should remember that for when I have similar issues with GMIC files that get broken or outdated.
The ‘paper cuts’ filter still kills my gmic_qt, but that is a problem for another thread, after I try to figure it out some more myself first. And it’s a ‘testing’ filter so I expect those to not be future proof.
Ha yes, that must be the cause : probably the font you were requesting was only in the new file. In that case, just deleting the gmic_fonts.gmz file and re-running the command should have downloaded the new one.
Ha, interesting, I may have also a look myself to see what happens.
OOps, sorry about that! ![]()
Actually, it doesn’t work for me either with latest Gmic (3.6.1), It just spins forever, but doesn’t eat too much ram (only 700MB).
I guess i’ll have to rewrite that thing.
Ah, and my stringify mod is now broken too? Strange.
Well, i’m a lifelong noob in training so i just put everything i do under testing, unless @David_Tschumperle says otherwise.
