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)
- Program won't start HOT 4
- Brush flip/rotate functions ineffective on diagonal/straight line presets HOT 2
- Rightclicking on brush selection button with preset active is surprisingly useless HOT 1
- Mouse Cursor Slow / Lags on OSX 10.8.4 HOT 4
- Windows 7 Window blinks to black on startup HOT 1
- No keyboard shortcut for animation play/play backward
- Grid is faulty - 1x1 pixel off HOT 6
- DPaint-like draw modes HOT 2
- Load/Save palettes HOT 9
- Load/Save palettes HOT 1
- Android patches HOT 1
- relative paths should allways start from same point
- Selecting a GIF anim in the Load file selector make the application to crash
- text immission HOT 2
- Drawing in animation
- use brush as pattern fill HOT 1
- webcam or video capture via script HOT 1
- new Lua script: palette extender
- Hue shift slider
- 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.