X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aef94d68609474317f4e6ce2394466750e992da9..3a3ef0bf61017bfa3761e40d1873b3c480f6f034:/docs/latex/wx/dc.tex diff --git a/docs/latex/wx/dc.tex b/docs/latex/wx/dc.tex index 94354be934..09c3f4e560 100644 --- a/docs/latex/wx/dc.tex +++ b/docs/latex/wx/dc.tex @@ -364,6 +364,11 @@ for filling the shape. Draws the text rotated by {\it angle} degrees. +{\bf NB:} Under Win9x only TrueType fonts can be drawn by this function. In +particular, a font different from {\tt wxNORMAL\_FONT} should be used as the +latter is not a TrueType font. {\tt wxSWISS\_FONT} is an example of a font +which is. + \wxheading{See also} \helpref{DrawText}{wxdcdrawtext} @@ -520,7 +525,7 @@ Gets the rectangle surrounding the current clipping region. rectangle are returned as a tuple.} \perlnote{This method takes no arguments and returns a four element list -{\tt ( \$x, \$y, \$width, \$height )}} +{\tt ( x, y, width, height )}} \membersection{wxDC::GetFont}\label{wxdcgetfont} @@ -604,7 +609,7 @@ implements the following methods:\par \indented{2cm}{\begin{twocollist} \twocolitem{{\bf GetSize()}}{Returns a Wx::Size} \twocolitem{{\bf GetSizeWH()}}{Returns a 2-element list - {\tt ( \$width, \$height )}} + {\tt ( width, height )}} \end{twocollist} }} @@ -645,7 +650,7 @@ See also \helpref{wxFont}{wxfont}, \helpref{wxDC::SetFont}{wxdcsetfont}. \perlnote{In wxPerl this method is implemented as {\bf GetTextExtent( string, font = undef )} returning a four element - array {\tt ( \$width, \$height, \$descent, \$externalLeading )} + array {\tt ( width, height, descent, externalLeading )} } \membersection{wxDC::GetTextForeground}\label{wxdcgettextforeground} @@ -664,7 +669,7 @@ Gets the current text foreground colour (see \helpref{wxDC::SetTextForeground}{w Gets the current user scale factor (set by \helpref{SetUserScale}{wxdcsetuserscale}). \perlnote{In wxPerl this method takes no arguments and returna a two element - array {\tt ( \$x, \$y )}} + array {\tt ( x, y )}} \membersection{wxDC::LogicalToDeviceX}\label{wxdclogicaltodevicex} @@ -802,11 +807,8 @@ when drawing into a monochrome bitmap. \func{void}{SetFont}{\param{const wxFont\& }{font}} -Sets the current font for the DC. - -If the argument is wxNullFont, the current font is selected out of the device -context, and the original font restored, allowing the current font to -be destroyed safely. +Sets the current font for the DC. It must be a valid font, in particular you +should not pass {\tt wxNullFont} to this method. See also \helpref{wxFont}{wxfont}.