Comments (9)
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.
How to Build the HtmlRenderer
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
- HtmlRenderer (https://github.com/LayoutFarm/HtmlRenderer, master branch)
- 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 Test3_MixHtml project, click the example in the RedBox
pic 9: Acid1 test page
from htmlrenderer.
Thank you, it worked!
I had to do 2 small changes to run:
- Comment the line: CommonTextServiceSetup.cs:58 (I don't have the file: "d:/test/icu60/brkitr_src/dictionaries")
- I had to put this line in the main, due an exception in the float.parse. (In my location settings "," is the decimal separator).
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");
from htmlrenderer.
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/)
from htmlrenderer.
It works now.
Thank you for your quick response.
from htmlrenderer.
Latest all-in-one build, see=> https://github.com/LayoutFarm/HtmlRenderer.Build
from htmlrenderer.
More info about HtmlRenderer ...
see #15
from htmlrenderer.
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)
from htmlrenderer.
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.
from htmlrenderer.
Hello @jingyiliu
I forget to upload latest Typography.
The error should be fixed with this LayoutFarm/Typography@3b990f0
from htmlrenderer.
Related Issues (20)
- HAPPY NEW YEAR 2018 :)
- Notes on my intentions HOT 13
- Please have a release that contains binaries HOT 2
- implement MathML HOT 3
- Separate Layout and Rendering
- add ability to add custom elements HOT 7
- add webcomponents
- Developing Html Input HOT 9
- HtmlHost
- Is this cross-platform HOT 4
- css-houdini
- can use this make a HTML editor? HOT 1
- Won't build by default in VS 2019 HOT 1
- Sync this with the original repo and point the original repo to here HOT 3
- could you port this to AvaloniaUI? HOT 1
- Trying to build on Ubuntu 19 HOT 16
- Can not compile on VS2015 HOT 2
- a idea for make a new ui by html-Renderer(HtmlRenderer)
- System.DllNotFoundException HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlrenderer.