Marcio Marchini wrote:
1) Copy text as RTF, paste into Word. The Font is Verdana. So far so good.
2) Switch the font to monospaced (CTRL-F11)
3) Copy text as RTF, paste into Word. The Font is still Verdana.

        Copy as RTF should honor the font being used.

I would argue with that.

Basically, the monospaced option has been created to be able to quickly switch to a more "classical" view, ie. something similar to what display "less capable" text editors that can only display in monospaced text.

Among other uses, this allow to better see (and respect) alignments often made with tabs or spaces that are generally too short in proportionnal mode.

This is intended as quick switch, for display only, ie. look at monospaced mode, make changes if needed, then switch back to a more pleasant mode. That's why it can be argued that such transicient mode doesn't need to be copied.

Now, I don't totally disagree with you...

Indeed, intuitively, we want copies or printouts to be true to what is displayed, that's what we are used to in graphical environment. The other day, I zoomed in a small text to get bigger font, printed the buffer, and was disappointed to see it small... I suppose monospaced mode will not be correctly printed as well, although this could be a desirable feature. And it is probably ignored too when exporting the buffer.

I just tested the export, I was wrong, it respects the current set of styles. Indeed, there is a test:

if (useMonoFont) {
  fprintf(fp, "\tfont-family: monospace;\n");
} else {
  fprintf(fp, "\tfont-family: '%s';\n", sd.font.c_str());
}
(it may be my own code, contradicting what I wrote above :-) )

so I suppose RTF exporter should make a similar test. And the others too...

Note: I tested the Copy as RTF feature, pasting in Wordpad.
If, for example, Lua and HTML styles are respected, curiously PHP style is lost, while PHP is a subset of HTML lexer. That's strange.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to