summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorKevin Suo <suokunlong@126.com>2021-07-11 14:49:54 +0800
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-12 20:21:49 +0200
commitcffd97193f7468f770368559d5a5c58bd0bb2327 (patch)
tree07bec4b3e27745682bdc33cf52edbb99eed426e2 /cui
parenta023a967978a334fd5016ab325864796def295cc (diff)
tdf#78427 sdext.pdfimport: refactor the conversion of font family names
Simplify the code and hopefully improves performance. The previous code used a long for loop within which it used many duplicated parseFontRemoveSuffix. That for loop was simply intended to remove the font family name suffixes. However, the rResult.familyName is a OUString and this type already has the function of removing suffixes which is more efficient. Also, defined a list of suffixes to be removed in the header file. New suffixes can be easily added to this list. Change-Id: Idfa11cfe60e2e34a1f7456d29562a89eb3de7662 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118734 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
0 files changed, 0 insertions, 0 deletions