Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2633/src/libopenvrml/openvrml
Modified Files:
vrml97node.cpp
Log Message:
Initial implementation of font discovery and resolution for Windows. The current code pays no attention to the FontStyle specification; but it should reliably pick a font such that text is rendered.
Index: vrml97node.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/vrml97node.cpp,v
retrieving revision 1.112
retrieving revision 1.113
diff -C2 -d -r1.112 -r1.113
*** vrml97node.cpp 3 Sep 2006 03:52:14 -0000 1.112
--- vrml97node.cpp 19 Sep 2006 20:18:31 -0000 1.113
***************
*** 39,42 ****
--- 39,43 ----
# include <boost/algorithm/string/predicate.hpp>
# include <boost/array.hpp>
+ # include <boost/multi_index/detail/scope_guard.hpp>
# include <boost/thread.hpp>
# ifdef OPENVRML_ENABLE_RENDER_TEXT_NODE
***************
*** 45,52 ****
# include FT_GLYPH_H
# include FT_OUTLINE_H
[...997 lines suppressed...]
? geometryXMin
--- 23547,23551 ----
newGeometry.coord.push_back(textVertex);
newGeometry.coord_index
! .push_back(int32(newGeometry.coord.size() - 1));
geometryXMin = (geometryXMin < textVertex.x())
? geometryXMin
***************
*** 23354,23358 ****
(this->max_extent_.sffloat::value() > 0.0)
? this->max_extent_.sffloat::value()
! : 0.0;
if (maxExtent > 0.0) {
const float currentMaxExtent = geometryXMax - geometryXMin;
--- 23572,23576 ----
(this->max_extent_.sffloat::value() > 0.0)
? this->max_extent_.sffloat::value()
! : 0.0f;
if (maxExtent > 0.0) {
const float currentMaxExtent = geometryXMax - geometryXMin;
|