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
6e082083
Kaydet (Commit)
6e082083
authored
Ock 28, 2014
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i124122# emulate bold font weights for CoreText if needed
üst
2a589af3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ctfonts.cxx
vcl/aqua/source/gdi/ctfonts.cxx
+10
-0
No files found.
vcl/aqua/source/gdi/ctfonts.cxx
Dosyayı görüntüle @
6e082083
...
@@ -141,6 +141,16 @@ CTTextStyle::CTTextStyle( const ImplFontSelectData& rFSD )
...
@@ -141,6 +141,16 @@ CTTextStyle::CTTextStyle( const ImplFontSelectData& rFSD )
CFDictionarySetValue
(
mpStyleDict
,
kCTFontAttributeName
,
pNewCTFont
);
CFDictionarySetValue
(
mpStyleDict
,
kCTFontAttributeName
,
pNewCTFont
);
CFRelease
(
pNewCTFont
);
CFRelease
(
pNewCTFont
);
// handle emulation of bold styles if requested and the font that doesn't provide them
if
(
(
pReqFont
->
meWeight
>
WEIGHT_MEDIUM
)
&&
(
mpFontData
->
meWeight
<=
WEIGHT_MEDIUM
)
&&
(
mpFontData
->
meWeight
!=
WEIGHT_DONTKNOW
))
{
const
int
nBoldFactor
=
-
lrint
(
(
3.5
F
*
pReqFont
->
meWeight
)
/
mpFontData
->
meWeight
);
CFNumberRef
pCFIntBold
=
CFNumberCreate
(
NULL
,
kCFNumberIntType
,
&
nBoldFactor
);
CFDictionarySetValue
(
mpStyleDict
,
kCTStrokeWidthAttributeName
,
pCFIntBold
);
}
#if 0 // LastResort is implicit in CoreText's font cascading
#if 0 // LastResort is implicit in CoreText's font cascading
const void* aGFBDescriptors[] = { CTFontDescriptorCreateWithNameAndSize( CFSTR("LastResort"), 0) }; // TODO: use the full GFB list
const void* aGFBDescriptors[] = { CTFontDescriptorCreateWithNameAndSize( CFSTR("LastResort"), 0) }; // TODO: use the full GFB list
const int nGfbCount = sizeof(aGFBDescriptors) / sizeof(*aGFBDescriptors);
const int nGfbCount = sizeof(aGFBDescriptors) / sizeof(*aGFBDescriptors);
...
...
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