Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upUse rusttype instead of freetype-rs #38
Comments
kvark
added
enhancement
discussion
labels
Feb 5, 2016
This comment has been minimized.
This comment has been minimized.
|
Are there any advantages except removing freetype dependency (which is rather inconvenient to setup properly on Windows)? Library looks too young yet. Though I have no objections if it works good with common ttf fonts. |
This comment has been minimized.
This comment has been minimized.
|
No rush on this, of course, but I figured we need to have an issue at least to keep rusttype on our radars;) |
kvark
referenced this issue
Feb 10, 2016
Closed
Switch from freetype-rs to rusttype (or provide it as an alternative) #276
This comment has been minimized.
This comment has been minimized.
|
Now that rusttype got gpu caching, it is twice as important to have some glue to it in order to encapsulate all the boiler plate. RustType has an example with glium, and you can see how much code could be saved there. cc @dylanede |
This comment has been minimized.
This comment has been minimized.
|
Interesting. Though currently in gfx_text we create texture with all needed glyphs on initialization step (i.e. once at start before main loop), so this will probably require architecture changes. |
This comment has been minimized.
This comment has been minimized.
dylanede
commented
Mar 21, 2016
|
@kvark A lot of the code in the example is probably analogous to existing code in gfx_text. Stuff like keeping track of which glyphs to draw, producing the quads to draw etc. There will need to be a wrapper around the caching mechanism itself though. You will need to decide how to handle exceptional conditions, like what to do if there's not enough room in the cache to fit all the required glyphs for the current frame. I've written up some information about the possible choices in the I also plan to clean up the caching example to separate the stuff specific to caching from the stuff specific to rendering with glium. |
This comment has been minimized.
This comment has been minimized.
aschuhardt
commented
Mar 3, 2017
|
Is there any update on this? |
This comment has been minimized.
This comment has been minimized.
|
Should not be too hard. We have already ported the Piston 2D graphics backends to RustType. Example: https://github.com/PistonDevelopers/gfx_graphics/blob/master/src/glyph.rs |
This comment has been minimized.
This comment has been minimized.
norru
commented
Nov 29, 2017
•
|
If it helps, I have replaced the low level |
This comment has been minimized.
This comment has been minimized.
norru
commented
Nov 29, 2017
|
Rounding up on older posts on the matter. Is |
This comment has been minimized.
This comment has been minimized.
marek-g
commented
Mar 12, 2018
|
|
kvark commentedFeb 5, 2016
See https://github.com/dylanede/rusttype