Closed GustavoHennig closed 6 years ago
@GustavoHennig
Thank you for your interest. That guide is too old. I will revise it again later.
at this moment, I provide an early help first.
2018, June
OS: Win10 Visual Studio: 2017
Screenshot step-by-step is here :)
1. Clone I start with a folder name 'd:\projects'
We need 2 projects
1) HtmlRenderer (https://github.com/LayoutFarm/HtmlRenderer, master branch) 2) PixelFarm (https://github.com/PaintLab/PixelFarm, master branch)
clone it into the d:\projects folder
pic 1: the 2 projects must be placed in the same level like this picture, there are cross-references between them
2. Build PixelFarm
pic 2: VS2017, Open that MiniDev.sln in that folder
pic 3: Solution Explorer, Build All
pic 4: Succeeded!
3. Build HtmlRenderer
pic 5: Open that solution
pic 6: Solution Explorer, Build All
pic 7: Succeeded!
4. Test It
_pic 8: F5 on Test3MixHtml project, click the example in the RedBox
pic 9: Acid1 test page
Thank you, it worked!
I had to do 2 small changes to run:
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
If you want that data ... "d:/test/icu60/brkitr_src/dictionaries" =>
It is 'raw' Icu data for text-break
It try to look for this ... https://github.com/PaintLab/PixelFarm/tree/dev/src/PixelFarm/Typography/Typography.TextBreak/icu61/brkitr/dictionaries
or download the original Icu data (http://cldr.unicode.org/)
More info about HtmlRenderer ... see https://github.com/LayoutFarm/HtmlRenderer/issues/15
This guide has been changed again.
Previously, the Typography lib is embeded in the PixelFarm.
Now, I spin off the Typography, and remove it from PixelFarm.
When one build the PixelFarm. You need to clone the Typography into the folder (Typography) at the same level as PixelFarm. (like the HtmlRenderer need the PixelFarm on the same level)
Failed to build the Typography! The error is found at: BitmapFontMx->ReadGlyphImages method. It seems that a GetBuffer method is missing in type PixelFarm.CpuBlit.ActualBitmap.
Hello @jingyiliu
I forget to upload latest Typography.
The error should be fixed with this https://github.com/LayoutFarm/Typography/commit/3b990f0057ff1901d10abde38a0ef15b8efa63a7
It works now. Thank you for your quick response.
Latest all-in-one build, see=> https://github.com/LayoutFarm/HtmlRenderer.Build
Hi, I am trying to build the project and I have many broken references and there are several projects unavailable. Is this guide still valid? https://github.com/LayoutFarm/HtmlRenderer/wiki/3.-Build-The-Project