Mike C Posted February 19, 2015 Share Posted February 19, 2015 Is there a command to retrieve the current text settings of the document? One of my plug-in objects sets it's own text size for a label, and that appears to become the default after it's done executing. Within that plug-in, I'd like to retrieve the current text size to store in a variable, and then reset the text size to that as the plug-in finishes executing. It seems I can create a temporary text object at the beginning of the plug-in, retrieve it's size into a variable, and then delete it, but I was hoping for something less convoluted. Thanks. Quote Link to comment
Pat Stanford Posted February 19, 2015 Share Posted February 19, 2015 Check out Appendix F of the Vectorscript Appendices, specifically 57, 58 and 82-85. Most of these are GetPrefInt, with a couple being GetPrefReal. Also GetPrefString(100); will get you the active font name. Quote Link to comment
twk Posted February 20, 2015 Share Posted February 20, 2015 How about Default Text Size ?? FUNCTION GetDefaultTextSize : REAL; Quote Link to comment
Mike C Posted February 20, 2015 Author Share Posted February 20, 2015 Thank you Tui! Had not found that command yet. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.