Discussion:
Many font names in one document
Andrzej Borucki
2013-10-02 12:38:16 UTC
Permalink
Example DMApp.cxx (dmapp.zip) show that is possible to have many fonts in
one document:
SetAStyle(STYLE_DEFAULT, black, white, 11, "Verdana");
SendEditor(SCI_STYLESETFONT, bstyle,
reinterpret_cast<LPARAM>("Georgia"));
SendEditor(SCI_STYLESETFONT, SCE_HBA_COMMENTLINE,
reinterpret_cast<LPARAM>("Comic Sans MS"));
How to get font name for specified style for example SCE_HBA_COMMENTLINE?
If I use SCI_StyleGetFont with params 0,nil (I want for example style
default, only get length name) it returns 0 (=error) because I must pass
parameter STYLE_DEFAULT=32, other style are
STYLE_LINENUMBER,STYLE_BRACELIGHT...
This style are parts of user interface, not style like SCE_HBA_COMMENTLINE
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-10-02 14:02:35 UTC
Permalink
Post by Andrzej Borucki
How to get font name for specified style for example SCE_HBA_COMMENTLINE?
If I use SCI_StyleGetFont with params 0,nil (I want for example style default, only get length name) it returns 0 (=error) because I must pass parameter STYLE_DEFAULT=32, other style are STYLE_LINENUMBER,STYLE_BRACELIGHT...
This style are parts of user interface, not style like SCE_HBA_COMMENTLINE
If you you want to retrieve a font name then you first have to set that font name.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...