Skip to content

#28 remove pre-generated variable from *-font-metrics.php files#38

Open
tonda13 wants to merge 1 commit intoDocnetUK:masterfrom
tonda13:master
Open

#28 remove pre-generated variable from *-font-metrics.php files#38
tonda13 wants to merge 1 commit intoDocnetUK:masterfrom
tonda13:master

Conversation

@tonda13
Copy link

@tonda13 tonda13 commented Feb 22, 2019

These static pre-generated variable $fontkey rewrite custom name of '''font family''' specified in AddFont() method.

@Humphreybas
Copy link

You could also change the $fontkey value back to the custom value after loading the metrics in tfpdf.php:

	if (file_exists($unifilename.'.mtx.php')) {
		include($unifilename.'.mtx.php');
	}
	$fontkey = $family.$style;

Then you don't have to worry about it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants