Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text tool #29

Closed
GoogleCodeExporter opened this issue Aug 14, 2015 · 7 comments
Closed

Text tool #29

GoogleCodeExporter opened this issue Aug 14, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

There are two unimplemented features : rectangle gradients and text.

Rectangles gradients should work with a rectangle as usual, then a vector 
(line) to indicate the gradient's speed and direction. Maybe other modes 
can be added.

Text can be done either with truetype things (somewhat complex with SDL, 
but supported), or with bitmap fonts like the config tool with the same 
library, SFont. In this case, providing features such as rotating, 
zooming, scaling, and so on, plus some default fonts. Maybe we could use 
some kind of vector path and draw with brushes following the path, may 
enable interesting effects, but, will be horribly long to render. As with 
other operations, a preview mode will be useful :)


Original issue reported on code.google.com by pulkoma...@gmail.com on 9 Oct 2008 at 9:12

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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 pulkoma...@gmail.com on 10 Oct 2008 at 2:44

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Changing owner

Original comment by pulkoma...@gmail.com on 20 Oct 2008 at 6:35

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Linux : font now found with XLib. Needs some sorting and removing of duplicates 
on 
my system ...

Original comment by pulkoma...@gmail.com on 13 Nov 2008 at 8:25

@GoogleCodeExporter
Copy link
Author

I think it's done

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant