Giter VIP home page Giter VIP logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Text: SDL_ttf can do all the pixel work, including optional AA, as long as we 
write 
the converter from "SDL_Surface (RGB)" to 2D byte array (8bit)"
Text should be rendered AS a brush! Then you can apply any Brush 
transformations, 
like Rotate, Stretch, Outline; You preview where you paste it, and you select 
any 
combination of modes: Transparency, Shading...

Original comment by yrizoud on 10 Oct 2008 at 2:16

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
SDL_ttf only gives monochromatic text, however, while Sfont can handle colors. 
Anyways, the Sfont format is really, really simple and with some tricks we can 
probably make SDL_ttf render a file suitable for handling with Sfont.

Rendering as brush is quite a good idea :)

Original comment by [email protected] on 10 Oct 2008 at 2:44

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
In progress. 
No commit until clean and stable, unless I make a branch for this...

TrueType fonts require a heap of depedencies, so I'll make it optional when 
compiling (make NOTTF=1). The binaries WILL have the problem as well, the do 
require 
a handful of run-time libraries. The Windows install can contain the 3 or 4 
extra 
DLLs in its own directory, but in Linux it's not as simple...

Original comment by yrizoud on 20 Oct 2008 at 12:56

  • Changed title: Text tool
  • Changed state: Started

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Changing owner

Original comment by [email protected] on 20 Oct 2008 at 6:35

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Current status is that the Text tool works and is stable on Windows.
my TODO:
Support PageUp/PageDown keys in font selector. Arrows/Home/End are already done.
Linux: Find fonts (/usr/share/fonts/ ?)
Windows: Better enumeration of fonts by browsing %windir%/fonts
Bold and Italic for TTF fonts (SDL_ttf seems to support them)
Better GUI, showing TTF options as a group (disabled when a non-TTF font is 
selected)

WISHLIST:
Windows: Better enumeration of fonts by reading the registry
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts)


Original comment by yrizoud on 10 Nov 2008 at 1:58

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
Linux : font now found with XLib. Needs some sorting and removing of duplicates 
on 
my system ...

Original comment by [email protected] on 13 Nov 2008 at 8:25

from grafx2.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
I think it's done

Original comment by yrizoud on 3 Dec 2008 at 9:00

  • Changed state: Fixed

from grafx2.

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.