HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01/29)
by Nate and Snacko
Moderators: Snacko, CCGHQ Admins
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 27 Mar 2017, 18:41
Uploaded 9.1.00
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 27 Mar 2017, 21:58
Apparently missed a slight text adjustment on M15 story cards
- Code: Select all
storyLeft.x = 22
- Code: Select all
storyLeft.x = 38
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 28 Mar 2017, 23:23
Looking at the Amonkhet Masterpieces, I do not have the skill to recreate those... It's unlikely that I will have those frames for some time.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by shelldell » 30 Mar 2017, 00:52
A lot of people find them to be butt ugly so it's no great loss
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by Faraleth » 04 Apr 2017, 17:11
Every time I come back here to check on the progress, I'm always blown away by how much has been done. You're an animal!! I admit I've done zero research on this so don't burn me at the stake. I just thought I'd ask you directly. Does this app work for Mac OS? I know most of it is PHP which is fine on Mac. I don't know if the batch files are required / referenced in the code directly, or if I could configure some bash scripts with similar results. I mean could I use a similar process as outlined here? https://www.slightlymagic.net/wiki/CardGenerator Input from anyone would be greatly appreciated. Keep up the amazing work ahkren!
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 04 Apr 2017, 18:36
@Faraleth, I don't have much experience with Mac OS, if I recall correctly, it is unix/linux based? If so, you should be able to install PHP and uses it if you have the proper modules loaded. I have loaded in the included php.ini; php_gd2, php_mbstring and php_xdebug-2.5.0-5.5-vc11 on PHP 5.5.0. In theory the included .sh scripts should work as they are bash scripts. I believe that the wiki info is still mostly correct.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by Ayssia » 30 Apr 2017, 13:56
Downloaded the generator, it works almost perfect! However I've met small problems:
The "Land — Forest Island" line, some characters are 1px higher than other characters.
And next, "enters the battlefield", that "t" seems very strange.
By the way, all characters in rule text seems a bit "fatter" than original card.
Original card:
How to fix these problems?
The "Land — Forest Island" line, some characters are 1px higher than other characters.
And next, "enters the battlefield", that "t" seems very strange.
By the way, all characters in rule text seems a bit "fatter" than original card.
Original card:
How to fix these problems?
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 01 May 2017, 19:38
I compared the text boxes of the render and the scan for Breeding Pool, as far as I can tell, the fonts for the text boxes are the same size, no width or height difference, same kerning between letters.
As for the Title and Type line, it looks to be a problem with MatrixB.ttf as all the letters with a rounded bit go below the baseline. I'll see what I can do to correct it or find a new font to use. If someone has a fixed font already, I'd appreciate it.
As for the Title and Type line, it looks to be a problem with MatrixB.ttf as all the letters with a rounded bit go below the baseline. I'll see what I can do to correct it or find a new font to use. If someone has a fixed font already, I'd appreciate it.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by skibulk » 01 May 2017, 21:51
Some fonts dip below the baseline intentionally. I'll bet that's just how Matrix was designed. On a side note, I wonder if WOTC switched to Matrix II at some point?
-
skibulk - HQ Team Member
- Posts: 995
- Joined: 19 Jul 2010, 20:34
- Location: Northeast USA
- Has thanked: 379 times
- Been thanked: 335 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by Ayssia » 08 May 2017, 05:31
I think the kerning is not exactly same:ahkren wrote:I compared the text boxes of the render and the scan for Breeding Pool, as far as I can tell, the fonts for the text boxes are the same size, no width or height difference, same kerning between letters.
Look at the "Target creature" and "Agony Warp" in title.
Original card:
I modified Matrix/Mplantin fonts and fixed the baseline problem, but I don't know how to fix the kerning.
The modified Mplantin font includes kerning, but Cardgen doesn't realize it.
- modified fonts.zip
- (50.21 KiB) Downloaded 235 times
Last edited by Ayssia on 08 May 2017, 05:41, edited 1 time in total.
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 08 May 2017, 05:37
I'll see what I can do about that. The biggest issue is that pgp gd library doesn't support kerning by default, so it will take some time to write a function that works within the framework. I'll put it on my todo list.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by skibulk » 09 May 2017, 20:46
Imagick has broader capabilities than GD. I haven't looked at it in a long time, but I think it supports kerning and multi-line text boxes (which HQCG creates manually) out of the box. It would be a huge task to integrate it, but it might be worth considering. I don't know if you can run it from a dll or if installation is required.
-
skibulk - HQ Team Member
- Posts: 995
- Joined: 19 Jul 2010, 20:34
- Location: Northeast USA
- Has thanked: 379 times
- Been thanked: 335 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by skibulk » 09 May 2017, 21:26
I can confirm that M14 used Matrix II. The letter "g" is noticeably curved in the newer font and easy to identify. http://www.emigre.com/EFfeature.php?di=105
-
skibulk - HQ Team Member
- Posts: 995
- Joined: 19 Jul 2010, 20:34
- Location: Northeast USA
- Has thanked: 379 times
- Been thanked: 335 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by ahkren » 09 May 2017, 21:51
@skibulk, I've been thinking of trying to convert to imagick, it will just be a long and daunting process. The dll and some related files are necessary because imagick is effectively calling the Image Macgick API and working behind the scenes with the Image Magick executables. I think in the long run it will be better for this project, but doing a complete conversion to imagick will take a lot of time.
-
ahkren - Programmer
- Posts: 316
- Joined: 18 Jan 2012, 20:43
- Has thanked: 50 times
- Been thanked: 201 times
Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03
by skibulk » 11 May 2017, 23:15
I'm a web guy, so my opinion is a bit skewed, but I think it would be cool to convert this to a browser app. JavaScript is taking over the world after all. It could use JSON for configuration, generate SVGs, and optionally use canvas to convert to JPGs. The fonts, frames, and symbols could all be externally linked to monumentally reduce file size. The only issue is that SVG 1.2 doesn't have word wrapping (v2 may solve that). It would have to use a Foreign Object HTML element until then. It would take a lot of work admittedly, I wish I had time to do it.
-
skibulk - HQ Team Member
- Posts: 995
- Joined: 19 Jul 2010, 20:34
- Location: Northeast USA
- Has thanked: 379 times
- Been thanked: 335 times
Who is online
Users browsing this forum: No registered users and 4 guests