Changeset 163 for trunk/SRC/ToBeReviewed/STRING/str_size.pro
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STRING/str_size.pro
r157 r163 3 3 ; @file_comments 4 4 ; The purpose of this function is to return the proper 5 ; character size to make a specified string a specif ed5 ; character size to make a specified string a specified 6 6 ; width in a window. The width is specified in normalized 7 7 ; coordinates. The function is extremely useful for sizing … … 12 12 ; 13 13 ; @param STRING {in}{required} 14 ; This is the string that you want to make a specif ed14 ; This is the string that you want to make a specified 15 15 ; target size or width. 16 16 ; 17 ; @param TARGETWIDTH {in}{optional} 17 ; @param TARGETWIDTH {in}{optional}{default=0.25} 18 18 ; This is the target width of the string in normalized 19 19 ; coordinates in the current graphics window. The character 20 20 ; size of the string (returned as thisCharSize) will be 21 21 ; calculated to get the string width as close as possible to 22 ; the target width. The default is 0.25.22 ; the target width. 23 23 ; 24 ; @keyword INITSIZE 24 ; @keyword INITSIZE {default=1.0} 25 25 ; This is the initial size of the string. Default is 1.0. 26 26 ; 27 ; @keyword STEP 27 ; @keyword STEP{default=0.05} 28 28 ; This is the amount the string size will change in each step 29 ; of the interative process of calculating the string size. 30 ; The default value is 0.05. 29 ; of the interactive process of calculating the string size. 31 30 ; 32 31 ; @returns … … 53 52 ;- 54 53 55 FUNCTION STR_SIZE, string, targetWidth, INITSIZE=initsize, STEP=step54 FUNCTION str_size, string, targetWidth, INITSIZE=initsize, STEP=step 56 55 ; 57 56 compile_opt idl2, strictarrsubs
Note: See TracChangeset
for help on using the changeset viewer.