The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home BasePack SDLBase Procedures and Functions SetCanvasFontSizeScaled | |||||||||
See also: OnDataRendered (RChart), OnScalesRendered (RChart), OnDataRendered (PolChart), OnDataRendered (Plot3D), OnBeforeRenderPolygon, OnDataRendered (GeoMap), OnBeforeRenderData (RChart), OnSlideRendered, OnMeterRendered, OnBeforeScaleRendered, OnAfterScaleRendered, OnBeforeRenderData (BoxPlot), OnDataRendered (BoxPlot), OnScalesRendered (BoxPlot), OnDataRendered (Rot3D), OnBeforeRenderData (Rot3D), OnDataRendered (SmithChart), OnDataRendered (ContourPlot), OnBeforeRenderData (GeoMap) | |||||||||
SetCanvasFontSizeScaled |
|||||||||
Setting the font size of a canvas which exhibits a pixel resolution different to the standard screen resolution (i.e. setting the font size of a printer canvas) results in characters drawn far too big (or too small) as compared to the screen. The procedure SetCanvasFontSizeScaled checks whether the pixel resolution of the font deviates from that of the screen. If so, the procedure adjusts the font size of the canvas (parameter Canvas) in a way that any text rendered on the canvas has the same size as a text rendered on screen. The parameter FontSize is the size of the font on the screen.
|