It is currently 23 Jun 2017, 05:10
   
Text Size

HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03/27)

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 27 Mar 2017, 18:41

Uploaded 9.1.00
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby ahkren » 27 Mar 2017, 21:58

Apparently missed a slight text adjustment on M15 story cards

Code: Select all
storyLeft.x = 22
needs to be changed to
Code: Select all
storyLeft.x = 38
in config-m15.txt
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby shelldell » 30 Mar 2017, 00:52

A lot of people find them to be butt ugly so it's no great loss :P
shelldell
 
Posts: 8
Joined: 18 May 2015, 04:13
Has thanked: 9 times
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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!
Faraleth
 
Posts: 4
Joined: 25 Jun 2016, 03:57
Has thanked: 1 time
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby Ayssia » 30 Apr 2017, 13:56

Downloaded the generator, it works almost perfect! However I've met small problems:
renderer_bug.png


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:
originalcard.png


How to fix these problems?
Ayssia
 
Posts: 12
Joined: 14 Feb 2013, 23:21
Has thanked: 10 times
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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?
User avatar
skibulk
HQ Team Member
 
Posts: 981
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 371 times
Been thanked: 300 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby Ayssia » 08 May 2017, 05:31

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.
I think the kerning is not exactly same:
Agony Warp.full.jpg

Look at the "Target creature" and "Agony Warp" in title.

Original card:
Agony Warp.full.jpg


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 8 times
Last edited by Ayssia on 08 May 2017, 05:41, edited 1 time in total.
Ayssia
 
Posts: 12
Joined: 14 Feb 2013, 23:21
Has thanked: 10 times
Been thanked: 0 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
skibulk
HQ Team Member
 
Posts: 981
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 371 times
Been thanked: 300 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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
User avatar
skibulk
HQ Team Member
 
Posts: 981
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 371 times
Been thanked: 300 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
ahkren
Programmer
 
Posts: 267
Joined: 18 Jan 2012, 20:43
Has thanked: 34 times
Been thanked: 131 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2017/03

Postby 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.
User avatar
skibulk
HQ Team Member
 
Posts: 981
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 371 times
Been thanked: 300 times

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form