Font size tags ignored in Mac OSX10.9

73 views
Skip to first unread message

daniel.l...@gmail.com

unread,
Nov 18, 2013, 9:46:33 AM11/18/13
to mnemosyne-...@googlegroups.com
Running Mnemosyne 2.2.1 on a Macbook air with OSX10.9 (Mavericks).

Everything seems to work well, except for some reason the "size" of my font tags is ignored.

I can change font color without a problem.
This happens with all the default settings, but also using other fonts (including Bitstream Cyberbit).

Any ideas?

Peter Bienstman

unread,
Nov 18, 2013, 10:06:36 AM11/18/13
to mnemosyne-...@googlegroups.com
You're talking about 'card appearance' 'select font', right?

I cannot reproduce this on my machine, so I assume it's must be a
platform specific bug with the libraries we use...

Cheers,

Peter
> --
> 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-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/fbd9b673-dcc5-4459-a356-83f7aeca9c48%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



daniel.l...@gmail.com

unread,
Nov 21, 2013, 7:08:04 AM11/21/13
to mnemosyne-...@googlegroups.com
Ah, no, sorry, I should have been more explicit.

I'm talking about html font tags. They work for colors, but font sizes are ignored completely.

Peter Bienstman

unread,
Nov 21, 2013, 7:14:42 AM11/21/13
to mnemosyne-...@googlegroups.com
Note that Mnemosyne itself adds font size tags (actually a css
environment) based on what you select in the dialog box 'card
appearance' 'select font', so I assume that's the one that gets picked
up.

Cheers,

Peter

Citeren daniel.l...@gmail.com:
> https://groups.google.com/d/msgid/mnemosyne-proj-users/89f1af81-5ebe-41ed-8437-5d223349acbf%40googlegroups.com.

daniel.l...@gmail.com

unread,
Nov 21, 2013, 7:30:07 AM11/21/13
to mnemosyne-...@googlegroups.com
So... is there any way to go about altering font sizes within a card? I can't seem to figure it out!

Peter Bienstman

unread,
Nov 21, 2013, 8:17:45 AM11/21/13
to mnemosyne-...@googlegroups.com
Can you tell us exactly what you tried putting on a card?

Peter

Citeren daniel.l...@gmail.com:

> So... is there any way to go about altering font sizes within a
> card? I can't seem to figure it out!
>
> --
> 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-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/df55603c-6db5-40d6-910e-c63a250647b4%40googlegroups.com.

daniel.l...@gmail.com

unread,
Nov 21, 2013, 10:33:57 AM11/21/13
to mnemosyne-...@googlegroups.com
I have a lot of cards like this, built up over a year and a half of using Mnemosyne 1.xx (don't remember the exact version number).

<font size=5>厳重な警戒<font size=2>(けいかい)</font>厳重なチェック</font>

Peter Bienstman

unread,
Nov 21, 2013, 11:01:58 AM11/21/13
to mnemosyne-...@googlegroups.com
Hi,

Contrary to 1.x, in 2.x the card display widget is a full html
browser. Note that the <font> tag is deprecated in html4 and invalid
in html5, which is probably why it does not work inside the css font
size that Mnemosyne sets based on the values you put in the
configuration screen.

However, if you really want to hard code your font size (which I don't
recommend), use something like

normal<span style="font-size:24pt;">bigger</span>

Cheers,

Peter

Citeren daniel.l...@gmail.com:

daniel.l...@gmail.com

unread,
Nov 21, 2013, 11:15:46 AM11/21/13
to mnemosyne-...@googlegroups.com
Good to know!

Unfortunately, that span tag doesn't seem to affect the font size either! I've attempted resetting everything to defaults, but still no effect.

Since I'm still learning all the new features of 2.2.1, is there an alternative method you can recommend for creating cards similar to the one I posted above, where there are some specific words that I need to see the reading for? I can survive as it is right now (with the kanji, and the reading in brackets in the same font size), but having the reading be in that smaller, unobtrusive font was quite nice.

Peter Bienstman

unread,
Nov 21, 2013, 11:21:30 AM11/21/13
to mnemosyne-...@googlegroups.com

Citeren daniel.l...@gmail.com:

> Good to know!
>
> Unfortunately, that span tag doesn't seem to affect the font size
> either! I've attempted resetting everything to defaults, but still
> no effect.

Strange, the code I posted works for me both on Windows and Linux.
Perhaps an OSX specific bug in Qt4's html widget anyway...

> Since I'm still learning all the new features of 2.2.1, is there an
> alternative method you can recommend for creating cards similar to
> the one I posted above, where there are some specific words that I
> need to see the reading for? I can survive as it is right now (with
> the kanji, and the reading in brackets in the same font size), but
> having the reading be in that smaller, unobtrusive font was quite
> nice.

The cleanest thing would a Japanese specific card type, or a Filter
plugin, which automatically recognises the square brackets and
decreases the font size at run time, without people having to hard
code font sizes. Mnemosyne 2.x architecture is flexible enough to
achieve this, but in our Uservoice forum, there does seem to be a lot
a demand for Japanese or Chinese specific code...

Cheers,

Peter

> --
> 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-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/a5bccd0c-1319-4f66-b914-3460fc8d4cc9%40googlegroups.com.

Gnome

unread,
Nov 21, 2013, 11:24:17 AM11/21/13
to mnemosyne-...@googlegroups.com, daniel.l...@gmail.com
I tried this too and it seems to be a specific issue with the character's youre using.
For example I tested (on a windows machine):
test 厳重な警戒<span style="font-size:24pt;">test 厳重な警戒</span> 

test will scale right, while 厳重な警戒 will not. I have no idea why.

Peter Bienstman

unread,
Nov 21, 2013, 11:48:28 AM11/21/13
to mnemosyne-...@googlegroups.com
Indeed! So, it has nothing to do with the font tag being deprecated,
because it turns out that

small<font size=5>big</font>

also works.

So, conclusion it that's a bug involving non-latin characters in Qt on
all platforms.

Hopefully, a future release of Qt will fix this.

Cheers,

Peter


Citeren Gnome <jippi...@hotmail.com>:
> --
> 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-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/97a2124f-3664-4a9e-99e3-1306dcfe881c%40googlegroups.com.

daniel.l...@gmail.com

unread,
Nov 22, 2013, 4:53:15 AM11/22/13
to mnemosyne-...@googlegroups.com
Alright, good to know, thanks!

Incidentally... what is Qt4?

Peter Bienstman

unread,
Nov 22, 2013, 5:00:28 AM11/22/13
to mnemosyne-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages