Hi Damon, h0p3,

The cause here is that the default editor uses an iframe to wrap the textarea; 
it’s done so that the textarea focus is retained even if the user clicks on a 
toolbar button. The problem, of course, is that the custom font isn’t loaded 
into the iframe, and so isn’t available to the textarea.

You can workaround it by using the non-framed editor (which lacks the toolbar 
buttons), but it may be worth trying the CodeMirror plugin.

Alternately, I think we’d need to add a mechanism for adding stylesheet 
fragments to the editor iframe.

Best wishes

Jeremy



> On 9 Jun 2019, at 20:13, Damon Pritchett <[email protected]> wrote:
> 
> Hello again,
> 
> I'm having trouble getting my TW to recognize Google fonts. The font family 
> and code font family take the fonts just fine, but I can't get the text 
> editor to do it. I've looked through all of the stylesheets that I know of, 
> but haven't been able to find the smoking gun. I'm embedding the fonts based  
> on the instructions found here: 
> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
>  
> <https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5>.
> 
> Any thoughts on how to get passed this. Right now, I'm using the generic 
> monospace font, but I would like to use the Roboto Mono font (again, Roboto 
> Mono works find in code font family, but not text editor).
> 
> Thanks,
> 
> Damon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/5d62431f-5f6d-43e5-b7ca-24b36d73325d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/5d62431f-5f6d-43e5-b7ca-24b36d73325d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B2579453-7A09-4DFB-9E87-294B1CF844EE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to