Robert Osfield
67202b2662
From Romain Ouabdelkader, "This is a fix for osgText to calculate kerning and to load glyph3D with the text's font resolution.
...
Font::getKerning(...), Font::getGlyph3D(...) doesn't ask for a font resolution so it uses the last font resolution requested by Font:: getGlyph(...).
This can leads to different results depending of the precedent call to Font::getGlyph(...).
See http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2016-January/271952.html for more infos.
This fix adds a font resolution parameter to Font::getKerning(...), Font::getGlyph3D(...) and to the font implementations.
This was made under the base revision r15182."
2016-02-15 13:30:39 +00:00
Robert Osfield
47db2da8b4
From Andreas Henne, Support for GL3 core profile in osgText
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14717 16af8721-9629-0410-8352-f15c8da7e697
2015-02-25 18:56:29 +00:00
Robert Osfield
14a563dc9f
Ran script to remove trailing spaces and tabs
2012-03-21 17:36:20 +00:00
Robert Osfield
af01a9e984
From Mathias Froehlich, "The attached change to the default font makes the baseline correctly working
...
and makes the glyphs aspect ratio match their 12x8 bitmaps.
I am not exactly sure about osgTexts current internals but it matches the
changes that happened lately to the txf font.
"
2012-02-06 13:35:45 +00:00
Robert Osfield
fe1c75aa8a
Fixed handling of Font implementations that don't handle multiple font resolutions.
2011-05-13 19:08:04 +00:00
Robert Osfield
1c9d800756
Fixed size of default font
2011-01-28 12:34:49 +00:00
Robert Osfield
50be800787
Moved TextNode into osgText.
...
Cleaned up freetype plugin so it no longer does tesselation - instead Glyph and TextNode do this.
2010-09-07 18:18:35 +00:00
Robert Osfield
ba10f56f86
Refactored to use a typedef of Font to Font3D rather than have a separate Font3D class
2010-09-03 09:08:19 +00:00
Robert Osfield
8c3e3055e7
Refactored osgText::Font so that it now supports both 2D and 3D glyphs.
...
Added TextNode.h and TextNode.cpp to examples/osgtext3D in prep for introducing the new node to osgText library
2010-09-03 08:26:46 +00:00
Robert Osfield
adc302072f
converted osg::notify to OSG_INFO etc.
2010-05-28 16:00:45 +00:00
Robert Osfield
8f6db66e59
Added setting of the charcode during construction of osgText::Font::Glyph()
2010-01-14 15:15:42 +00:00
Robert Osfield
93127866a8
From Sid Byce, fixes for compiling with gcc 4.3
2007-12-24 15:19:52 +00:00
Robert Osfield
ce5388a8bc
Convert osgText and freetype plugin across to keeping the font size as state that
...
is passed into the getGlyph and getKerning methods rather than a current state of the font itself.
2007-12-23 18:15:54 +00:00
Robert Osfield
dea067050c
Renamed osgText::Font::SizePair to osgText::FontSizePair in prep for use this more
...
widely within osgText/freetype plugin.
Added support for inserting loading models into --mt multithreaded implementation.
2007-12-23 13:18:40 +00:00
Robert Osfield
f4afa427a7
From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."
2007-12-10 17:30:18 +00:00
Robert Osfield
c2156f12ff
Added mutex to DefaultFont::instance().
2007-09-04 12:38:42 +00:00
Robert Osfield
198c3d3e5a
Removed margin
2007-05-04 12:06:31 +00:00
Robert Osfield
f1c2694c17
Updated copyright years.
2006-07-18 15:21:48 +00:00
Robert Osfield
84aef32552
Removed old LUMINANCE_ALPHA code pathways since they are no longer used.
2005-04-28 19:08:44 +00:00
Robert Osfield
678b22ce83
Updated Copyright notices to 1998-2005.
2005-04-14 21:41:28 +00:00
Robert Osfield
bbde1b2ae7
Fixes for optional compile of GL_LUMINANCE_ALPHA and GL_ALPHA texture usage
...
in fonts. Default to GL_ALPHA.
2003-12-09 12:04:14 +00:00
Robert Osfield
4c3f6004df
Moved osgText across to create GL_ALPHA textures instead of GL_LUMINANCE_ALPHA
2003-12-09 11:31:33 +00:00
Robert Osfield
8d4ab4668e
From Tree, updates to osgText and freetype plugin to support are kerning paramter.
2003-06-26 16:21:49 +00:00
Robert Osfield
c784f8a669
Changed the background pixel colour to white, but kept the alpha value zero.
...
This has been done to improve the quality of the mip mapping of text.
2003-03-27 10:58:20 +00:00
Robert Osfield
fab6f24f4e
Changed the osgText::Font implementation so it used a facade us abstract away
...
the actual implemention. This has been done so that when a freetype font is
created the implementation can unloaded when the freetype plugin is unloaded
without breaking the main font.
Also add image margin around founds to prevent any image boundaries appearing.
2003-03-06 17:11:24 +00:00
Robert Osfield
d1c0d74bb7
Fix for non standard compiliant Forte compilers.
2003-03-05 20:18:12 +00:00
Robert Osfield
1c34c0981e
Further improvements to osgText and the freetype plugin, handling different
...
font sizes better and plugin removal safely.
2003-03-04 12:34:42 +00:00
Robert Osfield
fbe674b321
First cut of new osgText implementation.
2003-03-02 21:05:05 +00:00