Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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