Changeset 1848 in Sophya for trunk/SophyaPI/PI/pigraphps.cc


Ignore:
Timestamp:
Jan 6, 2002, 7:00:35 PM (24 years ago)
Author:
ansari
Message:

Modification - ajout positionnement chaine pour DrawString - Reza 6/01/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pigraphps.cc

    r1538 r1848  
    112112
    113113/* --Methode-- */
    114 void PIGraphicPS::DrawString(PIGrCoord x, PIGrCoord y, const char* s, int /*pos*/)
     114void PIGraphicPS::DrawString(PIGrCoord x, PIGrCoord y, const char* s, int pos)
    115115{
    116116if(mPSOut)
    117117  //  mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */
    118118  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 */
    120121// Calculez la taille de la boite occupe par la fonte
    121122//  myFont.GetFontHeight(int& asc, int& desc)  Tres proche de myFont.GetFontSize() en principe
     
    125126
    126127/* --Methode-- */
    127 void PIGraphicPS::DrawOpaqueString(PIGrCoord x, PIGrCoord y, const char* s, int /*pos*/)
     128void PIGraphicPS::DrawOpaqueString(PIGrCoord x, PIGrCoord y, const char* s, int pos)
    128129{
    129130if(mPSOut)
    130131  //  mPSOut->DrawString((double)x,(double)y,s,mFCol,mFAtt,mFSize); /* $CHECK$ PIFontSize ?? */
    131132  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 */
    133135// Idem taille ici
    134136return;
Note: See TracChangeset for help on using the changeset viewer.