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
162676cb
Kaydet (Commit)
162676cb
authored
Eyl 22, 2011
tarafından
Martin Hosken
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Upgrade graphite to 1.0.3 fix surrogate support
üst
d543cb25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
23 deletions
+27
-23
graphite2.patch
graphite/graphite2.patch
+2
-2
graphite_make.patch
graphite/graphite_make.patch
+2
-2
makefile.mk
graphite/makefile.mk
+3
-4
ooo.lst.in
ooo.lst.in
+1
-1
graphite_layout.cxx
vcl/source/glyphs/graphite_layout.cxx
+19
-14
No files found.
graphite/graphite2.patch
Dosyayı görüntüle @
162676cb
--- misc/graphite2-1.0.
2
/include/graphite2/Types.h 2011-02-12 16:54:16.000000000 +0100
+++ misc/build/graphite2-1.0.
2
/include/graphite2/Types.h 2011-03-15 21:38:06.264788098 +0100
--- misc/graphite2-1.0.
3
/include/graphite2/Types.h 2011-02-12 16:54:16.000000000 +0100
+++ misc/build/graphite2-1.0.
3
/include/graphite2/Types.h 2011-03-15 21:38:06.264788098 +0100
@@ -36,7 +36,8 @@
};
...
...
graphite/graphite_make.patch
Dosyayı görüntüle @
162676cb
--- misc/build/graphite2-1.0.
2
/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
+++ misc/build/graphite2-1.0.
2
/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
--- misc/build/graphite2-1.0.
3
/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
+++ misc/build/graphite2-1.0.
3
/src/makefile.mk Fri Mar 4 10:20:30 2011 +0700
@@ -1,1 +1,38 @@
-dummy
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
...
...
graphite/makefile.mk
Dosyayı görüntüle @
162676cb
...
...
@@ -45,11 +45,10 @@ all:
# --- Files --------------------------------------------------------
.IF
"$(ENABLE_GRAPHITE)"
==
"TRUE"
TARFILE_NAME
=
graphite2-1.0.
2
TARFILE_MD5
=
3
115c721f5cb7c464f01c2dddccfaba6
TARFILE_NAME
=
graphite2-1.0.
3
TARFILE_MD5
=
3
bf481ca95109b14435125c0dd1f2217
PATCH_FILES
=
graphite2.patch
\
graphite_make.patch
\
graphite2.placementnew.patch
graphite_make.patch
ADDITIONAL_FILES
=
\
src/makefile.mk
...
...
ooo.lst.in
Dosyayı görüntüle @
162676cb
...
...
@@ -87,7 +87,7 @@ d6447e3ae278800c58ae40b740c861c0-libwpd-0.9.3.tar.bz2
0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz
3
115c721f5cb7c464f01c2dddccfaba6-graphite2-1.0.2
.tgz
3
bf481ca95109b14435125c0dd1f2217-graphite2-1.0.3
.tgz
cfb4259665fa96874deaa1b233d0b9c2-libvisio-0.0.7.tar.bz2
881af2b7dca9b8259abbca00bbbc004d-LinLibertineG-20110101.zip
@GOOGLE_DOCS_EXTENSION_PACK@
...
...
vcl/source/glyphs/graphite_layout.cxx
Dosyayı görüntüle @
162676cb
...
...
@@ -36,9 +36,9 @@
#define GR_NAMESPACE
// Enable lots of debug info
#if
def DEBUG
#if
OSL_DEBUG_LEVEL > 1
#include <cstdio>
//
#define GRLAYOUT_DEBUG 1
#define GRLAYOUT_DEBUG 1
#undef NDEBUG
#endif
...
...
@@ -329,8 +329,9 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc
float
leftBoundary
=
gr_slot_origin_X
(
clusterFirst
);
float
rightBoundary
=
(
clusterAfter
)
?
gr_slot_origin_X
(
clusterAfter
)
:
gr_seg_advance_X
(
pSegment
);
if
(
mnSegCharOffset
+
nFirstCharInCluster
>=
mnMinCharPos
&&
mnSegCharOffset
+
nFirstCharInCluster
<
mnEndCharPos
)
size_t
bFirstChar
=
gr_cinfo_base
(
gr_seg_cinfo
(
pSegment
,
nFirstCharInCluster
));
if
(
mnSegCharOffset
+
bFirstChar
>=
mnMinCharPos
&&
mnSegCharOffset
+
bFirstChar
<
mnEndCharPos
)
{
fMinX
=
minimum
<
float
>
(
fMinX
,
leftBoundary
);
fMaxX
=
maximum
<
float
>
(
fMaxX
,
rightBoundary
);
...
...
@@ -338,21 +339,22 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc
{
for
(
int
i
=
nFirstCharInCluster
;
i
<=
nLastCharInCluster
;
i
++
)
{
if
(
mnSegCharOffset
+
i
>=
mnEndCharPos
)
size_t
ibase
=
gr_cinfo_base
(
gr_seg_cinfo
(
pSegment
,
i
));
if
(
mnSegCharOffset
+
ibase
>=
mnEndCharPos
)
break
;
// from the point of view of the dx array, the xpos is
// the origin of the first glyph of the next cluster ltr
mvCharDxs
[
mnSegCharOffset
+
i
-
mnMinCharPos
]
=
mvCharDxs
[
mnSegCharOffset
+
i
base
-
mnMinCharPos
]
=
static_cast
<
int
>
(
rightBoundary
*
fScaling
)
+
nDxOffset
;
mvCharBreaks
[
mnSegCharOffset
+
i
-
mnMinCharPos
]
=
gr_cinfo_break_weight
(
gr_seg_cinfo
(
pSegment
,
i
));
mvCharBreaks
[
mnSegCharOffset
+
i
base
-
mnMinCharPos
]
=
gr_cinfo_break_weight
(
gr_seg_cinfo
(
pSegment
,
i
));
}
// only set mvChar2BaseGlyph for first character of cluster
mvChar2BaseGlyph
[
mnSegCharOffset
+
nFirstCharInCluste
r
-
mnMinCharPos
]
=
nBaseGlyphIndex
;
mvChar2BaseGlyph
[
mnSegCharOffset
+
bFirstCha
r
-
mnMinCharPos
]
=
nBaseGlyphIndex
;
}
append
(
pSegment
,
rArgs
,
baseSlot
,
rightBoundary
,
fScaling
,
nDxOffset
,
true
,
mnSegCharOffset
+
firstChar
);
}
if
(
mnSegCharOffset
+
nFirstCharInCluste
r
>=
mnEndCharPos
)
if
(
mnSegCharOffset
+
bFirstCha
r
>=
mnEndCharPos
)
break
;
baseSlot
=
gr_slot_next_sibling_attachment
(
baseSlot
);
}
...
...
@@ -596,20 +598,23 @@ gr_segment * GraphiteLayout::CreateSegment(ImplLayoutArgs& rArgs)
nSegCharLimit
-
rArgs
.
mnEndCharPos
,
bRtl
);
}
}
size_t
numchars
=
gr_count_unicode_characters
(
gr_utf16
,
rArgs
.
mpStr
+
mnSegCharOffset
,
rArgs
.
mpStr
+
limit
,
NULL
);
if
(
mpFeatures
)
pSegment
=
gr_make_seg
(
mpFont
,
mpFace
,
0
,
mpFeatures
->
values
(),
gr_utf16
,
rArgs
.
mpStr
+
mnSegCharOffset
,
limit
-
mnSegCharOffset
,
bRtl
);
rArgs
.
mpStr
+
mnSegCharOffset
,
numchars
,
bRtl
);
else
pSegment
=
gr_make_seg
(
mpFont
,
mpFace
,
0
,
NULL
,
gr_utf16
,
rArgs
.
mpStr
+
mnSegCharOffset
,
limit
-
mnSegCharOffset
,
bRtl
);
rArgs
.
mpStr
+
mnSegCharOffset
,
numchars
,
bRtl
);
//pSegment = new gr::RangeSegment((gr::Font *)&mrFont, mpTextSrc, &maLayout, mnMinCharPos, limit);
if
(
pSegment
!=
NULL
)
{
#ifdef GRLAYOUT_DEBUG
fprintf
(
grLog
(),
"Gr::LayoutText %d-%d, context %d,len%d rtl%d scaling %f
\n
"
,
rArgs
.
mnMinCharPos
,
rArgs
.
mnEndCharPos
,
limit
,
rArgs
.
mnLength
,
bRtl
,
mfScaling
);
fprintf
(
grLog
(),
"Gr::LayoutText %d-%d, context %d,len%d,numchars%d, rtl%d scaling %f:"
,
rArgs
.
mnMinCharPos
,
rArgs
.
mnEndCharPos
,
limit
,
rArgs
.
mnLength
,
numchars
,
bRtl
,
mfScaling
);
for
(
int
i
=
mnSegCharOffset
;
i
<
limit
;
++
i
)
fprintf
(
grLog
(),
" %04X"
,
rArgs
.
mpStr
[
i
]);
fprintf
(
grLog
(),
"
\n
"
);
#endif
}
else
...
...
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