Lines 632-639
Link Here
|
632 |
/*---------------------------------------------------------------------------------------------- |
632 |
/*---------------------------------------------------------------------------------------------- |
633 |
We are finished processing a slot; go on to the next slot, or possibly go backwards. |
633 |
We are finished processing a slot; go on to the next slot, or possibly go backwards. |
634 |
----------------------------------------------------------------------------------------------*/ |
634 |
----------------------------------------------------------------------------------------------*/ |
635 |
void GrPass::DoNext(GrTableManager * ptman, |
635 |
#ifdef NDEBUG |
636 |
int cslot, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
636 |
void GrPass::DoNext(GrTableManager * /*ptman*/, |
|
|
637 |
int /*cslot*/, GrSlotStream * /*psstrmIn*/, GrSlotStream * /*psstrmOut*/) |
638 |
#else |
639 |
void GrPass::DoNext(GrTableManager * /*ptman*/, |
640 |
int cslot, GrSlotStream * /*psstrmIn*/, GrSlotStream * /*psstrmOut*/) |
641 |
#endif |
637 |
{ |
642 |
{ |
638 |
gAssert(cslot == 1); // for now anyway |
643 |
gAssert(cslot == 1); // for now anyway |
639 |
} |
644 |
} |
Lines 690-695
Link Here
|
690 |
psstrmOut->SetSegMinToWritePos(false); |
695 |
psstrmOut->SetSegMinToWritePos(false); |
691 |
if (fSetSegLim) |
696 |
if (fSetSegLim) |
692 |
psstrmOut->SetSegLimToWritePos(false); |
697 |
psstrmOut->SetSegLimToWritePos(false); |
|
|
698 |
//gid16 chw; chw = pslotNew->GlyphID(); |
693 |
psstrmOut->NextPut(pslotNew); |
699 |
psstrmOut->NextPut(pslotNew); |
694 |
} |
700 |
} |
695 |
|
701 |
|
Lines 729-734
Link Here
|
729 |
psstrmOut->SetSegMinToWritePos(false); |
735 |
psstrmOut->SetSegMinToWritePos(false); |
730 |
if (fSetSegLim) |
736 |
if (fSetSegLim) |
731 |
psstrmOut->SetSegLimToWritePos(false); |
737 |
psstrmOut->SetSegLimToWritePos(false); |
|
|
738 |
//gid16 chw; chw = pslotNew->GlyphID(); |
732 |
psstrmOut->NextPut(pslotNew); |
739 |
psstrmOut->NextPut(pslotNew); |
733 |
} |
740 |
} |
734 |
|
741 |
|
Lines 825-831
Link Here
|
825 |
@param psstrmIn / Out - input/output streams |
832 |
@param psstrmIn / Out - input/output streams |
826 |
----------------------------------------------------------------------------------------------*/ |
833 |
----------------------------------------------------------------------------------------------*/ |
827 |
void GrPass::DoPutSubs3(GrTableManager * ptman, bool fInserting, |
834 |
void GrPass::DoPutSubs3(GrTableManager * ptman, bool fInserting, |
828 |
int cslotSel1, int nSelClass1, int cslotSel2, int nSelClass2, int cslotSel3, int nSelClass3, |
835 |
int cslotSel1, int nSelClass1, int cslotSel2, int nSelClass2, int /*cslotSel3*/, int nSelClass3, |
829 |
int nReplacementClass, |
836 |
int nReplacementClass, |
830 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
837 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
831 |
{ |
838 |
{ |
Lines 888-894
Link Here
|
888 |
Common part of all the DoPutSubs... methods. |
895 |
Common part of all the DoPutSubs... methods. |
889 |
----------------------------------------------------------------------------------------------*/ |
896 |
----------------------------------------------------------------------------------------------*/ |
890 |
void GrPass::DoPutSubsAux(GrTableManager * ptman, bool fInserting, gid16 nGlyphReplacement, |
897 |
void GrPass::DoPutSubsAux(GrTableManager * ptman, bool fInserting, gid16 nGlyphReplacement, |
891 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut, GrSlotState * pslotNextInput, |
898 |
GrSlotStream * /*psstrmIn*/, GrSlotStream * psstrmOut, GrSlotState * pslotNextInput, |
892 |
bool fAtSegMin, bool fAtSegLim) |
899 |
bool fAtSegMin, bool fAtSegLim) |
893 |
{ |
900 |
{ |
894 |
EngineState * pengst = ptman->State(); |
901 |
EngineState * pengst = ptman->State(); |
Lines 915-920
Link Here
|
915 |
psstrmOut->SetSegMinToWritePos(false); |
922 |
psstrmOut->SetSegMinToWritePos(false); |
916 |
if (fSetSegLim) |
923 |
if (fSetSegLim) |
917 |
psstrmOut->SetSegLimToWritePos(false); |
924 |
psstrmOut->SetSegLimToWritePos(false); |
|
|
925 |
//gid16 chw; chw = pslotNew->GlyphID(); |
918 |
psstrmOut->NextPut(pslotNew); |
926 |
psstrmOut->NextPut(pslotNew); |
919 |
} |
927 |
} |
920 |
|
928 |
|
Lines 924-930
Link Here
|
924 |
and its after-assoc to the slot before it. This makes it basically unselectable. |
932 |
and its after-assoc to the slot before it. This makes it basically unselectable. |
925 |
OBSOLETE - handled by slot initialization code |
933 |
OBSOLETE - handled by slot initialization code |
926 |
----------------------------------------------------------------------------------------------*/ |
934 |
----------------------------------------------------------------------------------------------*/ |
927 |
void GrPass::SetNeutralAssocs(GrSlotState * pslotNew, GrSlotStream * psstrmIn) |
935 |
void GrPass::SetNeutralAssocs(GrSlotState * pslotNew, GrSlotStream * /*psstrmIn*/) |
928 |
{ |
936 |
{ |
929 |
pslotNew->ClearAssocs(); |
937 |
pslotNew->ClearAssocs(); |
930 |
} |
938 |
} |
Lines 943-948
Link Here
|
943 |
psstrmOut->SetSegLimToWritePos(); |
951 |
psstrmOut->SetSegLimToWritePos(); |
944 |
|
952 |
|
945 |
GrSlotState * pslot = psstrmIn->NextGet(); |
953 |
GrSlotState * pslot = psstrmIn->NextGet(); |
|
|
954 |
//gid16 chw; chw = pslotNew->GlyphID(); |
946 |
pslot->MarkDeleted(); |
955 |
pslot->MarkDeleted(); |
947 |
|
956 |
|
948 |
if (ptman->LoggingTransduction()) |
957 |
if (ptman->LoggingTransduction()) |
Lines 957-963
Link Here
|
957 |
@param fInserting - whether current slot was inserted |
966 |
@param fInserting - whether current slot was inserted |
958 |
@param psstrmIn / Out - input/output streams |
967 |
@param psstrmIn / Out - input/output streams |
959 |
----------------------------------------------------------------------------------------------*/ |
968 |
----------------------------------------------------------------------------------------------*/ |
960 |
void GrPass::DoAssoc(int cnAssocs, std::vector<int> & vnAssocs, bool fInserting, |
969 |
void GrPass::DoAssoc(int cnAssocs, std::vector<int> & vnAssocs, bool /*fInserting*/, |
961 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
970 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
962 |
{ |
971 |
{ |
963 |
gAssert((unsigned)cnAssocs == vnAssocs.size()); |
972 |
gAssert((unsigned)cnAssocs == vnAssocs.size()); |
Lines 997-1003
Link Here
|
997 |
@param vnStack - stack to read value from |
1006 |
@param vnStack - stack to read value from |
998 |
@param psstrmIn / Out - input/output streams |
1007 |
@param psstrmIn / Out - input/output streams |
999 |
----------------------------------------------------------------------------------------------*/ |
1008 |
----------------------------------------------------------------------------------------------*/ |
|
|
1009 |
#ifdef NDEBUG |
1010 |
void GrPass::DoSetAttr(GrTableManager * ptman, ActionCommand op, bool /*fInserting*/, |
1011 |
#else |
1000 |
void GrPass::DoSetAttr(GrTableManager * ptman, ActionCommand op, bool fInserting, |
1012 |
void GrPass::DoSetAttr(GrTableManager * ptman, ActionCommand op, bool fInserting, |
|
|
1013 |
#endif |
1001 |
SlotAttrName slat, int slati, std::vector<int> & vnStack, |
1014 |
SlotAttrName slat, int slati, std::vector<int> & vnStack, |
1002 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1015 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1003 |
{ |
1016 |
{ |
Lines 1192-1198
Link Here
|
1192 |
@param psstrmIn - input stream |
1205 |
@param psstrmIn - input stream |
1193 |
----------------------------------------------------------------------------------------------*/ |
1206 |
----------------------------------------------------------------------------------------------*/ |
1194 |
void GrPass::DoPushSlotAttr(GrTableManager * ptman, |
1207 |
void GrPass::DoPushSlotAttr(GrTableManager * ptman, |
1195 |
int nSlotRef, bool fInserting, |
1208 |
int nSlotRef, bool /*fInserting*/, |
1196 |
SlotAttrName slat, int slati, std::vector<int> & vnStack, |
1209 |
SlotAttrName slat, int slati, std::vector<int> & vnStack, |
1197 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1210 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1198 |
{ |
1211 |
{ |
Lines 1236-1251
Link Here
|
1236 |
|
1249 |
|
1237 |
case kslatAttTo: nVal = pslot->AttachTo(); break; |
1250 |
case kslatAttTo: nVal = pslot->AttachTo(); break; |
1238 |
case kslatAttLevel: nVal = pslot->AttachLevel(); break; |
1251 |
case kslatAttLevel: nVal = pslot->AttachLevel(); break; |
1239 |
case kslatAttAtX: nVal = pslot->AttachAtX(ptman, psstrmIn); break; |
|
|
1240 |
case kslatAttAtY: nVal = pslot->AttachAtY(); break; |
1252 |
case kslatAttAtY: nVal = pslot->AttachAtY(); break; |
1241 |
case kslatAttAtGpt: nVal = pslot->AttachAtGpoint(); break; |
1253 |
case kslatAttAtGpt: nVal = pslot->AttachAtGpoint(); break; |
1242 |
case kslatAttAtXoff: nVal = pslot->AttachAtXOffset(); break; |
1254 |
case kslatAttAtXoff: nVal = pslot->AttachAtXOffset(); break; |
1243 |
case kslatAttAtYoff: nVal = pslot->AttachAtYOffset(); break; |
1255 |
case kslatAttAtYoff: nVal = pslot->AttachAtYOffset(); break; |
1244 |
case kslatAttWithX: nVal = pslot->AttachWithX(ptman, psstrmIn); break; |
|
|
1245 |
case kslatAttWithY: nVal = pslot->AttachWithY(); break; |
1256 |
case kslatAttWithY: nVal = pslot->AttachWithY(); break; |
1246 |
case kslatAttWithGpt: nVal = pslot->AttachWithGpoint(); break; |
1257 |
case kslatAttWithGpt: nVal = pslot->AttachWithGpoint(); break; |
1247 |
case kslatAttWithXoff: nVal = pslot->AttachWithXOffset(); break; |
1258 |
case kslatAttWithXoff: nVal = pslot->AttachWithXOffset(); break; |
1248 |
case kslatAttWithYoff: nVal = pslot->AttachWithYOffset(); break; |
1259 |
case kslatAttWithYoff: nVal = pslot->AttachWithYOffset(); break; |
|
|
1260 |
case kslatAttAtX: nVal = pslot->AttachAtX(ptman, psstrmIn); break; |
1261 |
case kslatAttWithX: nVal = pslot->AttachWithX(ptman, psstrmIn); break; |
1249 |
|
1262 |
|
1250 |
case kslatMeasureSol: nVal = pslot->MeasureSol(); break; |
1263 |
case kslatMeasureSol: nVal = pslot->MeasureSol(); break; |
1251 |
case kslatMeasureEol: nVal = pslot->MeasureEol(); break; |
1264 |
case kslatMeasureEol: nVal = pslot->MeasureEol(); break; |
Lines 1282-1288
Link Here
|
1282 |
@param vnStack - stack to push onto |
1295 |
@param vnStack - stack to push onto |
1283 |
@param psstrmIn - input stream |
1296 |
@param psstrmIn - input stream |
1284 |
----------------------------------------------------------------------------------------------*/ |
1297 |
----------------------------------------------------------------------------------------------*/ |
1285 |
void GrPass::DoPushGlyphAttr(GrTableManager * ptman, int nSlotRef, bool fInserting, |
1298 |
void GrPass::DoPushGlyphAttr(GrTableManager * ptman, int nSlotRef, bool /*fInserting*/, |
1286 |
int nGlyphAttr, |
1299 |
int nGlyphAttr, |
1287 |
std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1300 |
std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1288 |
{ |
1301 |
{ |
Lines 1307-1313
Link Here
|
1307 |
@param vnStack - stack to push onto |
1320 |
@param vnStack - stack to push onto |
1308 |
@param psstrmIn - input stream |
1321 |
@param psstrmIn - input stream |
1309 |
----------------------------------------------------------------------------------------------*/ |
1322 |
----------------------------------------------------------------------------------------------*/ |
1310 |
void GrPass::DoPushAttToGlyphAttr(GrTableManager * ptman, int nSlotRef, bool fInserting, |
1323 |
void GrPass::DoPushAttToGlyphAttr(GrTableManager * ptman, int nSlotRef, bool /*fInserting*/, |
1311 |
int nGlyphAttr, std::vector<int> & vnStack, |
1324 |
int nGlyphAttr, std::vector<int> & vnStack, |
1312 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1325 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1313 |
{ |
1326 |
{ |
Lines 1337-1343
Link Here
|
1337 |
@param vnStack - stack to push onto |
1350 |
@param vnStack - stack to push onto |
1338 |
@param psstrmIn - input stream |
1351 |
@param psstrmIn - input stream |
1339 |
----------------------------------------------------------------------------------------------*/ |
1352 |
----------------------------------------------------------------------------------------------*/ |
1340 |
void GrPass::DoPushGlyphMetric(GrTableManager * ptman, int nSlotRef, bool fInserting, |
1353 |
void GrPass::DoPushGlyphMetric(GrTableManager * ptman, int nSlotRef, bool /*fInserting*/, |
1341 |
int nGlyphAttr, int nAttLevel, |
1354 |
int nGlyphAttr, int nAttLevel, |
1342 |
std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1355 |
std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1343 |
{ |
1356 |
{ |
Lines 1364-1370
Link Here
|
1364 |
@param psstrmIn - input stream |
1377 |
@param psstrmIn - input stream |
1365 |
@param psstrmOut - output stream |
1378 |
@param psstrmOut - output stream |
1366 |
----------------------------------------------------------------------------------------------*/ |
1379 |
----------------------------------------------------------------------------------------------*/ |
1367 |
void GrPass::DoPushAttToGlyphMetric(GrTableManager * ptman, int nSlotRef, bool fInserting, |
1380 |
void GrPass::DoPushAttToGlyphMetric(GrTableManager * ptman, int nSlotRef, bool /*fInserting*/, |
1368 |
int nGlyphAttr, int nAttLevel, |
1381 |
int nGlyphAttr, int nAttLevel, |
1369 |
std::vector<int> & vnStack, |
1382 |
std::vector<int> & vnStack, |
1370 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1383 |
GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
Lines 1399-1405
Link Here
|
1399 |
} |
1412 |
} |
1400 |
else |
1413 |
else |
1401 |
{ |
1414 |
{ |
1402 |
pslot->CalcCompositeMetrics(ptman, psstrmIn, nAttLevel, true); |
1415 |
pslot->CalcCompositeMetrics(ptman, psstrmIn, NULL, nAttLevel, true); |
1403 |
|
1416 |
|
1404 |
float xy; |
1417 |
float xy; |
1405 |
switch (gmet) |
1418 |
switch (gmet) |
Lines 1435-1441
Link Here
|
1435 |
@param psstrmIn - input stream |
1448 |
@param psstrmIn - input stream |
1436 |
@param psstrmOut - output stream |
1449 |
@param psstrmOut - output stream |
1437 |
----------------------------------------------------------------------------------------------*/ |
1450 |
----------------------------------------------------------------------------------------------*/ |
1438 |
void GrPass::DoPushFeatValue(GrTableManager * ptman, int nSlotRef, bool fInserting, |
1451 |
#ifdef NDEBUG |
|
|
1452 |
void GrPass::DoPushFeatValue(GrTableManager * /*ptman*/, int nSlotRef, bool /*fInserting*/, |
1453 |
#else |
1454 |
void GrPass::DoPushFeatValue(GrTableManager * /*ptman*/, int nSlotRef, bool fInserting, |
1455 |
#endif |
1439 |
int nFeat, std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1456 |
int nFeat, std::vector<int> & vnStack, GrSlotStream * psstrmIn, GrSlotStream * psstrmOut) |
1440 |
{ |
1457 |
{ |
1441 |
gAssert(!fInserting); |
1458 |
gAssert(!fInserting); |