Robert Osfield
40d5d1712d
Changed to an int comparison
2016-07-02 11:09:12 +01:00
Robert Osfield
77812b32e0
Added handling of potential zero divisor
2016-06-30 08:14:48 +01:00
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
ba9dfb2ff6
From Albert Luaces, typo fixes.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14883 16af8721-9629-0410-8352-f15c8da7e697
2015-06-01 13:40:20 +00:00
Robert Osfield
1270236715
From Torben Dannhauer, VisualStudio 2013 build fixes
2014-01-24 16:24:59 +00:00
Robert Osfield
14a563dc9f
Ran script to remove trailing spaces and tabs
2012-03-21 17:36:20 +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
460f433ca7
Improved the size, advance and bearing settings
2011-05-13 11:20:48 +00:00
Robert Osfield
3a4ff98883
Added setting of size.
2011-05-12 10:10: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
02266d0af3
Converted osg::notify to OSG_INFO etc.
2010-05-28 17:14:58 +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
720551d549
From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and
...
fopen to osgDB::fopen to facilitate support for wide character filenames using UT8 encoding.
2008-11-07 15:08:08 +00:00
Robert Osfield
02b456bcfa
Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
...
to help enable better querying of supported features
2008-07-13 22:18:59 +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
f290b75bc9
Moved Font code across to using FontSizePair internally and on Font methods, but
...
still using original implemetations.
2007-12-23 13:45:37 +00:00
Robert Osfield
9e2fe92ef1
From Rudolf Wiedemann, "I need to link OpenSceneGraph statically to my application, so I
...
completed the new registration of the plugin-readerwriters
("REGISTER_OSGPLUGIN") according to your osgstaticviewer-example (see
attachment, based on today's svn)."
2007-07-06 13:54:26 +00:00
Robert Osfield
6bf7fec64e
From Olaf, "there are more dubious calls to istream::readsome instead of
...
istream::read. IMHO it does make no sense here and potentially breaks
this plugin."
2007-05-24 09:49:22 +00:00
Robert Osfield
94b3a63e0c
From Olaf Flebbe, "FlightGear/OSG on Windows did not load the Texture Fonts.
...
1) TXF Fonts are binary.
2) Do not rely on the result of istream::readsome if buffer _is_ empty
and no data have been read before."
2007-05-21 08:01:45 +00:00
Robert Osfield
dadb92ea64
Reorganised the managment of margins around glyphs so that is done entirely
...
with src/osgText/Font.cpp rather than the font plugins or Text.cpp
2007-05-04 12:05:29 +00:00
Robert Osfield
2e6ee4bb39
Removed old gmake and VisualStudio build files
2007-04-10 13:10:25 +00:00
Robert Osfield
282f4ce0b9
Moved the TARGET_NAME setting into the OsgMacroUtils.cmake.
2007-03-19 17:24:19 +00:00
Robert Osfield
9b30cf2960
Added CMake support for txf, osgViewer and osgShadow plugins
2007-03-19 14:10:12 +00:00
Robert Osfield
24bc488205
From Mathias Fröhlich, "Attached is a small change that makes the txf loader render the same resulting
...
text than an other well known txf loader. That means drawing them one on top
of the other I can only see differences due to different mipmapping ...
That is it introduces an additional gap of 0.1*height between the glyphs.
There is an additional mapping between upper and lowercase characters if one
of them is not available in the txf file.
And we have an artificial blank character that is very often missing in txf
files."
2007-01-22 09:28:31 +00:00
Robert Osfield
b9f629f0cb
From Mathias Fröhlich, txf plugin for reading .txf textured texture files.
2007-01-08 12:04:04 +00:00