microsoft / Font-Validator

Font Validator is a tool for testing fonts prior to release. This testing ensures that fonts meet Microsoft's high quality standards and perform exceptionally well on Microsoft's platform.
Other
117 stars 41 forks source link

XML viewing not Implemented on non-windows #7

Open schriftgestalt opened 9 years ago

schriftgestalt commented 9 years ago

But I build and run it on windows.

HinTak commented 9 years ago

You can follow the hints in README-hybrid.txt to build a partial hybrid binary. I didn't want to push the code out for the hybrid branch out because I do not want to encourage efforts in a windows-only direction. But the hybrid branch works okay for what it is - it is a windows-only answer.

EDIT: See pull/5 for a URL to download a hybrid binary, the one on js and xsl.

HinTak commented 9 years ago

New hybrid build under: http://sourceforge.net/projects/hp-pxl-jetready/files/private-test-data/stuff_special_usage_only/

HinTak commented 9 years ago

@schriftgestalt I am a bit confused - is this filing about XML viewing not working in general (a known issue, which I have worked on a bit but did not get very far and nothing to share/show yet, and not really a priority...), or that you don't care about other platforms and that you want XML to work on windows now, as it did with the 2003 version?

For the latter, that's what the hybrid build is for. For the former, well, patch welcomed...

schriftgestalt commented 9 years ago

I was just wondering that the windows version couldn’t do it. Is there some documentation on how to build on windows? The normal (?) and the hybrid version?

HinTak commented 9 years ago

To build on windows you do the same thing: download the windows version of mono, and also a copy of GNU make for windows from somewhere (cygwin/mingw?).

It mostly used to build with MS Visual Studio. All support for building with visual studio was removed before it fell into my hand. I have no intention of re-adding that, just not worth my time. You are welcomed to try to figure out how that's done though.

The source code to the XML viewer was never released. The hybrid branch copies a few DLLs from the 2003 binary and utilises that. It is rather dudbious legally (although the 2003 binary is still publicly available, re-distributing bits of it in an updated package probably isn't supposed to happen), and technically (no improvements, changes can be made in those area). That said, it works on windows, and for windows-only, as good as the XML viewing under the 2003 binary because it is literally the same thing.

I am still debating with myself whether to push the code for the hybrid branch out. On the whole I do not want to encourage development on it. It is a dead-end.

If you are simply enquiring about XML viewing not implemented, this can be closed. It is mentioned in the initial announcement, as well as in the top level README.txt. We known about that issue, it is the "big 3" TODOs. Nothing to say further about that, until somebody want to spend time working on it.

HinTak commented 8 years ago

As of this morning, XML viewing on platforms equipped with the webkit library - that means linux, but also to some extent Mac OS X - also works; on windows, XML viewing on the default build and the hybrid build differs only by the text-search functionality on the hybrid build. (i.e. you can't text-search on the default build). If nobody cares about text-search, I'll retire that part of the hybrid build.

HinTak commented 8 years ago

Actually the most current group of changes means that XML report viewer uses IE on windows but webkit on linux. (and gecko on wine).

HinTak commented 8 years ago

The latest codes have some support for building with visual studio - you should be able to build almost all the individual dlls/exes except the Compat module, by loading the corresponding vs proj file from the relevant directory. The Compat dll is currently a binary dll requirement for building under visual studio - i.e. it currently requires that a binary of the Compat.dll to be present, I think - , but I hope to make it a source requirement (i.e. loading any of the dependent vs studio project file should build Compat.dll too.) at some point. TODO.

HinTak commented 8 years ago

Building with visual studio is tracked with https://github.com/HinTak/Font-Validator/issues/8

XML viewer was re-implemented form windows with Jan 6: https://github.com/HinTak/Font-Validator/commit/ea01171283307c71bc6620c15caf869332f74f17

XML viewing via a webkit bridge works on linux on Jun 6 with: https://github.com/HinTak/Font-Validator/commit/8575e92d47c27d2722e67e2c9c79099f273c9ad4

Mac OS X's webkit bridge on Cocoa is tracked with a issue just filed - https://github.com/Microsoft/Font-Validator/issues/29

So this could probably be closed...