Parley can't change font size for cards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdeedu (Ubuntu) |
Confirmed
|
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 |
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 flashcarmodewid get.cpp, commenting out everything related to Latex Renderer, see below:
void FlashCardModeWi dget::setQuesti on(const QVariant& question) >questionLabel- >setMinimumSize (QSize( 0, 0)); :isLatex( question. toString( ))) { atexRenderer) { Renderer = new LatexRenderer( this); Renderer- >setResultLabel (m_ui-> questionLabel) ; Renderer- >renderLatex( question. toString( ));
m_ui-> questionLabel- >setText( question. toString( ));
{
m_ui-
// if (LatexRenderer:
// if(!m_questionL
// m_questionLatex
// m_questionLatex
// }
// m_questionLatex
// } else {
// }
}
Before doing this, I noticed that mixedlettersmod ewidget. 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