Quoting Jean-Marc Lasgouttes <[EMAIL PROTECTED]>: > Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > > Could someone explain me what these are about? > > > > LFUN_FONT_FREE_APPLY is never used: can I remove it? > > It is used in the toolbar.
Ah... OK, I only looked at the code. > > > LFUN_FONT_FREE_UPDATE is used in GuiCharacter::getLfun(). The only > > explanation I found is in Tex3.cpp:1408: > > > > // Set the freefont using the contents of \param data dispatched from > > // the frontends and apply it at the current cursor location. > > case LFUN_FONT_FREE_UPDATE: { > > > > So, what is this? Is it related to Cursor::current_font? > > The badly named font_free stuff refers to the state the custom font > setting dialog. LFUN_FONT_FREE_APPLY allows to apply repeatedly the > same font change (as defined in the dialog), You mean even when the dialog is closed? This is very bad UI IMO. > and LFUN_FONT_FREE_UPDATE > allows to change this setting. I've come to understand that in the mean time... a side effect of the serialisation. Any objection if I clean up that mess and do something similar as for the Paragraph dialog? I mean the automatic retrieval of the current cursor font when "Apply changes immediately" is not checked. Abdel.