<div dir="ltr"><div style="font-size:19.2000007629395px">It seems that in TextEditor&gt;&gt;changeTextFont we should pass all the text attributes to the FontChooserTool, just the current font. eg: &#39;text attributesAt: startIndex&#39;</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">&lt;<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>&gt;</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&#39;t pick up emphasis from the text it&#39;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">&lt;<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>&gt;</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 &lt;<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt; Why can we not offer emphasis in the FontChooserTool that opens from the yellowButtonMenu in TextEditors ?<br>
&gt;<br>
&gt; I have not found any text that breaks changing the emphasis, by changing code below to true.<br>
&gt;<br>
&gt; In TextEditor&gt;&gt;changeTextFont<br>
&gt;  ...<br>
&gt;     &quot;Do not allow changing the emphasis; we don&#39;t know how to deal with a &#39;pre-emphasized&#39; font here, so bail.&quot;<br>
&gt;                                       offerStyleList: false;<br>
&gt; ...<br>
&gt;<br>
&gt; 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>