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

Search for MS FontValidator.exe in the system path #1336

Closed
felipesanches opened this issue May 9, 2017 · 6 comments
Closed

Search for MS FontValidator.exe in the system path #1336

felipesanches opened this issue May 9, 2017 · 6 comments
Assignees

Comments

@felipesanches
Copy link
Collaborator

We have a binary of MS FontVal available at the prebuilt/fval directory in our repository (I built it from sources a while ago because I could not find any other way of installing it on my system and on the kubernetes cluster).

The code invokes it with the explicit path of the prebuilt/fval directory (thus assuming incorrectly that the code will always be running from the root of the git tree). The recent split of repos with the dashboard going to its own repo, made it clear that it is wiser to make FontBakery look for third-party tools in the system path. Anything else should be done as an installation procedure.

The goal of this issue is to make this change to the check.py code as well as to add documentation on README.md instructing the users (and @graphicore :-D) on how to setup MS FontValidator on their systems (and on the FontBakery-Dashboard kubernetes cluster).

@felipesanches felipesanches added this to the 0.5.0 Code Is Well Organized milestone May 9, 2017
@felipesanches felipesanches self-assigned this May 9, 2017
felipesanches added a commit to felipesanches/fontbakery that referenced this issue May 9, 2017
...load it from the system path, instead of the hardcoded prebuilt/fval directory on the FontBakery source tree.
(issue fonttools#1336)
@felipesanches
Copy link
Collaborator Author

OK. I tried to setup this on my system by adding the prebuilt/fval directory to the system path:

export PATH=$PATH:/home/felipe/devel/github_felipesanches/fontbakery/prebuilt/fval/

...but got this error:

INFO     INFO: Microsoft Font Validator returned an error code. Output follows :

Error: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

@felipesanches
Copy link
Collaborator Author

...but that's not a PATH issue. I must be missing some extra mono-runtime package (I reinstalled my distro last week. Great opportunity for documenting the dependencies :-D)

@felipesanches
Copy link
Collaborator Author

Probably this will do:

sudo apt-get install mono-complete

But I dislike installing everything! There must be a cleaner way of installing only what is needed in our case.

@felipesanches
Copy link
Collaborator Author

I had a hunch that maybe this would be a cleaner solution for satisfying this dependency:

sudo apt-get install mono-reference-assemblies-4.0

But it didn't. I'll resort to installing mono-complete for now. If someone has a hint of a smaller install footprint I'll be glad to update the docs.

@felipesanches
Copy link
Collaborator Author

hey! I just figured it out!

This is a good one:

sudo apt-get install libmono-system-windows-forms4.0-cil

Installed and running! Yay!

felipesanches added a commit to felipesanches/fontbakery that referenced this issue May 9, 2017
@davelab6
Copy link
Contributor

davelab6 commented May 9, 2017 via email

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

No branches or pull requests

2 participants