<div dir="ltr"><div style="font-size:19.2000007629395px">It seems that in TextEditor>>changeTextFont we should pass all the text attributes to the FontChooserTool, just the current font. eg: 'text attributesAt: startIndex'</div><div style="font-size:19.2000007629395px"><br></div><div style="font-size:19.2000007629395px">Karl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 2:35 PM, karl ramberg <span dir="ltr"><<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I think I found the reason emphasis is not offered in the tool.</div>FontChooserTool can't pick up emphasis from the text it's about to change.<div><br></div><div>The code for font changes is really confusing...</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Karl<br><div><br></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 12:07 PM, Tobias Pape <span dir="ltr"><<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br>
On 27.04.2015, at 12:04, karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> Why can we not offer emphasis in the FontChooserTool that opens from the yellowButtonMenu in TextEditors ?<br>
><br>
> I have not found any text that breaks changing the emphasis, by changing code below to true.<br>
><br>
> In TextEditor>>changeTextFont<br>
> ...<br>
> "Do not allow changing the emphasis; we don't know how to deal with a 'pre-emphasized' font here, so bail."<br>
> offerStyleList: false;<br>
> ...<br>
><br>
> Karl<br>
<br>
</div></div>The font chooser tool btw already has a pane for style, but it<br>
is disabled by default…<br>
<br>
Best regards<br>
<span><font color="#888888"> -Tobias<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>