Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
984dadaf
Kaydet (Commit)
984dadaf
authored
Haz 17, 2013
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some notes
Change-Id: I665826017f03b123a8b80d6cf31e37d18e169d10
üst
fd786139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ctfonts.cxx
vcl/coretext/ctfonts.cxx
+3
-2
No files found.
vcl/coretext/ctfonts.cxx
Dosyayı görüntüle @
984dadaf
...
@@ -138,7 +138,8 @@ void CTTextStyle::GetFontMetric( float fPixelSize, ImplFontMetricData& rMetric )
...
@@ -138,7 +138,8 @@ void CTTextStyle::GetFontMetric( float fPixelSize, ImplFontMetricData& rMetric )
bool
CTTextStyle
::
GetGlyphBoundRect
(
sal_GlyphId
nGlyphId
,
Rectangle
&
rRect
)
const
bool
CTTextStyle
::
GetGlyphBoundRect
(
sal_GlyphId
nGlyphId
,
Rectangle
&
rRect
)
const
{
{
CGGlyph
nCGGlyph
=
nGlyphId
&
GF_IDXMASK
;
// NOTE: CoreText handles glyph fallback itself
CGGlyph
nCGGlyph
=
nGlyphId
&
GF_IDXMASK
;
// XXX: this is broken if the glyph came from fallback font
CTFontRef
aCTFontRef
=
(
CTFontRef
)
CFDictionaryGetValue
(
mpStyleDict
,
kCTFontAttributeName
);
CTFontRef
aCTFontRef
=
(
CTFontRef
)
CFDictionaryGetValue
(
mpStyleDict
,
kCTFontAttributeName
);
const
CTFontOrientation
aFontOrientation
=
kCTFontDefaultOrientation
;
// TODO: horz/vert
const
CTFontOrientation
aFontOrientation
=
kCTFontDefaultOrientation
;
// TODO: horz/vert
...
@@ -197,8 +198,8 @@ bool CTTextStyle::GetGlyphOutline( sal_GlyphId nGlyphId, basegfx::B2DPolyPolygon
...
@@ -197,8 +198,8 @@ bool CTTextStyle::GetGlyphOutline( sal_GlyphId nGlyphId, basegfx::B2DPolyPolygon
{
{
rResult
.
clear
();
rResult
.
clear
();
// TODO: GF_FONTMASK if using non-native glyph fallback
CGGlyph
nCGGlyph
=
nGlyphId
&
GF_IDXMASK
;
CGGlyph
nCGGlyph
=
nGlyphId
&
GF_IDXMASK
;
// XXX: this is broken if the glyph came from fallback font
CTFontRef
pCTFont
=
(
CTFontRef
)
CFDictionaryGetValue
(
mpStyleDict
,
kCTFontAttributeName
);
CTFontRef
pCTFont
=
(
CTFontRef
)
CFDictionaryGetValue
(
mpStyleDict
,
kCTFontAttributeName
);
CGPathRef
xPath
=
CTFontCreatePathForGlyph
(
pCTFont
,
nCGGlyph
,
NULL
);
CGPathRef
xPath
=
CTFontCreatePathForGlyph
(
pCTFont
,
nCGGlyph
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment