2014-09-22 13:30 GMT+03:00 Allan <agande...@gmail.com>: > On 22/09/14 11:24, Cristian Oneț wrote: >> >> You can't. It's part of KMyMoney internals and should not be used by a >> plugin. On the other hand why do you even hardcode fonts in the >> layout? I think that it's as bad as hardcoding sizes. >> >> Regards, >> Cristian > > > I was hoping to get the font from the config so didn't see where that was > hardcoding.
I was trying to figure out what kind of difficulties could a different sized font cause so I took a look in the CVS importer layout files. This [1] is just an example there are other places like this. "font-family:'Sans Serif' font-size:9pt"? Maybe I'm wrong and that is some kind of default value but it seems pretty hard coded. What I was trying to say is don't mess with the system fonts (KMyMoney shouldn't do that either - just haven't had time to remove it), because it's what the user expects to be used. If you care just choose a different system fond and launch the CVS plugin to see the difference but I guess that is what you meant the first time. Regards, Cristian [1] https://projects.kde.org/projects/extragear/office/kmymoney/repository/revisions/1d84d3ba8f71da3259eb6a9eec53c6f8393fac1a/entry/kmymoney/plugins/csvimport/separatorwizardpage.ui#L32 > > Thanks anyway, > > Allan > > >> 2014-09-22 13:13 GMT+03:00 Allan <agande...@gmail.com>: >>> >>> When testing the CSV plugin on Linux Mint and Ubuntu, I'm having >>> difficulty >>> because the string pixel widths differ, I assume because the fonts >>> differ. >>> >>> I'm trying now to access KMyMoneyGlobalSettings::listCellFont(), but I'm >>> getting undefined reference when linking, and I haven't found the correct >>> way to adjust CMakeLists.txt. >>> >>> How do I do this please? Thanks >>> >>> Allan > > > >> https://mail.kde.org/mailman/listinfo/kmymoney-devel >> > _______________________________________________ > KMyMoney-devel mailing list > KMyMoney-devel@kde.org > https://mail.kde.org/mailman/listinfo/kmymoney-devel _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel