Discussion:
Custom CSS / custom fonts in the official Android client
Add Reply
Toby
2018-08-10 00:51:54 UTC
Reply
Permalink
Raw Message
Hello

I'm using Mnemosyne as part of my Japanese studies and I'm finding the
standard Android font insufficient, but I don't want to root the phone.

Is there a way to add my own CSS to the cards, in order to load a custom
font from the phone's internal memory?

I've found several posts about an older Android client, which mention an
export directory, but I'm using the official client with the sync function
and I don't think I have an export directory. Can I place a style.css file
and a font file by hand somewhere in the phone?

-Toby
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/3e197bc7-296c-4e67-8c20-838f2b7e72e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter Bienstman
2018-08-10 06:46:14 UTC
Reply
Permalink
Raw Message
Hi,

Mnemosyne’s internal font setting option is using CSS, but I’m afraid it does not work on Android due to the restrictive way its font system is set up


Cheers,

Peter

From: mnemosyne-proj-***@googlegroups.com <mnemosyne-proj-***@googlegroups.com> On Behalf Of Toby
Sent: 10 August 2018 02:52
To: mnemosyne-proj-users <mnemosyne-proj-***@googlegroups.com>
Subject: [mnemosyne-proj-users] Custom CSS / custom fonts in the official Android client

Hello

I'm using Mnemosyne as part of my Japanese studies and I'm finding the standard Android font insufficient, but I don't want to root the phone.

Is there a way to add my own CSS to the cards, in order to load a custom font from the phone's internal memory?

I've found several posts about an older Android client, which mention an export directory, but I'm using the official client with the sync function and I don't think I have an export directory. Can I place a style.css file and a font file by hand somewhere in the phone?

-Toby
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com<mailto:mnemosyne-proj-users+***@googlegroups.com>.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com<mailto:mnemosyne-proj-***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/3e197bc7-296c-4e67-8c20-838f2b7e72e5%40googlegroups.com<https://groups.google.com/d/msgid/mnemosyne-proj-users/3e197bc7-296c-4e67-8c20-838f2b7e72e5%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/1b615e14547a43f985e2b715c497190e%40xmail101.UGent.be.
For more options, visit https://groups.google.com/d/optout.
Toby
2018-08-10 08:39:53 UTC
Reply
Permalink
Raw Message
The reason I was asking is because AnkiDroid uses CSS too and it allows you to put a custom font file in the media directory and reference it from the CSS using a relative path.

I was wondering if the same thing would be possible in Mnemosyne.

Tobia
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/d3838870-c392-4db7-978a-0d4a13b43aec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter Bienstman
2018-08-10 09:12:41 UTC
Reply
Permalink
Raw Message
In theory yes, but they use an elaborate custom rendering mechanism to bypass the standard Android font handling.

If someone want to help implementing this, that would be nice :-)

Cheers,

Peter

-----Original Message-----
From: mnemosyne-proj-***@googlegroups.com <mnemosyne-proj-***@googlegroups.com> On Behalf Of Toby
Sent: 10 August 2018 10:40
To: mnemosyne-proj-users <mnemosyne-proj-***@googlegroups.com>
Subject: RE: [mnemosyne-proj-users] Custom CSS / custom fonts in the official Android client

The reason I was asking is because AnkiDroid uses CSS too and it allows you to put a custom font file in the media directory and reference it from the CSS using a relative path.

I was wondering if the same thing would be possible in Mnemosyne.

Tobia
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/d3838870-c392-4db7-978a-0d4a13b43aec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/3dd24f0883174bb7a5114a48f741e10f%40xmail101.UGent.be.
For more options, visit https://groups.google.com/d/optout.
Toby
2018-08-10 09:19:27 UTC
Reply
Permalink
Raw Message
Oh, that's why AnkiDroid is so slow at loading the custom fonts. On every
card that uses them, it takes up to half a second, on a brand new flagship
phone.

Well, if anybody has any other advice, especially for Japanese, that would
be welcome. Even a standard Mincho font would be preferable to the Gothic
thing Android seems to be using.
Post by Peter Bienstman
In theory yes, but they use an elaborate custom rendering mechanism to
bypass the standard Android font handling.
If someone want to help implementing this, that would be nice :-)
Cheers,
Peter
-----Original Message-----
Sent: 10 August 2018 10:40
Subject: RE: [mnemosyne-proj-users] Custom CSS / custom fonts in the
official Android client
The reason I was asking is because AnkiDroid uses CSS too and it allows
you to put a custom font file in the media directory and reference it from
the CSS using a relative path.
I was wondering if the same thing would be possible in Mnemosyne.
Tobia
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/d3838870-c392-4db7-978a-0d4a13b43aec%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/3dd24f0883174bb7a5114a48f741e10f%40xmail101.UGent.be
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/CACe_5GQ69C%3DEcXJtjtZiciHEH8epqe6zxuU0n9Tz6W_GGM6H_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Toby
2018-08-11 11:06:33 UTC
Reply
Permalink
Raw Message
Anyways, font or not, is there such a thing as a custom CSS file in Mnemosyne, especially in the Android client?

In Anki I can write custom CSS in the card design screen, that will be applied to all cards of that type.

Is there such a thing in Mnemosyne?

Toby
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/9b25dfbd-9466-49ee-84bf-be2cedcef051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Peter Bienstman
2018-08-12 04:43:12 UTC
Reply
Permalink
Raw Message
Hi,

For Mnemosyne's card types, that functionality is not exposed to the ui, as Mnemosyne currently assembles the css itself at run time.

For cards you import from Anki, you have an interface similar to Anki's to edit css.

Cheers,

Peter


________________________________
From: Toby <***@gmail.com>
Sent: Saturday, 11 August 2018 13:13
To: mnemosyne-proj-users
Subject: Re: [mnemosyne-proj-users] Custom CSS / custom fonts in the official Android client

Anyways, font or not, is there such a thing as a custom CSS file in Mnemosyne, especially in the Android client?

In Anki I can write custom CSS in the card design screen, that will be applied to all cards of that type.

Is there such a thing in Mnemosyne?

Toby

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/9b25dfbd-9466-49ee-84bf-be2cedcef051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+***@googlegroups.com.
To post to this group, send email to mnemosyne-proj-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/a6bee6dc-a030-41ab-b27e-6fa32ff5f6d8%40owa.ugent.be.
For more options, visit https://groups.google.com/d/optout.
Loading...