GithubHelp home page GithubHelp logo

cobrand / rust-sdl2_ttf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andelf/rust-sdl2_ttf

0.0 2.0 0.0 147 KB

Rust bindings for sdl2_ttf.

License: MIT License

Makefile 42.12% Rust 57.88%

rust-sdl2_ttf's Introduction

Rust-SDL2_ttf

Build Status crates.io

Rust bindings for SDL2_ttf.

Overview

Rust-SDL2_ttf is a library for talking to the new SDL2_ttf library from Rust.

Rust-SDL2_ttf uses the MIT licence.

Requirements

  • Rust-SDL2
  • SDL2_ttf development libraries
  • Rust master or nightly

Installation

Place the following into your project's Cargo.toml file:

[dependencies]
sdl2_ttf = "0.25"

sdl2_ttf is directly compatible with the corresponding version of sdl2. Hence sdl2_ttf v0.15 is compatible with sdl2 0.15, and so forth. Backwards compatibility is not guaranteed by rust-sdl2, so take that into account when creating new projects !

If you want the newest rust-sdl2_ttf, reference the repository:

[dependencies.sdl2_ttf]
git = "https://github.com/andelf/rust-sdl2_ttf"

You can also just clone and build the library yourself:

git clone https://github.com/andelf/rust-sdl2_ttf
cd rust-sdl2_ttf
cargo build
# TODO: OR if you are using the mac framework version
rustc -L. --cfg mac_framework src/sdl2_ttf/lib.rs

If you're not using Cargo, you can compile the library manually:

git clone https://github.com/andelf/rust-sdl2_ttf
cd rust-sdl2_ttf
rustc src/sdl2_ttf/lib.rs

Demo

A simple demo that prints out a string given a font is included:

cargo run --example demo /path/to/font.(ttf|ttc|fon)

rust-sdl2_ttf's People

Contributors

andelf avatar bvssvni avatar caryhaynie avatar cobrand avatar cristicbz avatar crumblingstatue avatar deadacute avatar dpc avatar dpetersen avatar icefoxen avatar jadpole avatar onur avatar sbidin avatar theneikos avatar

Watchers

 avatar  avatar

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.