summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorخالد حسني <khaled@libreoffice.org>2023-06-05 15:11:18 +0200
committerخالد حسني <khaled@libreoffice.org>2023-06-05 16:54:37 +0200
commit6014fd047a62e1a002cc27334e39e1d2e54e342f (patch)
tree3820f8bd4bb106248beb21ffc324ed91e95017c8
parentbdad6055eb32fa6e7ee9e43cf1a54edbd2318fcd (diff)
Revert "tdf#155676: Use colon in FontsUseWinMetrics config key"
This reverts commit a38e1537cd06367783a43cc8d3b0e8d674b6e142. Change-Id: Ic72f1acb7e38209e9b87a8fe80a39acb1eeacfe4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152547 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
-rw-r--r--officecfg/registry/schema/org/openoffice/Office/Common.xcs8
-rw-r--r--vcl/source/font/fontmetric.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 2eb90331ad33..f47edadcae0f 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -5126,12 +5126,12 @@
</info>
<value>
<!-- tdf#148122 Celtic MD font appears wrong -->
- <it>Celticmd:1571:-567:1571:-547:2126:559</it>
+ <it>Celticmd,1571,-567,1571,-547,2126,559</it>
<!-- DIN Light (ttf version) has odd metrics. The otf version works fine. -->
- <it>DIN Light:1509:-503:1509:-483:1997:483</it>
+ <it>DIN Light,1509,-503,1509,-483,1997,483</it>
<!-- tdf#155297 -->
- <it>B Nazanin:1343:-705:1990:-1045:1990:1045</it> <!-- Regular -->
- <it>B Nazanin:1341:-707:2126:-1120:2126:1120</it> <!-- Bold -->
+ <it>B Nazanin,1343,-705,1990,-1045,1990,1045</it> <!-- Regular -->
+ <it>B Nazanin,1341,-707,2126,-1120,2126,1120</it> <!-- Bold -->
</value>
</prop>
<prop oor:name="FontsDontUseUnderlineMetrics" oor:type="oor:string-list" oor:nillable="false">
diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index f9740704ca96..8a998c6815c6 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -400,10 +400,10 @@ bool ImplFontMetricData::ShouldUseWinMetrics(int nAscent, int nDescent, int nTyp
return false;
OUString aFontIdentifier(
- GetFamilyName() + ":"
- + OUString::number(nAscent) + ":" + OUString::number(nDescent) + ":"
- + OUString::number(nTypoAscent) + ":" + OUString::number(nTypoDescent) + ":"
- + OUString::number(nWinAscent) + ":" + OUString::number(nWinDescent));
+ GetFamilyName() + ","
+ + OUString::number(nAscent) + "," + OUString::number(nDescent) + ","
+ + OUString::number(nTypoAscent) + "," + OUString::number(nTypoDescent) + ","
+ + OUString::number(nWinAscent) + "," + OUString::number(nWinDescent));
css::uno::Sequence<OUString> rWinMetricFontList(
officecfg::Office::Common::Misc::FontsUseWinMetrics::get());