Changeset 1848 in Sophya for trunk/SophyaPI/PI/pigraphps.cc
- Timestamp:
- Jan 6, 2002, 7:00:35 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphps.cc
r1538 r1848 112 112 113 113 /* --Methode-- */ 114 void PIGraphicPS::DrawString(PIGrCoord x, PIGrCoord y, const char* s, int /*pos*/)114 void PIGraphicPS::DrawString(PIGrCoord x, PIGrCoord y, const char* s, int pos) 115 115 { 116 116 if(mPSOut) 117 117 // mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */ 118 118 mPSOut->DrawString((double)x,(double)y,s,mFCol, myFont.GetFontName(), 119 myFont.GetFontAtt(), myFont.GetFontSize()*0.9); /* $CHECK$ x 0.9 - Reza 4/11/99 */ 119 myFont.GetFontAtt(), myFont.GetFontSize(), 120 pos); /* $CHECK$ x 0.9 - Reza 4/11/99 - enleve 3/01/2002 */ 120 121 // Calculez la taille de la boite occupe par la fonte 121 122 // myFont.GetFontHeight(int& asc, int& desc) Tres proche de myFont.GetFontSize() en principe … … 125 126 126 127 /* --Methode-- */ 127 void PIGraphicPS::DrawOpaqueString(PIGrCoord x, PIGrCoord y, const char* s, int /*pos*/)128 void PIGraphicPS::DrawOpaqueString(PIGrCoord x, PIGrCoord y, const char* s, int pos) 128 129 { 129 130 if(mPSOut) 130 131 // mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */ 131 132 mPSOut->DrawString((double)x,(double)y,s,mFCol, myFont.GetFontName(), 132 myFont.GetFontAtt(), myFont.GetFontSize()*0.9); /* $CHECK$ x 0.9 - Reza 4/11/99 */ 133 myFont.GetFontAtt(), myFont.GetFontSize(), 134 pos); /* $CHECK$ x 0.9 - Reza 4/11/99 */ 133 135 // Idem taille ici 134 136 return;
Note:
See TracChangeset
for help on using the changeset viewer.