Coder Social home page Coder Social logo

Build problems about htmlrenderer HOT 9 CLOSED

layoutfarm avatar layoutfarm commented on May 21, 2024
Build problems

from htmlrenderer.

Comments (9)

prepare avatar prepare commented on May 21, 2024 1

@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.


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

  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

01_started_with_proje_cts_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

02_open_pixelfarm_minidev_sln
pic 2: VS2017, Open that MiniDev.sln in that folder


03_build_pixelfarm
pic 3: Solution Explorer, Build All


04_pixelfarm_succeeded

pic 4: Succeeded!


3. Build HtmlRenderer

05_build_html_renderer

pic 5: Open that solution


06_build_html_renderer

pic 6: Solution Explorer, Build All


07_html_renderer_succeeded

pic 7: Succeeded!


4. Test It

08_test3_mixhtml

pic 8: F5 on Test3_MixHtml project, click the example in the RedBox


09_acid1_sample

pic 9: Acid1 test page


from htmlrenderer.

GustavoHennig avatar GustavoHennig commented on May 21, 2024 1

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.

prepare avatar prepare commented on May 21, 2024 1

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.

jingyiliu avatar jingyiliu commented on May 21, 2024 1

It works now.
Thank you for your quick response.

from htmlrenderer.

prepare avatar prepare commented on May 21, 2024 1

Latest all-in-one build, see=> https://github.com/LayoutFarm/HtmlRenderer.Build

from htmlrenderer.

prepare avatar prepare commented on May 21, 2024

More info about HtmlRenderer ...
see #15

from htmlrenderer.

prepare avatar prepare commented on May 21, 2024

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.

jingyiliu avatar jingyiliu commented on May 21, 2024

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.

prepare avatar prepare commented on May 21, 2024

Hello @jingyiliu

I forget to upload latest Typography.

The error should be fixed with this LayoutFarm/Typography@3b990f0

from htmlrenderer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.