[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Maurizio Torchio
No, no, I keep everything local! I put it on drive just for you to download and double check if it works by you (after downloading CormorantUpright-Regular.ttf from Google, of course. I chose CormorantUpright in order to make the difference between where it works and where it doesn't very

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Charlie Veniot
Oh, if you are keeping your TiddlyWiki instances on Google Drive and using TiddlyDrive, then this definitely won't work. TiddlyDrive, in my kindergarten way of understanding it, totally upends the "URL", so that TiddlyWiki can't reference the file that is right there where the TiddlyWiki is.

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Maurizio Torchio
same folder. i open right clicking, double clicking, from the browser (file://...) nothing works. here is my empty wiki: https://drive.google.com/file/d/1bkC5viccXBaiN5tHtxpimuaZ6u9ymWZP/view?usp=sharing Il giorno venerdì 3 dicembre 2021 alle 17:40:58 UTC+1 cj.v...@gmail.com ha scritto: >

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Charlie Veniot
Yeah, if that font file is in the same file folder as your TiddlyWiki file, I don't know why things are working for me and not for you. How do you open your TiddlyWiki file? Right-click on it and choose open in the popup menu? Bugs me when stuff works A-1 for me but not for somebody else. I

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Charlie Veniot
I just checked. Single quotes should make no difference. On Friday, December 3, 2021 at 12:35:39 PM UTC-4 Charlie Veniot wrote: > You have single quotes around the font-family name references in both > "@font-face" and ".bubba" style sections. > > I don't in my sample. > > I have no idea if

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Charlie Veniot
You have single quotes around the font-family name references in both "@font-face" and ".bubba" style sections. I don't in my sample. I have no idea if that makes a difference. On Friday, December 3, 2021 at 11:58:38 AM UTC-4 torc...@gmail.com wrote: > hmm.. I really do not understand. For

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Maurizio Torchio
nope. I spoke too soon. CodeMirror manage badly text selection on touchscreens. looks like https://codemirror.net/6/ will fix this but until then... it's of no use for me. : ( Il giorno venerdì 3 dicembre 2021 alle 11:02:00 UTC+1 Maurizio Torchio ha scritto: > To Whom It May Concern: it was

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-03 Thread Maurizio Torchio
To Whom It May Concern: it was just a silly z-index problem. div.tc-editor-toolbar { position: sticky; top: 0px; z-index:1; } now I can use embedded font-face in the editor (thanks to CodeMirror) AND have a sticky toolbar. (and I'm perfectly happy!) : ) Il giorno venerdì 3 dicembre 2021 alle

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-02 Thread Maurizio Torchio
Hi Charlie, using a local font file, i.e @font-face { font-family: 'CormorantGaramond'; font-style: normal; font-weight: 400; src: url(./tiddly/CormorantGaramond-Regular.ttf); } does not work (it works anywhere in the wiki, but not in the EditTemplate). anyhow, even if it worked, I prefer to

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-02 Thread Maurizio Torchio
thank you Charlie and Jeremy! yes: mine is a font-face. the problem is: I love fonts! I use different fonts for different wiki, they embody the "soul" of the wiki (and I'd like to have the same font whether desktop or mobile, viewing or editing). that's why until now i used the edit widget

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Charlie Veniot
Thanks for the info, Jeremy. 2-tier client server guy over here, so the innards of web browsers is foreign territory for this kid. So whatever browser Maurizio is using, that approach I'm suggesting should work with some font-family available by default in whatever browser Maurizio is using,

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Jeremy Ruston
I think it's working for CJ because the "Brush Script MT" font is available by default in that browser, without needing to be defined by a font-face tag. That technique only works for built-in fonts because there's no way to inject the CSS font-face declaration into the iframe. Best wishes

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Charlie Veniot
I forgot to mention, you have to add that "bubba" class to the edit text widget. As per the screenshot, the editor is showing that funky font. However, it did strangely take half-a-minute or so for that font to take effect. On Wednesday, December 1, 2021 at 11:45:47 AM UTC-4 torc...@gmail.com

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Maurizio Torchio
thank you cj.v, but it didn't worked for me. it assign the class bubba to the iframe (just as $:/themes/tiddlywiki/vanilla/settings/editorfontfamily does) but... nothing changes. i suspect it has to do with what Jeremy wrote: "The reason that custom fonts doesn’t work with the editor toolbar

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Maurizio Torchio
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:

[tw5] Re: [tw] Using Custom Font in Tiddler Editor

2021-12-01 Thread Maurizio Torchio
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