When making a document with Lyx (or LaTeX), I often create figures and diagrams in XFig. I know, Xfig's user interface looks and feels very dated. (I tried the Java port JFig, but that one even feels worse to me.) However, the main reason I bite the bullet is that it enables a workflow where the text you add to the XFig figure is typeset by LaTeX when you compile the document. This way, the text in the figure is in the same font as the normal text in the document and, maybe more importantly, you can use all the fancy LaTeX commands, e.g. to put mathematical expressions, symbols and formulas in your figure.
To make this work, one of the required things is to enable the "special" flag on the text objects in XFig, and use a LaTeX font. These things are disabled by default and manually setting for every text object is a bit tedious. To changes these defaults, you can start xfig from the command like with the following options:
xfig -specialtext -latexfonts
You can also put these in a configuration file: XFig follows the general X Window Manager configuration stuff. Here is what I've put in my ~/.Xresources
file for XFig customization:
! Set some defaults for Xfig
Fig.latexfonts: true
Fig.specialtext: true
Fig.inches: false
Fig.startfontsize: 9
Fig.userunit: cm
Fig.startgridmode: 2
Fig.startposnmode: 2
Note: these settings are loaded at the start of your X session. If you don't want to restart your X session, you can load them explicitly with
xrdb -merge ~/.Xresources