diff --git a/graf2d/postscript/inc/TPDF.h b/graf2d/postscript/inc/TPDF.h index 497677c8adf5951e8fae341fce1363c56bae6ce9..a94958012b5f0bc35c1e88ebf31bac0c2acfb8f6 100644 --- a/graf2d/postscript/inc/TPDF.h +++ b/graf2d/postscript/inc/TPDF.h @@ -97,9 +97,9 @@ public: void SetMarkerColor( Color_t cindex=1); void SetTextColor( Color_t cindex=1); void Text(Double_t x, Double_t y, const char *string); - void Text(Double_t, Double_t, const wchar_t *){} + void Text(Double_t, Double_t, const wchar_t *); void TextNDC(Double_t u, Double_t v, const char *string); - void TextNDC(Double_t, Double_t, const wchar_t *){} + void TextNDC(Double_t, Double_t, const wchar_t *); void WriteCompressedBuffer(); virtual void WriteReal(Float_t r, Bool_t space=kTRUE); Double_t UtoPDF(Double_t u); diff --git a/graf2d/postscript/src/TPDF.cxx b/graf2d/postscript/src/TPDF.cxx index be07d88e6493f9d1abd9f5f8257c58b1aac8490b..9ee88a6e8db716a31e046f2355a3c008b35fac0d 100644 --- a/graf2d/postscript/src/TPDF.cxx +++ b/graf2d/postscript/src/TPDF.cxx @@ -2367,6 +2367,16 @@ void TPDF::Text(Double_t xx, Double_t yy, const char *chars) } +void TPDF::Text(Double_t, Double_t, const wchar_t *) +//______________________________________________________________________________ +{ + // Write a string of characters + // + // This routine writes the string chars into a PostScript file + // at position xx,yy in world coordinates. +} + + //______________________________________________________________________________ void TPDF::TextNDC(Double_t u, Double_t v, const char *chars) { @@ -2378,6 +2388,17 @@ void TPDF::TextNDC(Double_t u, Double_t v, const char *chars) } +//______________________________________________________________________________ +void TPDF::TextNDC(Double_t u, Double_t v, const wchar_t *chars) +{ + // Write a string of characters in NDC + + Double_t x = gPad->GetX1() + u*(gPad->GetX2() - gPad->GetX1()); + Double_t y = gPad->GetY1() + v*(gPad->GetY2() - gPad->GetY1()); + Text(x, y, chars); +} + + //______________________________________________________________________________ Double_t TPDF::UtoPDF(Double_t u) {