Parley can't change font size for cards

Bug #802896 reported by ImConfused on 2011-06-28
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kdeedu (Ubuntu)
Undecided
Unassigned

Bug Description

Xubuntu; 11.04 Natty, Vesa graphics driver, i855 graphics chip, nomodeset boot option.

Parley has settings - Configure Parley - View - fonts choose. I change the fonts in Table Font and the IPA Font. The Table fonts get bigger like they are supposed to when I change the font therefore becoming more legible when I edit. The fonts when I view the flashcards do not change size and remain too small. I am able to input in Korean with no problem. I was running Parley in xubuntu 9.10 and had no problem like this with the flashcard fonts. I suspect that there may be a file from KDE which is missing or not right or a problem with Parley. The parleyrc file shows that I changed the font size. I tried reinstalling the dependencies and the program. If there is some file that I can change the fonts in for the default that would be acceptable.

Changed in kdeedu (Ubuntu):
status: New → Confirmed
Revision history for this message
Mayeul KAUFFMANN (mayeul-kauffmann) wrote :

Hi,
I confirm the bug. I found a rough workaround but as it's the first time I look into Parley's code, use at your own risk! I'm quite sure it breaks something else. Still it can help the debugging.

I have modified the lines 41 to 52 in flashcarmodewidget.cpp, commenting out everything related to Latex Renderer, see below:

void FlashCardModeWidget::setQuestion(const QVariant& question)
{
    m_ui->questionLabel->setMinimumSize(QSize(0, 0));
// if (LatexRenderer::isLatex(question.toString())) {
// if(!m_questionLatexRenderer) {
// m_questionLatexRenderer = new LatexRenderer(this);
// m_questionLatexRenderer->setResultLabel(m_ui->questionLabel);
// }
// m_questionLatexRenderer->renderLatex(question.toString());
// } else {
        m_ui->questionLabel->setText(question.toString());
// }
}

Before doing this, I noticed that mixedlettersmodewidget.cpp had a setSolutionFont function but not a setQuestionFont one.
I tried to mimic the setSolutionFont code into a setQuestionFont code; not sure it is necessary or appropriate.

After doing this, I can use Kde system settings to change the fonts, and the question font changes (sometimes in a weird way: it does not always stay correct I think).

Hope this helps!
mayeulk

Revision history for this message
emil (emil362) wrote :

Hi,
Edit this file /home/emil/.kde/share/config/parleyrc
Find the line containing the word "font" and change the font size.

For example, like this :

[Appearance]
GradeColor=25,140,25
IPAFont=Comic Sans MS,16,-1,5,50,0,0,0,0,0

[Locale en]
EditorFont=Sans Serif,12,-1,5,50,0,0,0,0,0
PracticeFont=Sans Serif,16,-1,5,50,0,0,0,0,0
SpellChecker=en

[Locale pl]
EditorFont=Sans Serif,12,-1,5,50,0,0,0,0,0
PracticeFont=Sans Serif,16,-1,5,50,0,0,0,0,0

Sorry for my English :-)

Enjoy

Revision history for this message
emil (emil362) wrote :

If you can't find section "[Locale en]" and "[Locale pl]" past this ↓

[Locale en]
EditorFont=Sans Serif,12,-1,5,50,0,0,0,0,0
PracticeFont=Sans Serif,16,-1,5,50,0,0,0,0,0
SpellChecker=en

[Locale pl]
EditorFont=Sans Serif,12,-1,5,50,0,0,0,0,0
PracticeFont=Sans Serif,16,-1,5,50,0,0,0,0,0

Enjoy

Revision history for this message
emil (emil362) wrote :

[Locale en]
en → is the abbreviation for the language you are learning.

[Locale pl]
pl → is the abbreviation for the language that you know.

Revision history for this message
gb38 (godfried-borremans) wrote :

in version 1.0.0 you can change these fonts in the application:
start parley
open/create a file
open the editor
now you have the menu option: Edit / Languages
you can set the practice and editor font for each language
the ipa (pronunciation) font can be changed via the menu option Settings / Configure Parley
select the View option

all the selected fonts settings are global, they are not saved with the vocabulary file

> parley --version
Qt: 4.8.6
KDE Development Platform: 4.13.3
Parley: 1.0.0
> lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions