Changeset 316 in Sophya for trunk/SophyaPI/PI/pigraphuc.cc
- Timestamp:
- Jun 15, 1999, 3:56:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigraphuc.cc
r204 r316 583 583 584 584 /* --Methode-- */ 585 void PIGraphicUC::SelFont(PIFont & fnt) 586 { 587 if (!mGrC) return; 588 mGrC->SelFont(fnt); 589 return; 590 } 591 592 /* --Methode-- */ 585 593 void PIGraphicUC::SelFont(PIFontSize sz, PIFontAtt att) 586 594 { … … 671 679 } 672 680 673 /* --Methode-- */674 PIFontAtt PIGraphicUC::GetFontAtt()675 {676 if (!mGrC) return(PI_NotDefFontAtt);677 return(mGrC->GetFontAtt());678 }679 680 /* --Methode-- */681 int PIGraphicUC::GetFontSize()682 {683 if (!mGrC) return(0);684 return(mGrC->GetFontSize());685 }686 681 687 682 /* --Methode-- */ … … 706 701 } 707 702 /* --Methode-- */ 708 PIGrCoord PIGraphicUC::GetFontHeight UC(PIGrCoord& asc, PIGrCoord& desc)703 PIGrCoord PIGraphicUC::GetFontHeight(PIGrCoord& asc, PIGrCoord& desc) 709 704 { 710 705 asc = desc = 0; … … 712 707 int h,a,d; 713 708 double fh, fa, fd, x; 714 h = m GrC->GetFontHeight(a, d) ;709 h = myFont.GetFontHeight(a, d) ; 715 710 DGrC2UC(0., h, x, fh); 716 711 DGrC2UC(0., a, x, fa); … … 720 715 } 721 716 722 /* --Methode-- */723 int PIGraphicUC::GetFontHeight(int& asc, int& desc)724 {725 asc = desc = 0;726 if (!mGrC) return(0);727 return( mGrC->GetFontHeight(asc, desc) );728 }729 717 730 718 /* --Methode-- */ … … 732 720 { 733 721 if (!mGrC) return(0.); 734 double dx = m GrC->CalcStringWidth(s);722 double dx = myFont.GetStringWidth(s); 735 723 double dxx, dxy; 736 724 DGrC2UC(dx, dx, dxx, dxy);
Note:
See TracChangeset
for help on using the changeset viewer.