1: /* 2: Provides the calling sequences for all the basic PetscDraw routines. 3: */ 4: #include src/sys/src/draw/drawimpl.h 8: /*@ 9: PetscDrawStringSetSize - Sets the size for character text. 11: Not Collective 13: Input Parameters: 14: + draw - the drawing context 15: . width - the width in user coordinates 16: - height - the character height in user coordinates 18: Level: advanced 20: Note: 21: Only a limited range of sizes are available. 23: Concepts: string^drawing size 25: .seealso: PetscDrawString(), PetscDrawStringVertical(), PetscDrawStringGetSize() 27: @*/ 28: PetscErrorCode PetscDrawStringSetSize(PetscDraw draw,PetscReal width,PetscReal height) 29: { 31: PetscTruth isnull; 35: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull); 36: if (isnull) return(0); 37: if (draw->ops->stringsetsize) { 38: (*draw->ops->stringsetsize)(draw,width,height); 39: } 40: return(0); 41: }