thank you cj.v... , but it does not work for me. it adds the class bubba to the textframe (just as $:/themes/tiddlywiki/vanilla/settings/editorfontfamily does), and on inspecting the element, font-family is correctly assigned but... nothing changes. I think it has to do with what Jeremy said:
"The reason that custom fonts doesn’t work with the editor toolbar is because of the way that it creates the textarea element within an embedded iframe (this is done so that the selection in the textarea isn’t lost when the user clicks on a toolbar button and the textarea loses focus). The iframe doesn’t inherit any of the styles in the main document, so the code actually creates a hidden textarea and then reads back the styles, and then applies them to the textarea in the iframe. That means that any formatting applied to the textarea will be faithfully reproduced within the iframe. However, it only works for CSS properties applied directly to the textarea; it doesn’t transfer fonts, animations or other resources that can be defined in CSS. (The code is here: https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/editor/engines/framed.js ) We could update things so that special stylesheets identified by a new system tag such as $:/tags/Stylesheet/FramedEditor would be automatically inserted within the iframe." Il giorno mercoledì 1 dicembre 2021 alle 14:57:19 UTC+1 cj.v...@gmail.com ha scritto: > G'day, > > If you are not averse to changing core TiddlyWiki templates, you could add > a style at the top of the content in $:/core/ui/EditTemplate/body/editor. > > See my screenshot below, in which I set the font to Brush Script MT > cursive. > > It would be good for more experienced TiddlyWiki users to chime in on any > downsides to this approach. > > *(BTW: please ignore the goofy-looking "!!! EditTemplate body" ... that's > me entering little breadcrumbs to figure out which core tiddler is which.)* > > [image: Screenshot 2021-12-01 9.52.23 AM.png] > > On Wednesday, December 1, 2021 at 6:19:45 AM UTC-4 torc...@gmail.com > wrote: > >> Hi everybody, any progress on this? (I really don't like see a different >> fontfamily when editing) >> thank you so much for all the great work! >> >> maurizio >> >> Il giorno martedì 30 gennaio 2018 alle 21:09:06 UTC+1 Ton Gerner ha >> scritto: >> >>> Hi Alfonso, >>> >>> If I remember correctly the following comes from Jeremy's TalkyTalky >>> <https://tiddlywiki.com/talkytalky/> which uses the Google font Lato: >>> >>> It contains the follwing stylesheet (a tiddler tagged with >>> $:/tags/Stylesheet): >>> >>> \define register-font(family,title,style,weight) >>> @font-face { >>> font-family: "$family$"; >>> font-style: $style$; >>> font-weight: $weight$; >>> src: url(<<datauri "$title$">>) format("woff"); >>> } >>> \end >>> \rules only filteredtranscludeinline transcludeinline macrodef >>> macrocallinline >>> >>> /* >>> ** Fonts >>> */ >>> >>> <<register-font "Lato" "$:/_fonts/lato-black-webfont.woff" "normal" >>> "900">> >>> <<register-font "Lato" "$:/_fonts/lato-blackitalic-webfont.woff" >>> "italic" "900">> >>> <<register-font "Lato" "$:/_fonts/lato-bold-webfont.woff" "normal" "700" >>> >> >>> <<register-font "Lato" "$:/_fonts/lato-bolditalic-webfont.woff" "italic" >>> "700">> >>> <<register-font "Lato" "$:/_fonts/lato-hairline-webfont.woff" "normal" >>> "100">> >>> <<register-font "Lato" "$:/_fonts/lato-hairlineitalic-webfont.woff" >>> "italic" "100">> >>> <<register-font "Lato" "$:/_fonts/lato-italic-webfont.woff" "italic" >>> "400">> >>> <<register-font "Lato" "$:/_fonts/lato-light-webfont.woff" "normal" >>> "300">> >>> <<register-font "Lato" "$:/_fonts/lato-lightitalic-webfont.woff" >>> "italic" "300">> >>> <<register-font "Lato" "$:/_fonts/lato-regular-webfont.woff" "normal" >>> "400">> >>> >>> Hope that helps. >>> >>> Cheers, >>> >>> Ton >>> >>> >>> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fd52f29f-17c9-47bc-8127-42e9cf18a8a9n%40googlegroups.com.