1: /*$Id: dtexts.c,v 1.36 2001/04/18 20:48:35 balay Exp $*/
2: /*
3: Provides the calling sequences for all the basic PetscDraw routines.
4: */
5: #include src/sys/src/draw/drawimpl.h
7: /*@
8: PetscDrawStringSetSize - Sets the size for character text.
10: Not Collective
12: Input Parameters:
13: + draw - the drawing context
14: . width - the width in user coordinates
15: - height - the character height in user coordinates
17: Level: advanced
19: Note:
20: Only a limited range of sizes are available.
22: Concepts: string^drawing size
24: .seealso: PetscDrawString(), PetscDrawStringVertical(), PetscDrawStringGetSize()
26: @*/
27: int PetscDrawStringSetSize(PetscDraw draw,PetscReal width,PetscReal height)
28: {
29: int ierr;
30: PetscTruth isnull;
34: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull);
35: if (isnull) return(0);
36: if (draw->ops->stringsetsize) {
37: (*draw->ops->stringsetsize)(draw,width,height);
38: }
39: return(0);
40: }