Giter Site home page Giter Site logo

aseprite / freetype2 Goto Github PK

View Code? Open in Web Editor NEW
90.0 90.0 54.0 24.34 MB

FreeType2 mirror + changes for Aseprite

Home Page: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/

License: Other

CMake 0.49% Makefile 2.13% Shell 0.19% C 93.16% Awk 0.05% Python 1.81% HTML 0.09% C++ 0.34% Perl 0.16% DIGITAL Command Language 0.80% M4 0.57% Meson 0.19%

freetype2's Introduction

Aseprite

build Translation Status Discourse Community Discord Server

Introduction

Aseprite is a program to create animated sprites. Its main features are:

Issues

There is a list of Known Issues (things to be fixed or that aren't yet implemented).

If you found a bug or have a new idea/feature for the program, you can report them.

Support

You can ask for help in:

Authors

Aseprite is being developed by Igara Studio:

Credits

The default Aseprite theme was introduced in v0.8, created by:

A modified dark version of this theme introduced in v1.3-beta1 was created by:

Aseprite includes color palettes created by:

It tries to replicate some pixel-art algorithms:

Thanks to third-party open source projects, to contributors, and all the people who have contributed ideas, patches, bugs report, feature requests, donations, and help us to develop Aseprite.

License

This program is distributed under three different licenses:

  1. Source code and official releases/binaries are distributed under our End-User License Agreement for Aseprite (EULA). Please check that there are modules/libraries in the source code that are distributed under the MIT license (e.g. laf, clip, undo, observable, ui, etc.).
  2. You can request a special educational license in case you are a teacher in an educational institution and want to use Aseprite in your classroom (in-situ).
  3. Steam releases are distributed under the terms of the Steam Subscriber Agreement.

You can get more information about Aseprite license in the FAQ.

freetype2's People

Contributors

antoinel avatar anuj99 avatar anuthadev avatar apodtele avatar arichardson avatar behdad avatar cherusker avatar chris-liddell avatar davearnold avatar drott avatar ewaldhew avatar heftig avatar hintak avatar hughmcmaster avatar infinality avatar jfkthame avatar joukj avatar jtytgat avatar lemzwerg avatar madig avatar moazin avatar mpsuzuki avatar nikramakrishnan avatar olvaffe avatar preverse45 avatar priyeshkkumar avatar sebras avatar tp-m avatar vinniefalco avatar xclaesse 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  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

freetype2's Issues

undefiened reference error when compiling c++ file which includes freetype

Hello everyone,

I'm trying to compile freetype2.5 on ubuntu 20.04 LTS (virtual machine), so that I can use it to compile a c++ script. where I'm facing lot's of errors.

Firstly, I've followed the following instructions to compile freetype2:
https://github.com/metafloor/bwip-js/wiki/Compiling-FreeType

I'm trying to run the following script:
https://gist.github.com/jokertarot/7583938

the errors which I'm getting are the following, they're all 'undefined reference to '####'';


1 . undefined reference to `FT_New_Face'
2 . undefined reference to `FT_Done_Face'
3 . undefined reference to `FT_Get_Char_Index'
4 . undefined reference to `FT_Load_Glyph'|
5 . undefined reference to `FT_Render_Glyph'|
6 . undefined reference to `FT_Load_Sfnt_Table'|
7 . undefined reference to `FT_Set_Pixel_Sizes'|
8 . undefined reference to `FT_Select_Size'|
9 . undefined reference to `png_create_write_struct'|
10. undefined reference to `png_create_info_struct'|
11. undefined reference to `png_set_longjmp_fn'|
12. undefined reference to `png_set_IHDR'|
13. undefined reference to `png_init_io'|
14. undefined reference to `png_malloc'|
15. undefined reference to `png_malloc'|
16. undefined reference to `png_set_rows'|
17. undefined reference to `png_write_png'|
18. undefined reference to `png_free'|
19. undefined reference to `png_free'|
20. undefined reference to `png_destroy_write_struct'|
21. undefined reference to `FT_Init_FreeType'|
22. undefined reference to `FT_Done_FreeType'|

The freetype library which I'm including to the gcc is located under the following path on my linux machine:
/usr/include/freetype2

My questions are:

  1. Did I compile freetype2 correctly? if not, how should I compile it correctly, can you please provide me with the correct instructions?
  2. might the problem be that I am not including the freetype library correctly to the compiler(gcc)?
  3. and for people who's familiar and experienced with freetype, can you provide me with clear instructions to follow while compiling it?

I've searched a lot for a solution, unfortunately, I didn't find anything in regard.
any help would be highly appreciated.
Thank you!

freetype2.pc contains wrong version 2.10.0

I am trying to build libass(for mpv), and I get the following error:

configure: error: Package requirements (harfbuzz >= 1.2.3) were not met:

Package 'harfbuzz' requires 'freetype2 >= 12.0.6' but version of freetype2 is 2.10.0
You may find new versions of FreeType 2 at https://freetype.org

The docs/VERSIONS.TXT says this about versioning:

For each new  public release of FreeType 2, there  are generally *three*
distinct `version' numbers to consider:

  * The official FreeType 2 release number, like 2.3.1 or 2.4.10.

  * The libtool (and  Unix) specific version number,  like 13.0.7.  This
    is what `freetype-config --version' returns.

  * The platform-specific  shared object  number, used for  example when
    the library is installed as `/usr/lib/libfreetype.so.6.7.1'.

But the generated freetype2.pc contains the following:

Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 2.10.0
Requires:
Requires.private: zlib, bzip2, libpng, harfbuzz
Libs: -L${libdir} -lfreetype
Libs.private: 
Cflags: -I${includedir}/freetype2

however it should contain 13.0.7+ version according to the documentation.

I am building freetype with the following CMake statement:

ExternalProject_Add(
        freetype2
        DEPENDS           HarfBuzz
        GIT_REPOSITORY    https://github.com/aseprite/freetype2.git
        GIT_TAG           VER-2-10-0
        CMAKE_ARGS        -DCMAKE_INSTALL_PREFIX=${ROOT_PATH} -DCMAKE_PREFIX_PATH=${ROOT_PATH}

        BUILD_ALWAYS      OFF
        BUILD_IN_SOURCE   OFF)

Does Not Compile With Hazbuff

I am having issues compiling ffmpeg with libfreetype with this commmand on windows MSYS2:

./configure     --pkg-config-flags="--static" --enable-libvpl  --enable-libopenh264     
--enable-version3  --enable-libfreetype    --enable-libopus     --enable-libvpx     --enable-libvorbis     
--enable-libaom     --enable-libdav1d     --disable-gpl     --disable-w32threads     --enable-pthreads     
--disable-shared     --enable-static     
--extra-cflags='--static'   --extra-cflags="-I/mingw64/include -static"   --extra-ldflags="-L/mingw64/lib -static" --prefix="/home/compiled"

I keep getting this error:

ERROR: freetype2 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

I've installed freetype with this command:

 pacman -Ss mingw-w64-x86_64-freetype

I've also tried compiling freetype2 from the source:

git clone https://git.savannah.gnu.org/git/freetype/freetype2.git

cd freetype2

mkdir build && cd build

/mingw64/bin/cmake .. -G "MSYS Makefiles" -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/mingw64

make

make install

And pkg-config gives this:

pkg-config freetype2 --cflags --libs
-IC:/msys64/mingw64/include/freetype2 -IC:/msys64/mingw64/include/harfbuzz -IC:/msys64/mingw64/include/glib-2.0 -IC:/msys64/mingw64/lib/glib-2.0/include -IC:/msys64/mingw64/include/libpng16 -lfreetype

I can confirm the package is there:

ls /mingw64/lib/pkgconfig/freetype2.pc
/mingw64/lib/pkgconfig/freetype2.pc

My logs are giving this erro:

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
C:/msys64/mingw64/lib\libfreetype.a(src_autofit_autofit.c.obj):(.text+0x7cfc): undefined reference to `hb_buffer_destroy'
collect2.exe: error: ld returned 1 exit status
ERROR: freetype2 not found using pkg-config

Compilubf will work if I compile freetype without harfbuzz.

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.