Revised question:
I'm using TikZ to re-design \rightarrow for the Lucida Bright fonts, to better match tikzcd arrows. How do I scale that mathrel for script- and scriptscript-styles (as well as have the scaling sensitive to enclosing \large, \tiny, etc., commands).
With the lucidascale or lucidasmallscale option of lucidabr.sty (or lucimatx.sty), scaling is non-linear.
Originally I thought I should base the scaling factor upon the document class's font size option (or its default). And Phelype Oleinik;s answer showed how to obtain the document class's font size.
However, as David Carlisle pointed out, that approach is neither necessary or sufficient for achieving my actual aim.
Original question: For a document class being used, is there a way to determine through TeX or LaTeX code what the declared font size option is, or in the absence of a user-declared option, what the default font size is?
I want this font size just as an integer (12, 11, 10, e.g.) and not as an actual dimension such as 12.0 pt.
In particular, is it possible to do this with the article and memoir document classes?



\ifthenelsetests on the font size parameter, and I think comparing with an integer would be simpler.) – murray Jul 05 '19 at 15:25\textfont0, etc., mean or how to use them. Since my purpose is to scale a symbol constructed in TikZ, I need to determine a scaling factor for script, etc. – murray Jul 05 '19 at 16:00