Comments (7)
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.
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.
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.
Changing owner
Original comment by [email protected]
on 20 Oct 2008 at 6:35
from grafx2.
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.
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.
I think it's done
Original comment by yrizoud
on 3 Dec 2008 at 9:00
- Changed state: Fixed
from grafx2.
Related Issues (20)
- Split up graph.c, operatio.c and possibly other big files. HOT 2
- Build system : dependancies HOT 9
- Be able to choose number of cells in lower right palette window HOT 23
- Linux deployment: Program, data, user configuration HOT 4
- Gradation Rectangle lacks clipping HOT 4
- Missing refresh on brush grab with RMB HOT 2
- Cannot type a new name for "save as" or "load as" HOT 2
- win32 packages lack zlib1.dll and libpng13.dll HOT 1
- Uncomplete brush display on top of screen HOT 2
- Palette screen: Missing refresh of bg color HOT 1
- Save/Load: missing refresh in preview area HOT 1
- Window resizing and zoom mode HOT 3
- Missing refresh in splines HOT 2
- Missing refresh in brush rotation HOT 1
- Program hang in Save/Load HOT 1
- SFont: Wrong spacing HOT 5
- Changes after r335 that don't compile on haiku HOT 14
- Strange handling of simultaneous mouse events HOT 7
- Improved palette reduction algorithm HOT 29
- Not the latest version of GrafX2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafx2.