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
f1651ee5
Kaydet (Commit)
f1651ee5
authored
Eyl 21, 2012
tarafından
Sergey Farbotka
Kaydeden (comit)
Thorsten Behrens
Eyl 21, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix fdo#55142 - wrong character pos calculation on mac.
Change-Id: If8a0f527102b70bf1dcf292f8df31aaff9fba5c8
üst
16f1e6ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
salgdi.cxx
vcl/aqua/source/gdi/atsui/salgdi.cxx
+27
-2
salgdi.h
vcl/inc/aqua/atsui/salgdi.h
+1
-0
No files found.
vcl/aqua/source/gdi/atsui/salgdi.cxx
Dosyayı görüntüle @
f1651ee5
...
...
@@ -354,6 +354,8 @@ AquaSalGraphics::AquaSalGraphics()
{
// create the style object for font attributes
ATSUCreateStyle
(
&
maATSUStyle
);
ResetFontStyle
();
}
// -----------------------------------------------------------------------
...
...
@@ -579,6 +581,29 @@ bool AquaSalGraphics::AddTempDevFont( ImplDevFontList*,
// -----------------------------------------------------------------------
void
AquaSalGraphics
::
ResetFontStyle
()
{
ATSUClearStyle
(
maATSUStyle
);
// Set justification attributes
ATSJustPriorityWidthDeltaOverrides
nPriorityJustOverrides
;
memset
(
nPriorityJustOverrides
,
0
,
sizeof
(
nPriorityJustOverrides
));
nPriorityJustOverrides
[
kJUSTLetterPriority
].
growFlags
=
kJUSTOverrideLimits
;
nPriorityJustOverrides
[
kJUSTLetterPriority
].
shrinkFlags
=
kJUSTOverrideLimits
;
ATSUAttributeTag
theTag
=
kATSUPriorityJustOverrideTag
;
ByteCount
theSize
=
sizeof
(
ATSJustPriorityWidthDeltaOverrides
);
ATSUAttributeValuePtr
thePtr
=
&
nPriorityJustOverrides
;
OSStatus
eStatus
=
ATSUSetAttributes
(
maATSUStyle
,
1
,
&
theTag
,
&
theSize
,
&
thePtr
);
if
(
eStatus
!=
noErr
)
{
DBG_WARNING
(
"AquaSalGraphics::ResetFontStyle() : Could not override justification attributes!
\n
"
);
}
}
// -----------------------------------------------------------------------
// callbacks from ATSUGlyphGetCubicPaths() fore GetGlyphOutline()
struct
GgoData
{
basegfx
::
B2DPolygon
maPolygon
;
basegfx
::
B2DPolyPolygon
*
mpPolyPoly
;
};
...
...
@@ -698,7 +723,7 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac
{
if
(
!
pReqFont
)
{
ATSUClearStyle
(
maATSUStyle
);
ResetFontStyle
(
);
mpMacFontData
=
NULL
;
return
0
;
}
...
...
@@ -784,7 +809,7 @@ sal_uInt16 AquaSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallbac
if
(
eStatus
!=
noErr
)
{
DBG_WARNING
(
"AquaSalGraphics::SetFont() : Could not set font attributes!
\n
"
);
ATSUClearStyle
(
maATSUStyle
);
ResetFontStyle
(
);
mpMacFontData
=
NULL
;
return
0
;
}
...
...
vcl/inc/aqua/atsui/salgdi.h
Dosyayı görüntüle @
f1651ee5
...
...
@@ -353,6 +353,7 @@ private:
bool
GetRawFontData
(
const
PhysicalFontFace
*
pFontData
,
std
::
vector
<
unsigned
char
>&
rBuffer
,
bool
*
pJustCFF
);
void
ResetFontStyle
();
};
// --- some trivial inlines
...
...
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