Code Monkey home page Code Monkey logo

zwcloud / cairosharp Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 11.0 51.79 MB

A C# wrapper of cairo http://cairographics.org/

License: GNU Lesser General Public License v3.0

C# 0.66% Shell 3.64% C++ 1.66% C 71.54% Makefile 7.75% HTML 8.90% CSS 0.03% Objective-C 1.26% Awk 0.15% JavaScript 0.04% PHP 0.37% Smalltalk 1.42% Python 0.58% CMake 0.12% Perl 0.05% DIGITAL Command Language 0.23% Assembly 1.56% Batchfile 0.01% Module Management System 0.01% SAS 0.01%

cairosharp's People

Contributors

gfoidl avatar zwcloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cairosharp's Issues

Failed to build CairoDemo via a clear clone.

for #1

environment: Win10 x64, VS2017 15.0.27130.2020

Error message from package manager:

Error occurred while restoring NuGet packages: The local source 'D:\my\CairoSharp\NuGet-Packed' doesn't exist.

Error message from package manager:

CS0518 Predefined type 'System.Object' is not defined or imported CairoDemo D:\my\CairoSharp\demos\CairoDemo\Program.cs
(and many more like above)

Current clone-build-run experience is not seamless.

We must ensure that the following process is never interrupted by any errors that is hard to solve.

  1. git clone
  2. build solution
  3. debug/release run demo projects

Some hard errors that should be avoided:

  1. Windows SDK version not right: users need to download the required windows SDK, which is really time-consuming.
  2. .NET Framework / .NET Core not installed: time-consuming
  3. Provide pre-built dll/so if a developer don't want to build native libraries by him/herself, which is time-consuming.

Target: Clone, build C# projects and run demos seamlessly on Win10 with VS2017 only.

  • Windows
  • Linux

Context.FontMatrix cause an exception to be thrown.

This is an issue from Brad and is to be reproduced.

Context context;
Matrix matrix = context.FontMatrix;

This will cause an exception to be thrown. It looks like it is coming from the Native code. I wasn’t sure how you were sourcing the cairod.dll so I stopped digging there.

Unresolved external symbol when building native dependencies

Hi

I have tried to download the source code and build it, but I ran into a problem with this when building the native dependencies. I get the following output from build:
1>cairo-surface-observer.obj : error LNK2001: unresolved external symbol __cairo_script_context_create_internal
1>cairo-surface-observer.obj : error LNK2001: unresolved external symbol __cairo_script_context_attach_snapshots
1>C:\Users\fazal\Libraries\CairoSharp\source\Native\Output\bin\win-x64\cairo.dll : fatal error LNK1120: 2 unresolved externals

Any help with this would be greatly appreciated.

Draw text using Windows system fonts?

Is it possible to draw text using one of the pre-installed Windows system fonts? I read in the cairo reference manual a little bit, and it seems like it somehow depends on which font backend is enabled in cairo. Seems to be a fairly complex topic.

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.