head 1.1248; access; symbols RELEASE_1_0_2:1.1026.2.26 BRANCH_1_0:1.1026.0.2 RELEASE_1_0_0:1.1013 BRANCH_SCALED_GLYPH:1.896.0.2 RELEASE_0_9_2:1.888 RELEASE_0_9_0:1.856 SNAPSHOT_0_6_0:1.794 SNAPSHOT_0_5_2:1.743 SNAPSHOT_0_5_1:1.674 SNAPSHOT_0_5_0:1.609 SNAPSHOT_0_4_0:1.419 SNAPSHOT_0_3_0:1.318 SNAPSHOT_0_2_0:1.250 LGPL_CHANGE_AFTER:1.216 LGPL_CHANGE_BEFORE:1.215 SNAPSHOT_0_1_23:1.193 SNAPSHOT_0_1_22:1.177 SNAPSHOT_0_1_21:1.175 SNAPSHOT_0_1_20:1.172 SNAPSHOT_0_1_16:1.120; locks; strict; comment @# @; 1.1248 date 2006.02.13.22.11.36; author emmanuel; state Exp; branches; next 1.1247; commitid 104943f103f24567; 1.1247 date 2006.02.13.20.41.10; author emmanuel; state Exp; branches; next 1.1246; commitid 389943f0ec814567; 1.1246 date 2006.02.11.20.57.56; author biesi; state Exp; branches; next 1.1245; commitid 3ceb43ee4fac4567; 1.1245 date 2006.02.02.20.47.58; author emmanuel; state Exp; branches; next 1.1244; commitid 123743e26fe24567; 1.1244 date 2006.01.29.21.25.10; author emmanuel; state Exp; branches; next 1.1243; commitid 468c43dd32984567; 1.1243 date 2006.01.26.03.17.34; author keithp; state Exp; branches; next 1.1242; commitid 211d43d83f484567; 1.1242 date 2006.01.25.23.34.30; author cworth; state Exp; branches; next 1.1241; commitid 34a543d80b054567; 1.1241 date 2006.01.25.23.29.25; author keithp; state Exp; branches; next 1.1240; commitid 31b843d809d04567; 1.1240 date 2006.01.25.22.31.17; author cworth; state Exp; branches; next 1.1239; commitid 119043d7fc304567; 1.1239 date 2006.01.25.18.22.32; author cworth; state Exp; branches; next 1.1238; commitid 72e143d7c1e54567; 1.1238 date 2006.01.25.16.41.14; author cworth; state Exp; branches; next 1.1237; commitid 356043d7aa284567; 1.1237 date 2006.01.25.15.33.56; author cworth; state Exp; branches; next 1.1236; commitid ff343d79a614567; 1.1236 date 2006.01.25.10.10.23; author cworth; state Exp; branches; next 1.1235; commitid 567243d74e8d4567; 1.1235 date 2006.01.22.10.33.26; author behdad; state Exp; branches; next 1.1234; commitid 2cc543d35f6b4567; 1.1234 date 2006.01.21.19.54.17; author biesi; state Exp; branches; next 1.1233; commitid 3a9b43d291574567; 1.1233 date 2006.01.21.17.46.13; author biesi; state Exp; branches; next 1.1232; commitid 5e4443d273524567; 1.1232 date 2006.01.21.17.39.10; author biesi; state Exp; branches; next 1.1231; commitid 588243d271aa4567; 1.1231 date 2006.01.20.23.25.54; author cworth; state Exp; branches; next 1.1230; commitid 40b843d1717f4567; 1.1230 date 2006.01.20.23.15.40; author cworth; state Exp; branches; next 1.1229; commitid 393843d16f194567; 1.1229 date 2006.01.20.22.48.07; author cworth; state Exp; branches; next 1.1228; commitid 268743d168a44567; 1.1228 date 2006.01.20.01.48.22; author cworth; state Exp; branches; next 1.1227; commitid 15e443d041624567; 1.1227 date 2006.01.19.20.44.00; author emmanuel; state Exp; branches; next 1.1226; commitid 727543cff9f84567; 1.1226 date 2006.01.19.00.44.19; author cworth; state Exp; branches; next 1.1225; commitid 3c4d43cee0df4567; 1.1225 date 2006.01.19.00.40.17; author cworth; state Exp; branches; next 1.1224; commitid 3a5643cedfec4567; 1.1224 date 2006.01.18.17.46.42; author cworth; state Exp; branches; next 1.1223; commitid 38ff43ce7efe4567; 1.1223 date 2006.01.18.01.01.36; author cworth; state Exp; branches; next 1.1222; commitid 1bcf43cd936c4567; 1.1222 date 2006.01.15.12.44.45; author biesi; state Exp; branches; next 1.1221; commitid 7a0b43ca43a84567; 1.1221 date 2006.01.14.14.53.43; author biesi; state Exp; branches; next 1.1220; commitid 727643c9106b4567; 1.1220 date 2006.01.13.21.41.45; author cworth; state Exp; branches; next 1.1219; commitid 3f0643c81e964567; 1.1219 date 2006.01.13.19.02.25; author cworth; state Exp; branches; next 1.1218; commitid 5e9443c7f93e4567; 1.1218 date 2006.01.13.17.25.28; author cworth; state Exp; branches; next 1.1217; commitid 254443c7e2844567; 1.1217 date 2006.01.13.00.47.05; author cworth; state Exp; branches; next 1.1216; commitid 32e243c6f8864567; 1.1216 date 2006.01.13.00.35.12; author cworth; state Exp; branches; next 1.1215; commitid 2e0943c6f5bc4567; 1.1215 date 2006.01.12.21.36.36; author cworth; state Exp; branches; next 1.1214; commitid 4fac43c6cbe14567; 1.1214 date 2006.01.12.00.29.17; author cworth; state Exp; branches; next 1.1213; commitid 4af043c5a2d94567; 1.1213 date 2006.01.12.00.01.25; author cworth; state Exp; branches; next 1.1212; commitid 3e6f43c59c524567; 1.1212 date 2006.01.11.19.53.33; author cworth; state Exp; branches; next 1.1211; commitid 392e43c5623a4567; 1.1211 date 2006.01.10.15.54.17; author andersca; state Exp; branches; next 1.1210; commitid 5fe343c3d8a24567; 1.1210 date 2006.01.10.13.28.59; author andersca; state Exp; branches; next 1.1209; commitid 58e43c3b6804567; 1.1209 date 2006.01.10.01.18.12; author cworth; state Exp; branches; next 1.1208; commitid 445e43c30b514567; 1.1208 date 2006.01.06.22.24.55; author cworth; state Exp; branches; next 1.1207; commitid 587d43beee324567; 1.1207 date 2006.01.06.22.11.07; author cworth; state Exp; branches; next 1.1206; commitid 50f243beeaf34567; 1.1206 date 2006.01.05.23.17.02; author cworth; state Exp; branches; next 1.1205; commitid 5f9f43bda8eb4567; 1.1205 date 2006.01.05.23.00.37; author davidr; state Exp; branches; next 1.1204; commitid 52b343bda5044567; 1.1204 date 2006.01.05.13.14.14; author davidr; state Exp; branches; next 1.1203; commitid 7d8743bd1ba44567; 1.1203 date 2006.01.05.13.06.50; author davidr; state Exp; branches; next 1.1202; commitid 768c43bd19e74567; 1.1202 date 2006.01.05.01.59.03; author cworth; state Exp; branches; next 1.1201; commitid 72e743bc7d594567; 1.1201 date 2006.01.03.17.23.48; author vladimir; state Exp; branches; next 1.1200; commitid 3faf43bab3124567; 1.1200 date 2006.01.03.15.29.57; author vladimir; state Exp; branches; next 1.1199; commitid 21043ba986b4567; 1.1199 date 2005.12.30.22.16.10; author emmanuel; state Exp; branches; next 1.1198; commitid 5a4543b5b19b4567; 1.1198 date 2005.12.28.10.28.56; author emmanuel; state Exp; branches; next 1.1197; commitid 723943b268d74567; 1.1197 date 2005.12.27.17.47.58; author biesi; state Exp; branches; next 1.1196; commitid 66d843b17e384567; 1.1196 date 2005.12.27.03.08.53; author biesi; state Exp; branches; next 1.1195; commitid 776a43b0b0364567; 1.1195 date 2005.12.27.00.44.41; author biesi; state Exp; branches; next 1.1194; commitid 1f3d43b08e6c4567; 1.1194 date 2005.12.22.01.08.28; author cworth; state Exp; branches; next 1.1193; commitid 63e343a9fc894567; 1.1193 date 2005.12.22.01.04.01; author cworth; state Exp; branches; next 1.1192; commitid 612943a9fb7e4567; 1.1192 date 2005.12.22.00.46.44; author cworth; state Exp; branches; next 1.1191; commitid 593443a9f7724567; 1.1191 date 2005.12.22.00.35.32; author cworth; state Exp; branches; next 1.1190; commitid 53c043a9f4d14567; 1.1190 date 2005.12.21.20.20.06; author cworth; state Exp; branches; next 1.1189; commitid 3e9d43a9b8f34567; 1.1189 date 2005.12.21.20.08.57; author cworth; state Exp; branches; next 1.1188; commitid 387843a9b6564567; 1.1188 date 2005.12.21.20.07.25; author cworth; state Exp; branches; next 1.1187; commitid 37b043a9b5fa4567; 1.1187 date 2005.12.21.16.19.47; author biesi; state Exp; branches; next 1.1186; commitid 41cd43a980804567; 1.1186 date 2005.12.21.15.25.01; author emmanuel; state Exp; branches; next 1.1185; commitid 236843a973c34567; 1.1185 date 2005.12.20.18.30.11; author cworth; state Exp; branches; next 1.1184; commitid 49a43a84db04567; 1.1184 date 2005.12.20.17.37.15; author cworth; state Exp; branches; next 1.1183; commitid 5bec43a841484567; 1.1183 date 2005.12.20.06.45.41; author cworth; state Exp; branches; next 1.1182; commitid 42f443a7a8904567; 1.1182 date 2005.12.20.06.01.39; author cworth; state Exp; branches; next 1.1181; commitid 2d9e43a79e3f4567; 1.1181 date 2005.12.20.01.16.28; author biesi; state Exp; branches; next 1.1180; commitid 400743a75b634567; 1.1180 date 2005.12.19.23.33.32; author emmanuel; state Exp; branches; next 1.1179; commitid 148243a743344567; 1.1179 date 2005.12.19.23.08.05; author keithp; state Exp; branches; next 1.1178; commitid 46b43a73a524567; 1.1178 date 2005.12.19.21.59.34; author emmanuel; state Exp; branches; next 1.1177; commitid 6a4c43a72d304567; 1.1177 date 2005.12.19.19.01.42; author biesi; state Exp; branches; next 1.1176; commitid c4143a703864567; 1.1176 date 2005.12.19.18.17.22; author biesi; state Exp; branches; next 1.1175; commitid 6e5443a6f9234567; 1.1175 date 2005.12.19.01.20.06; author biesi; state Exp; branches; next 1.1174; commitid 6e6f43a60a8a4567; 1.1174 date 2005.12.19.00.37.14; author biesi; state Exp; branches; next 1.1173; commitid 5e8943a6009f4567; 1.1173 date 2005.12.17.00.23.04; author biesi; state Exp; branches; next 1.1172; commitid 3ab743a35a354567; 1.1172 date 2005.12.16.19.48.48; author cworth; state Exp; branches; next 1.1171; commitid faa43a31a1e4567; 1.1171 date 2005.12.16.19.31.10; author cworth; state Exp; branches; next 1.1170; commitid 24f43a315fb4567; 1.1170 date 2005.12.16.19.21.24; author cworth; state Exp; branches; next 1.1169; commitid 7bd743a313b14567; 1.1169 date 2005.12.16.11.02.35; author biesi; state Exp; branches; next 1.1168; commitid 605343a29e244567; 1.1168 date 2005.12.15.16.58.08; author cworth; state Exp; branches; next 1.1167; commitid 5e0043a1a09c4567; 1.1167 date 2005.12.15.03.56.09; author pavlov; state Exp; branches; next 1.1166; commitid 70bc43a0e9514567; 1.1166 date 2005.12.15.00.45.39; author cworth; state Exp; branches; next 1.1165; commitid 329c43a0bcb14567; 1.1165 date 2005.12.15.00.22.06; author cworth; state Exp; branches; next 1.1164; commitid 84343a0b72b4567; 1.1164 date 2005.12.14.00.31.14; author cworth; state Exp; branches; next 1.1163; commitid 243439f67d04567; 1.1163 date 2005.12.12.19.56.40; author vladimir; state Exp; branches; next 1.1162; commitid 4071439dd5d64567; 1.1162 date 2005.12.08.21.22.09; author emmanuel; state Exp; branches; next 1.1161; commitid 74d14398a3f34567; 1.1161 date 2005.12.08.21.09.26; author emmanuel; state Exp; branches; next 1.1160; commitid 6b634398a0e54567; 1.1160 date 2005.12.08.00.16.20; author cworth; state Exp; branches; next 1.1159; commitid 583543977b514567; 1.1159 date 2005.12.08.00.06.11; author cworth; state Exp; branches; next 1.1158; commitid 5256439778f04567; 1.1158 date 2005.12.07.20.19.10; author cworth; state Exp; branches; next 1.1157; commitid 3ea9439743ba4567; 1.1157 date 2005.12.07.19.53.30; author cworth; state Exp; branches; next 1.1156; commitid 2c3c43973db74567; 1.1156 date 2005.12.07.19.44.28; author cworth; state Exp; branches; next 1.1155; commitid 26b243973b994567; 1.1155 date 2005.12.05.16.33.04; author davidr; state Exp; branches; next 1.1154; commitid 217043946bbd4567; 1.1154 date 2005.12.04.15.47.44; author davidr; state Exp; branches; next 1.1153; commitid 1c1c43930f9d4567; 1.1153 date 2005.11.29.23.48.34; author davidr; state Exp; branches; next 1.1152; commitid 55f8438ce8cf4567; 1.1152 date 2005.11.21.19.46.40; author cworth; state Exp; branches; next 1.1151; commitid 57aa4382241d4567; 1.1151 date 2005.11.21.18.50.20; author cworth; state Exp; branches; next 1.1150; commitid 35b5438216e94567; 1.1150 date 2005.11.18.17.15.43; author cworth; state Exp; branches; next 1.1149; commitid 1714437e0c3c4567; 1.1149 date 2005.11.17.19.55.20; author pavlov; state Exp; branches; next 1.1148; commitid 5194437ce01a4567; 1.1148 date 2005.11.14.20.57.31; author andersca; state Exp; branches; next 1.1147; commitid 4ba4378fa2a4567; 1.1147 date 2005.11.11.00.25.18; author cworth; state Exp; branches; next 1.1146; commitid 436b4373e4ec4567; 1.1146 date 2005.11.09.01.43.13; author cworth; state Exp; branches; next 1.1145; commitid 10534371542e4567; 1.1145 date 2005.11.09.01.16.21; author cworth; state Exp; branches; next 1.1144; commitid 26143714de14567; 1.1144 date 2005.11.08.19.44.18; author cworth; state Exp; branches; next 1.1143; commitid 125a437100104567; 1.1143 date 2005.11.08.19.39.21; author cworth; state Exp; branches; next 1.1142; commitid f034370fee64567; 1.1142 date 2005.11.07.21.23.31; author cworth; state Exp; branches; next 1.1141; commitid 641b436fc5d04567; 1.1141 date 2005.11.07.18.50.39; author cworth; state Exp; branches; next 1.1140; commitid 1887436fa1fc4567; 1.1140 date 2005.11.07.18.48.01; author cworth; state Exp; branches; next 1.1139; commitid 178e436fa15e4567; 1.1139 date 2005.11.07.18.46.23; author cworth; state Exp; branches; next 1.1138; commitid 167d436fa0fc4567; 1.1138 date 2005.11.07.18.29.37; author cworth; state Exp; branches; next 1.1137; commitid fb8436f9d0e4567; 1.1137 date 2005.11.07.18.26.18; author cworth; state Exp; branches; next 1.1136; commitid de5436f9c484567; 1.1136 date 2005.11.07.18.17.37; author cworth; state Exp; branches; next 1.1135; commitid 9d0436f9a3e4567; 1.1135 date 2005.11.07.18.02.06; author cworth; state Exp; branches; next 1.1134; commitid 1bd436f969b4567; 1.1134 date 2005.11.07.17.49.51; author cworth; state Exp; branches; next 1.1133; commitid 7b73436f93bd4567; 1.1133 date 2005.11.07.17.33.38; author cworth; state Exp; branches; next 1.1132; commitid 7375436f8fef4567; 1.1132 date 2005.11.07.17.30.38; author cworth; state Exp; branches; next 1.1131; commitid 7277436f8f3a4567; 1.1131 date 2005.11.07.17.26.47; author cworth; state Exp; branches; next 1.1130; commitid 70be436f8e554567; 1.1130 date 2005.11.06.06.43.06; author cworth; state Exp; branches; next 1.1129; commitid 4679436da5f74567; 1.1129 date 2005.11.05.00.13.30; author cworth; state Exp; branches; next 1.1128; commitid 9b1436bf9254567; 1.1128 date 2005.11.04.23.15.30; author cworth; state Exp; branches; next 1.1127; commitid 7282436beb8e4567; 1.1127 date 2005.11.04.19.16.38; author cworth; state Exp; branches; next 1.1126; commitid 29c436bb3914567; 1.1126 date 2005.11.02.00.40.37; author cworth; state Exp; branches; next 1.1125; commitid 230343680aff4567; 1.1125 date 2005.11.01.18.33.34; author keithp; state Exp; branches; next 1.1124; commitid 16734367b4ef4567; 1.1124 date 2005.11.01.00.55.21; author cworth; state Exp; branches; next 1.1123; commitid 12054366bcf94567; 1.1123 date 2005.10.31.19.10.13; author tor; state Exp; branches; next 1.1122; commitid 125643666c0a4567; 1.1122 date 2005.10.29.04.00.42; author keithp; state Exp; branches; next 1.1121; commitid 708b4362f3df4567; 1.1121 date 2005.10.29.03.49.59; author keithp; state Exp; branches; next 1.1120; commitid 6deb4362f15d4567; 1.1120 date 2005.10.29.03.41.22; author keithp; state Exp; branches; next 1.1119; commitid 6ca04362ef594567; 1.1119 date 2005.10.28.00.16.46; author cworth; state Exp; branches; next 1.1118; commitid 7d2843616de94567; 1.1118 date 2005.10.27.22.06.53; author cworth; state Exp; branches; next 1.1117; commitid 5d4043614f774567; 1.1117 date 2005.10.25.23.02.08; author cworth; state Exp; branches; next 1.1116; commitid 2612435eb96c4567; 1.1116 date 2005.10.25.22.57.28; author cworth; state Exp; branches; next 1.1115; commitid 2507435eb8544567; 1.1115 date 2005.10.25.22.55.57; author cworth; state Exp; branches; next 1.1114; commitid 24cf435eb7f94567; 1.1114 date 2005.10.18.23.09.21; author cworth; state Exp; branches; next 1.1113; commitid 23ba4355809e4567; 1.1113 date 2005.10.18.22.58.32; author cworth; state Exp; branches; next 1.1112; commitid 217843557e154567; 1.1112 date 2005.10.18.19.41.01; author cworth; state Exp; branches; next 1.1111; commitid 34b643554fca4567; 1.1111 date 2005.10.18.19.04.41; author cworth; state Exp; branches; next 1.1110; commitid 16c2435547444567; 1.1110 date 2005.10.14.04.04.28; author cworth; state Exp; branches; next 1.1109; commitid 293d434f2e484567; 1.1109 date 2005.10.14.04.00.52; author cworth; state Exp; branches; next 1.1108; commitid 2666434f2d704567; 1.1108 date 2005.10.14.03.15.29; author cworth; state Exp; branches; next 1.1107; commitid 4c2434f22cf4567; 1.1107 date 2005.10.13.23.55.14; author cworth; state Exp; branches; next 1.1106; commitid 601e434ef3dd4567; 1.1106 date 2005.10.13.14.33.07; author cworth; state Exp; branches; next 1.1105; commitid 3658434e70224567; 1.1105 date 2005.10.13.14.30.15; author cworth; state Exp; branches; next 1.1104; commitid 348a434e6f764567; 1.1104 date 2005.10.12.22.05.09; author tor; state Exp; branches; next 1.1103; commitid 951434d88874567; 1.1103 date 2005.10.12.21.23.11; author cworth; state Exp; branches; next 1.1102; commitid 66df434d7ebe4567; 1.1102 date 2005.10.12.20.37.00; author cworth; state Exp; branches; next 1.1101; commitid 2ee1434d73eb4567; 1.1101 date 2005.10.12.20.33.38; author cworth; state Exp; branches; next 1.1100; commitid 2905434d73214567; 1.1100 date 2005.10.11.20.20.44; author krh; state Exp; branches; next 1.1099; commitid 5504434c1e914567; 1.1099 date 2005.10.10.19.45.15; author vektor; state Exp; branches; next 1.1098; commitid 46c2434ac4b44567; 1.1098 date 2005.10.10.16.36.39; author krh; state Exp; branches; next 1.1097; commitid 2d5e434a98914567; 1.1097 date 2005.10.10.16.16.21; author vektor; state Exp; branches; next 1.1096; commitid 1cae434a93c44567; 1.1096 date 2005.10.10.03.40.12; author keithp; state Exp; branches; next 1.1095; commitid 41254349e2984567; 1.1095 date 2005.10.10.03.31.44; author keithp; state Exp; branches; next 1.1094; commitid 3d664349e0994567; 1.1094 date 2005.10.09.21.51.55; author vektor; state Exp; branches; next 1.1093; commitid 62a5434990ee4567; 1.1093 date 2005.10.09.21.28.15; author keithp; state Exp; branches; next 1.1092; commitid 53f543498b6b4567; 1.1092 date 2005.10.09.20.33.21; author cworth; state Exp; branches; next 1.1091; commitid 2d5843497e904567; 1.1091 date 2005.10.09.16.18.16; author vektor; state Exp; branches; next 1.1090; commitid 7fb6434942b04567; 1.1090 date 2005.10.09.05.44.56; author cworth; state Exp; branches; next 1.1089; commitid 6cd24348ae504567; 1.1089 date 2005.10.08.20.04.18; author cworth; state Exp; branches; next 1.1088; commitid 4803434826414567; 1.1088 date 2005.10.08.18.58.20; author cworth; state Exp; branches; next 1.1087; commitid 2ad2434816cb4567; 1.1087 date 2005.10.08.18.57.45; author cworth; state Exp; branches; next 1.1086; commitid 2a9b434816a84567; 1.1086 date 2005.10.08.17.50.08; author cworth; state Exp; branches; next 1.1085; commitid 7c57434806ce4567; 1.1085 date 2005.10.07.20.21.01; author krh; state Exp; branches; next 1.1084; commitid 45db4346d8a54567; 1.1084 date 2005.10.06.19.50.08; author cworth; state Exp; branches; next 1.1083; commitid 1bad43457fed4567; 1.1083 date 2005.10.06.18.32.54; author cworth; state Exp; branches; next 1.1082; commitid 692c43456dd34567; 1.1082 date 2005.10.04.20.48.25; author andersca; state Exp; branches; next 1.1081; commitid 37b84342ea8d4567; 1.1081 date 2005.10.04.00.49.25; author cworth; state Exp; branches; next 1.1080; commitid 73014341d1924567; 1.1080 date 2005.09.30.15.31.36; author andersca; state Exp; branches; next 1.1079; commitid 6160433d5a474567; 1.1079 date 2005.09.30.03.00.14; author inte; state Exp; branches; next 1.1078; commitid 7faa433caa224567; 1.1078 date 2005.09.30.00.34.31; author inte; state Exp; branches; next 1.1077; commitid 4b18433c87fc4567; 1.1077 date 2005.09.30.00.26.20; author inte; state Exp; branches; next 1.1076; commitid 483c433c86064567; 1.1076 date 2005.09.29.21.31.08; author keithp; state Exp; branches; next 1.1075; commitid 7bf1433c5d074567; 1.1075 date 2005.09.29.17.09.59; author cworth; state Exp; branches; next 1.1074; commitid 65c7433c1fe24567; 1.1074 date 2005.09.29.13.49.47; author cworth; state Exp; branches; next 1.1073; commitid 5718433bf0f84567; 1.1073 date 2005.09.28.17.35.55; author tor; state Exp; branches; next 1.1072; commitid 52a3433ad46e4567; 1.1072 date 2005.09.28.17.25.23; author tor; state Exp; branches; next 1.1071; commitid 4cce433ad1f84567; 1.1071 date 2005.09.27.22.07.15; author cworth; state Exp; branches; next 1.1070; commitid 575b4339c2904567; 1.1070 date 2005.09.27.20.22.46; author tor; state Exp; branches; next 1.1069; commitid e804339aa0b4567; 1.1069 date 2005.09.27.19.44.32; author cworth; state Exp; branches; next 1.1068; commitid 76094339a11d4567; 1.1068 date 2005.09.27.18.35.18; author cworth; state Exp; branches; next 1.1067; commitid 40f2433990e54567; 1.1067 date 2005.09.27.00.21.47; author cworth; state Exp; branches; next 1.1066; commitid 369d433890984567; 1.1066 date 2005.09.26.14.48.10; author tml; state Exp; branches; next 1.1065; commitid 5d4143380a084567; 1.1065 date 2005.09.20.00.30.27; author cworth; state Exp; branches; next 1.1064; commitid 2cee432f58204567; 1.1064 date 2005.09.20.00.24.52; author cworth; state Exp; branches; next 1.1063; commitid 2a33432f56d14567; 1.1063 date 2005.09.19.21.24.00; author cworth; state Exp; branches; next 1.1062; commitid 4db7432f2c6c4567; 1.1062 date 2005.09.19.21.14.03; author cworth; state Exp; branches; next 1.1061; commitid 480a432f2a184567; 1.1061 date 2005.09.19.18.56.27; author cworth; state Exp; branches; next 1.1060; commitid 75da432f09d84567; 1.1060 date 2005.09.19.02.53.23; author vektor; state Exp; branches; next 1.1059; commitid 61b432e28134567; 1.1059 date 2005.09.19.02.37.44; author vektor; state Exp; branches; next 1.1058; commitid 7cea432e24674567; 1.1058 date 2005.09.16.17.49.48; author cworth; state Exp; branches; next 1.1057; commitid 7b9b432b05ba4567; 1.1057 date 2005.09.16.17.27.32; author cworth; state Exp; branches; next 1.1056; commitid 70cf432b00824567; 1.1056 date 2005.09.16.17.24.54; author cworth; state Exp; branches; next 1.1055; commitid 6ea6432affe34567; 1.1055 date 2005.09.16.17.11.52; author cworth; state Exp; branches; next 1.1054; commitid 6874432afcd64567; 1.1054 date 2005.09.14.16.25.07; author davidr; state Exp; branches; next 1.1053; commitid 297543284edc4567; 1.1053 date 2005.09.14.16.07.00; author davidr; state Exp; branches; next 1.1052; commitid 201943284aa04567; 1.1052 date 2005.09.13.22.53.19; author cworth; state Exp; branches; next 1.1051; commitid 419b4327585d4567; 1.1051 date 2005.09.13.22.47.59; author cworth; state Exp; branches; next 1.1050; commitid 3eba4327571c4567; 1.1050 date 2005.09.13.19.40.36; author cworth; state Exp; branches; next 1.1049; commitid 356e43272b314567; 1.1049 date 2005.09.13.19.37.45; author cworth; state Exp; branches; next 1.1048; commitid 328143272a874567; 1.1048 date 2005.09.13.19.26.29; author cworth; state Exp; branches; next 1.1047; commitid 27e3432727e34567; 1.1047 date 2005.09.13.19.11.32; author cworth; state Exp; branches; next 1.1046; commitid 19a4432724614567; 1.1046 date 2005.09.12.18.15.52; author cworth; state Exp; branches; next 1.1045; commitid 5324325c5d54567; 1.1045 date 2005.09.12.18.11.33; author cworth; state Exp; branches; next 1.1044; commitid 7f554325c4d24567; 1.1044 date 2005.09.10.00.10.52; author cworth; state Exp; branches; next 1.1043; commitid 5cf5432224894567; 1.1043 date 2005.09.08.23.18.00; author cworth; state Exp; branches; next 1.1042; commitid 2cd44320c6a54567; 1.1042 date 2005.09.07.23.57.59; author cworth; state Exp; branches; next 1.1041; commitid 4045431f7e844567; 1.1041 date 2005.09.07.23.31.22; author cworth; state Exp; branches; next 1.1040; commitid 3585431f78474567; 1.1040 date 2005.09.07.16.07.13; author tor; state Exp; branches; next 1.1039; commitid 3280431f10284567; 1.1039 date 2005.09.07.15.38.43; author tor; state Exp; branches; next 1.1038; commitid 196f431f09754567; 1.1038 date 2005.09.06.22.19.00; author cworth; state Exp; branches; next 1.1037; commitid 777c431e15d14567; 1.1037 date 2005.09.02.23.17.48; author cworth; state Exp; branches; next 1.1036; commitid 31b24318dd994567; 1.1036 date 2005.09.02.20.42.34; author cworth; state Exp; branches; next 1.1035; commitid 75064318b9374567; 1.1035 date 2005.09.02.18.22.40; author cworth; state Exp; branches; next 1.1034; commitid 354c4318986d4567; 1.1034 date 2005.09.02.03.38.07; author keithp; state Exp; branches; next 1.1033; commitid 56d74317c8ef4567; 1.1033 date 2005.09.01.13.13.46; author inte; state Exp; branches; next 1.1032; commitid 53504316fe714567; 1.1032 date 2005.09.01.09.14.31; author cworth; state Exp; branches; next 1.1031; commitid 3dce4316c6744567; 1.1031 date 2005.09.01.02.11.22; author otaylor; state Exp; branches; next 1.1030; commitid 7f2431663494567; 1.1030 date 2005.08.31.23.17.28; author cworth; state Exp; branches; next 1.1029; commitid 3c0543163a854567; 1.1029 date 2005.08.31.22.09.35; author otaylor; state Exp; branches; next 1.1028; commitid 1bc643162a9b4567; 1.1028 date 2005.08.31.22.08.02; author keithp; state Exp; branches; next 1.1027; commitid 1aa843162a334567; 1.1027 date 2005.08.31.21.43.31; author cworth; state Exp; branches; next 1.1026; commitid f3a431624804567; 1.1026 date 2005.08.31.20.52.19; author cworth; state Exp; branches 1.1026.2.1; next 1.1025; commitid 71ff431618804567; 1.1025 date 2005.08.31.20.33.42; author cworth; state Exp; branches; next 1.1024; commitid 668a431614234567; 1.1024 date 2005.08.31.16.00.01; author cworth; state Exp; branches; next 1.1023; commitid 442d4315d3fe4567; 1.1023 date 2005.08.30.17.50.27; author otaylor; state Exp; branches; next 1.1022; commitid 6ab943149c5e4567; 1.1022 date 2005.08.30.17.42.17; author otaylor; state Exp; branches; next 1.1021; commitid 661943149a734567; 1.1021 date 2005.08.28.01.54.03; author otaylor; state Exp; branches; next 1.1020; commitid 4d70431119364567; 1.1020 date 2005.08.28.01.49.06; author otaylor; state Exp; branches; next 1.1019; commitid 4c074311180c4567; 1.1019 date 2005.08.28.01.46.34; author otaylor; state Exp; branches; next 1.1018; commitid 4b57431117754567; 1.1018 date 2005.08.28.01.40.46; author otaylor; state Exp; branches; next 1.1017; commitid 498b431116184567; 1.1017 date 2005.08.25.09.59.40; author tml; state Exp; branches; next 1.1016; commitid 2520430d967d4567; 1.1016 date 2005.08.25.02.20.08; author vektor; state Exp; branches; next 1.1015; commitid 4804430d2ab94567; 1.1015 date 2005.08.25.00.44.16; author inte; state Exp; branches; next 1.1014; commitid 7af9430d14214567; 1.1014 date 2005.08.24.17.16.14; author cworth; state Exp; branches; next 1.1013; commitid 3f9a430cab5b4567; 1.1013 date 2005.08.24.16.29.39; author cworth; state Exp; branches; next 1.1012; commitid d71430ca0714567; 1.1012 date 2005.08.24.16.26.28; author cworth; state Exp; branches; next 1.1011; commitid 99f430c9fb14567; 1.1011 date 2005.08.24.16.12.37; author cworth; state Exp; branches; next 1.1010; commitid 7816430c9c734567; 1.1010 date 2005.08.24.15.46.02; author cworth; state Exp; branches; next 1.1009; commitid 5b57430c96374567; 1.1009 date 2005.08.24.15.28.00; author cworth; state Exp; branches; next 1.1008; commitid 4ac9430c91fd4567; 1.1008 date 2005.08.24.15.12.22; author cworth; state Exp; branches; next 1.1007; commitid 3ecd430c8e544567; 1.1007 date 2005.08.24.15.07.24; author cworth; state Exp; branches; next 1.1006; commitid 3aae430c8d294567; 1.1006 date 2005.08.24.14.58.07; author cworth; state Exp; branches; next 1.1005; commitid 3452430c8afc4567; 1.1005 date 2005.08.24.14.56.45; author tml; state Exp; branches; next 1.1004; commitid 3331430c8aa24567; 1.1004 date 2005.08.24.14.16.01; author cworth; state Exp; branches; next 1.1003; commitid 1659430c811e4567; 1.1003 date 2005.08.24.13.50.51; author cworth; state Exp; branches; next 1.1002; commitid 7a4e430c7b394567; 1.1002 date 2005.08.24.13.48.02; author cworth; state Exp; branches; next 1.1001; commitid 774a430c7a904567; 1.1001 date 2005.08.24.13.17.39; author cworth; state Exp; branches; next 1.1000; commitid 4f86430c73704567; 1.1000 date 2005.08.24.13.09.11; author vektor; state Exp; branches; next 1.999; commitid 4724430c71694567; 1.999 date 2005.08.24.13.07.58; author cworth; state Exp; branches; next 1.998; commitid 45ed430c712c4567; 1.998 date 2005.08.24.12.43.48; author cworth; state Exp; branches; next 1.997; commitid 31f0430c6b824567; 1.997 date 2005.08.24.12.36.05; author cworth; state Exp; branches; next 1.996; commitid 2e29430c69b34567; 1.996 date 2005.08.24.12.28.28; author cworth; state Exp; branches; next 1.995; commitid 2ba7430c67e94567; 1.995 date 2005.08.24.12.25.51; author cworth; state Exp; branches; next 1.994; commitid 2a87430c674c4567; 1.994 date 2005.08.24.12.21.50; author cworth; state Exp; branches; next 1.993; commitid 2911430c665b4567; 1.993 date 2005.08.24.09.25.39; author cworth; state Exp; branches; next 1.992; commitid 2f6e430c3d104567; 1.992 date 2005.08.24.08.47.13; author keithp; state Exp; branches; next 1.991; commitid 1af5430c340a4567; 1.991 date 2005.08.24.08.42.19; author keithp; state Exp; branches; next 1.990; commitid 1867430c32e44567; 1.990 date 2005.08.24.08.39.56; author keithp; state Exp; branches; next 1.989; commitid 171d430c32544567; 1.989 date 2005.08.24.08.13.36; author cworth; state Exp; branches; next 1.988; commitid a2d430c2c2d4567; 1.988 date 2005.08.24.07.19.52; author cworth; state Exp; branches; next 1.987; commitid 59f2430c1f954567; 1.987 date 2005.08.24.06.20.53; author cworth; state Exp; branches; next 1.986; commitid 367d430c11c24567; 1.986 date 2005.08.24.06.13.35; author cworth; state Exp; branches; next 1.985; commitid 32bd430c100c4567; 1.985 date 2005.08.24.05.48.13; author cworth; state Exp; branches; next 1.984; commitid 27ee430c0a1a4567; 1.984 date 2005.08.24.04.36.08; author vektor; state Exp; branches; next 1.983; commitid 9a1430bf9254567; 1.983 date 2005.08.24.04.10.39; author vektor; state Exp; branches; next 1.982; commitid 77fd430bf2ef4567; 1.982 date 2005.08.24.03.08.21; author krh; state Exp; branches; next 1.981; commitid 57a1430be4994567; 1.981 date 2005.08.24.02.54.11; author vektor; state Exp; branches; next 1.980; commitid 5376430be1444567; 1.980 date 2005.08.24.02.52.09; author vektor; state Exp; branches; next 1.979; commitid 52bd430be0b64567; 1.979 date 2005.08.24.02.34.20; author cworth; state Exp; branches; next 1.978; commitid 4ade430bdcaa4567; 1.978 date 2005.08.24.02.31.10; author cworth; state Exp; branches; next 1.977; commitid 48d0430bdbeb4567; 1.977 date 2005.08.24.00.36.20; author cworth; state Exp; branches; next 1.976; commitid 74f3430bc1014567; 1.976 date 2005.08.23.23.31.59; author vektor; state Exp; branches; next 1.975; commitid 6198430bb1e34567; 1.975 date 2005.08.23.22.16.37; author otaylor; state Exp; branches; next 1.974; commitid 37a0430ba0404567; 1.974 date 2005.08.23.22.11.44; author otaylor; state Exp; branches; next 1.973; commitid 32de430b9f1c4567; 1.973 date 2005.08.23.21.53.08; author otaylor; state Exp; branches; next 1.972; commitid 2746430b9abd4567; 1.972 date 2005.08.23.21.51.51; author cworth; state Exp; branches; next 1.971; commitid 26c3430b9a744567; 1.971 date 2005.08.23.21.37.09; author cworth; state Exp; branches; next 1.970; commitid 1e1a430b97034567; 1.970 date 2005.08.23.21.30.52; author otaylor; state Exp; branches; next 1.969; commitid 179a430b95884567; 1.969 date 2005.08.23.21.12.01; author otaylor; state Exp; branches; next 1.968; commitid 32e430b911d4567; 1.968 date 2005.08.23.21.04.28; author cworth; state Exp; branches; next 1.967; commitid 7a11430b8f594567; 1.967 date 2005.08.23.20.57.00; author cworth; state Exp; branches; next 1.966; commitid 717f430b8d984567; 1.966 date 2005.08.23.20.34.14; author otaylor; state Exp; branches; next 1.965; commitid 64cd430b883e4567; 1.965 date 2005.08.23.19.48.17; author cworth; state Exp; branches; next 1.964; commitid 4c07430b7d7e4567; 1.964 date 2005.08.23.17.39.27; author cworth; state Exp; branches; next 1.963; commitid 222430b5f4c4567; 1.963 date 2005.08.23.17.11.16; author cworth; state Exp; branches; next 1.962; commitid 6e37430b58af4567; 1.962 date 2005.08.23.16.10.45; author cworth; state Exp; branches; next 1.961; commitid 499c430b4a834567; 1.961 date 2005.08.23.15.21.46; author cworth; state Exp; branches; next 1.960; commitid 2b13430b3f084567; 1.960 date 2005.08.23.14.51.56; author cworth; state Exp; branches; next 1.959; commitid 1540430b38094567; 1.959 date 2005.08.23.14.44.14; author cworth; state Exp; branches; next 1.958; commitid a3f430b363b4567; 1.958 date 2005.08.23.12.54.38; author vektor; state Exp; branches; next 1.957; commitid 320e430b1c7f4567; 1.957 date 2005.08.23.12.18.48; author otaylor; state Exp; branches; next 1.956; commitid 1c4b430b14224567; 1.956 date 2005.08.23.08.55.29; author cworth; state Exp; branches; next 1.955; commitid 1b06430ae47e4567; 1.955 date 2005.08.23.08.50.25; author cworth; state Exp; branches; next 1.954; commitid 1869430ae34e4567; 1.954 date 2005.08.23.08.02.16; author cworth; state Exp; branches; next 1.953; commitid 692b430ad8044567; 1.953 date 2005.08.23.07.03.09; author cworth; state Exp; branches; next 1.952; commitid 3853430aca2a4567; 1.952 date 2005.08.23.07.00.42; author cworth; state Exp; branches; next 1.951; commitid 364b430ac9974567; 1.951 date 2005.08.23.05.23.54; author vektor; state Exp; branches; next 1.950; commitid 6cd8430ab2d94567; 1.950 date 2005.08.23.05.11.44; author vektor; state Exp; branches; next 1.949; commitid 644a430aaff84567; 1.949 date 2005.08.23.03.43.23; author otaylor; state Exp; branches; next 1.948; commitid 3256430a9b544567; 1.948 date 2005.08.23.00.20.29; author cworth; state Exp; branches; next 1.947; commitid 5103430a6bca4567; 1.947 date 2005.08.22.23.56.43; author cworth; state Exp; branches; next 1.946; commitid 3cd1430a66394567; 1.946 date 2005.08.22.23.52.40; author inte; state Exp; branches; next 1.945; commitid 38ff430a65394567; 1.945 date 2005.08.22.23.50.30; author inte; state Exp; branches; next 1.944; commitid 3738430a64b44567; 1.944 date 2005.08.22.23.48.28; author inte; state Exp; branches; next 1.943; commitid 34ab430a64274567; 1.943 date 2005.08.22.23.29.56; author inte; state Exp; branches; next 1.942; commitid 293d430a5fcf4567; 1.942 date 2005.08.22.22.49.04; author tml; state Exp; branches; next 1.941; commitid e68430a563a4567; 1.941 date 2005.08.22.22.19.03; author otaylor; state Exp; branches; next 1.940; commitid 7c27430a4f534567; 1.940 date 2005.08.22.20.59.52; author cworth; state Exp; branches; next 1.939; commitid 38b7430a3cc64567; 1.939 date 2005.08.22.15.45.46; author otaylor; state Exp; branches; next 1.938; commitid 60154309f3254567; 1.938 date 2005.08.22.15.33.54; author otaylor; state Exp; branches; next 1.937; commitid 5a6a4309f05d4567; 1.937 date 2005.08.22.04.04.52; author vektor; state Exp; branches; next 1.936; commitid 207543094ed54567; 1.936 date 2005.08.21.21.10.39; author vektor; state Exp; branches; next 1.935; commitid 5ff24308edb74567; 1.935 date 2005.08.21.19.13.17; author otaylor; state Exp; branches; next 1.934; commitid 28214308d2484567; 1.934 date 2005.08.21.18.41.44; author vektor; state Exp; branches; next 1.933; commitid 16ef4308ca924567; 1.933 date 2005.08.21.18.23.58; author otaylor; state Exp; branches; next 1.932; commitid c424308c6ba4567; 1.932 date 2005.08.21.16.57.19; author otaylor; state Exp; branches; next 1.931; commitid 5efd4308b2674567; 1.931 date 2005.08.21.16.27.52; author otaylor; state Exp; branches; next 1.930; commitid 50914308ab844567; 1.930 date 2005.08.21.15.53.56; author otaylor; state Exp; branches; next 1.929; commitid 3d8e4308a38f4567; 1.929 date 2005.08.21.15.24.41; author otaylor; state Exp; branches; next 1.928; commitid 2d5743089cb04567; 1.928 date 2005.08.21.15.11.24; author otaylor; state Exp; branches; next 1.927; commitid 23cd430899984567; 1.927 date 2005.08.21.15.06.06; author otaylor; state Exp; branches; next 1.926; commitid 1fcb4308985a4567; 1.926 date 2005.08.20.14.56.05; author cworth; state Exp; branches; next 1.925; commitid 2b1f430744834567; 1.925 date 2005.08.20.12.23.52; author otaylor; state Exp; branches; next 1.924; commitid 3868430720d34567; 1.924 date 2005.08.20.06.05.13; author vektor; state Exp; branches; next 1.923; commitid 1e6a4306c8054567; 1.923 date 2005.08.19.23.37.56; author cworth; state Exp; branches; next 1.922; commitid 31b143066d524567; 1.922 date 2005.08.19.21.42.57; author vektor; state Exp; branches; next 1.921; commitid 7c5430652524567; 1.921 date 2005.08.19.21.37.42; author cworth; state Exp; branches; next 1.920; commitid 52f430651244567; 1.920 date 2005.08.19.21.05.14; author otaylor; state Exp; branches; next 1.919; commitid 7509430649864567; 1.919 date 2005.08.19.20.00.23; author cworth; state Exp; branches; next 1.918; commitid 55e443063a544567; 1.918 date 2005.08.19.19.55.00; author otaylor; state Exp; branches; next 1.917; commitid 5330430639104567; 1.917 date 2005.08.19.19.08.42; author cworth; state Exp; branches; next 1.916; commitid 3ea343062e364567; 1.916 date 2005.08.19.19.02.14; author cworth; state Exp; branches; next 1.915; commitid 3bf743062cb34567; 1.915 date 2005.08.19.17.36.43; author krh; state Exp; branches; next 1.914; commitid e5b430618a74567; 1.914 date 2005.08.19.14.39.47; author cworth; state Exp; branches; next 1.913; commitid 1e974305ef314567; 1.913 date 2005.08.19.06.10.37; author cworth; state Exp; branches; next 1.912; commitid 50cc430577d94567; 1.912 date 2005.08.19.05.43.39; author cworth; state Exp; branches; next 1.911; commitid 46c4430571894567; 1.911 date 2005.08.19.05.31.04; author cworth; state Exp; branches; next 1.910; commitid 42cd43056e954567; 1.910 date 2005.08.19.00.22.23; author otaylor; state Exp; branches; next 1.909; commitid 4e5d430526394567; 1.909 date 2005.08.19.00.19.54; author otaylor; state Exp; branches; next 1.908; commitid 4ce4430525a34567; 1.908 date 2005.08.19.00.11.42; author cworth; state Exp; branches; next 1.907; commitid 4838430523bc4567; 1.907 date 2005.08.18.23.22.23; author otaylor; state Exp; branches; next 1.906; commitid 3679430518294567; 1.906 date 2005.08.18.22.50.36; author otaylor; state Exp; branches; next 1.905; commitid 29d2430510ba4567; 1.905 date 2005.08.18.21.34.10; author cworth; state Exp; branches; next 1.904; commitid 7c2e4304fecf4567; 1.904 date 2005.08.18.16.46.20; author cworth; state Exp; branches; next 1.903; commitid 60ca4304bb5a4567; 1.903 date 2005.08.18.16.19.21; author cworth; state Exp; branches; next 1.902; commitid 50b94304b5064567; 1.902 date 2005.08.18.15.28.08; author vektor; state Exp; branches; next 1.901; commitid 373f4304a8f24567; 1.901 date 2005.08.18.15.22.29; author cworth; state Exp; branches; next 1.900; commitid 33e74304a7b34567; 1.900 date 2005.08.18.04.19.30; author krh; state Exp; branches; next 1.899; commitid 152943040c374567; 1.899 date 2005.08.17.22.57.45; author krh; state Exp; branches; next 1.898; commitid 111d4303c0df4567; 1.898 date 2005.08.17.16.51.09; author cworth; state Exp; branches; next 1.897; commitid 5bab43036afa4567; 1.897 date 2005.08.17.04.04.02; author vektor; state Exp; branches; next 1.896; commitid 163a4302b71d4567; 1.896 date 2005.08.17.01.22.16; author otaylor; state Exp; branches; next 1.895; commitid 5d2b430291454567; 1.895 date 2005.08.16.23.52.35; author vektor; state Exp; branches; next 1.894; commitid 3d0c43027c344567; 1.894 date 2005.08.16.23.41.10; author cworth; state Exp; branches; next 1.893; commitid 385c430279934567; 1.893 date 2005.08.15.02.25.05; author krh; state Exp; branches; next 1.892; commitid 2d7142fffcf44567; 1.892 date 2005.08.14.00.38.23; author krh; state Exp; branches; next 1.891; commitid a4642fe92634567; 1.891 date 2005.08.13.15.12.17; author otaylor; state Exp; branches; next 1.890; commitid 322642fe0dcd4567; 1.890 date 2005.08.13.12.46.40; author cworth; state Exp; branches; next 1.889; commitid 734442fdebae4567; 1.889 date 2005.08.13.12.33.21; author cworth; state Exp; branches; next 1.888; commitid 6e1842fde88f4567; 1.888 date 2005.08.13.12.00.20; author cworth; state Exp; branches; next 1.887; commitid 601642fde0d14567; 1.887 date 2005.08.13.11.22.46; author cworth; state Exp; branches; next 1.886; commitid 4ff142fdd8034567; 1.886 date 2005.08.13.11.17.36; author cworth; state Exp; branches; next 1.885; commitid 4dbe42fdd6cd4567; 1.885 date 2005.08.13.10.26.18; author cworth; state Exp; branches; next 1.884; commitid 3d5542fdcac74567; 1.884 date 2005.08.13.09.21.07; author cworth; state Exp; branches; next 1.883; commitid 259442fdbb804567; 1.883 date 2005.08.13.09.02.39; author cworth; state Exp; branches; next 1.882; commitid 1d3d42fdb72c4567; 1.882 date 2005.08.13.08.38.55; author cworth; state Exp; branches; next 1.881; commitid 22442fdb19c4567; 1.881 date 2005.08.13.08.17.06; author behdad; state Exp; branches; next 1.880; commitid 79eb42fdac724567; 1.880 date 2005.08.13.08.04.55; author behdad; state Exp; branches; next 1.879; commitid 755e42fda9994567; 1.879 date 2005.08.13.07.20.45; author behdad; state Exp; branches; next 1.878; commitid 68e742fd9f434567; 1.878 date 2005.08.13.06.50.17; author cworth; state Exp; branches; next 1.877; commitid 5d5542fd98274567; 1.877 date 2005.08.13.04.35.31; author behdad; state Exp; branches; next 1.876; commitid 333642fd78854567; 1.876 date 2005.08.11.23.52.43; author cworth; state Exp; branches; next 1.875; commitid 541642fbe4c94567; 1.875 date 2005.08.11.21.59.27; author cworth; state Exp; branches; next 1.874; commitid 267d42fbca3d4567; 1.874 date 2005.08.11.21.49.07; author cworth; state Exp; branches; next 1.873; commitid 20d542fbc7ce4567; 1.873 date 2005.08.11.13.35.20; author cworth; state Exp; branches; next 1.872; commitid 203142fb54154567; 1.872 date 2005.08.11.04.12.10; author vektor; state Exp; branches; next 1.871; commitid 488b42fad00c4567; 1.871 date 2005.08.11.03.25.57; author cworth; state Exp; branches; next 1.870; commitid 3c2242fac5424567; 1.870 date 2005.08.10.23.04.26; author cworth; state Exp; branches; next 1.869; commitid 72de42fa87f84567; 1.869 date 2005.08.10.22.58.25; author cworth; state Exp; branches; next 1.868; commitid 6ff342fa868e4567; 1.868 date 2005.08.10.21.30.15; author cworth; state Exp; branches; next 1.867; commitid 4f9e42fa71e54567; 1.867 date 2005.08.10.20.32.06; author keithp; state Exp; branches; next 1.866; commitid 364542fa64394567; 1.866 date 2005.08.10.19.36.51; author cworth; state Exp; branches; next 1.865; commitid 16b242fa57504567; 1.865 date 2005.08.10.18.40.11; author vladimir; state Exp; branches; next 1.864; commitid 7c0942fa49e74567; 1.864 date 2005.08.10.18.30.45; author cworth; state Exp; branches; next 1.863; commitid 793642fa47d34567; 1.863 date 2005.08.10.18.08.38; author cworth; state Exp; branches; next 1.862; commitid 6f7b42fa42a34567; 1.862 date 2005.08.10.13.52.40; author cworth; state Exp; branches; next 1.861; commitid 735042fa06a54567; 1.861 date 2005.08.09.20.42.54; author vladimir; state Exp; branches; next 1.860; commitid 4d2942f915464567; 1.860 date 2005.08.09.20.01.14; author cworth; state Exp; branches; next 1.859; commitid 385c42f90b874567; 1.859 date 2005.08.09.19.35.09; author cworth; state Exp; branches; next 1.858; commitid 2b3942f9056b4567; 1.858 date 2005.08.09.17.05.35; author tor; state Exp; branches; next 1.857; commitid 5a7f42f8e2374567; 1.857 date 2005.08.09.16.27.39; author cworth; state Exp; branches; next 1.856; commitid 47c142f8d9794567; 1.856 date 2005.08.09.04.06.44; author cworth; state Exp; branches; next 1.855; commitid 4d6342f82bd14567; 1.855 date 2005.08.09.04.02.11; author cworth; state Exp; branches; next 1.854; commitid 4be742f82ac14567; 1.854 date 2005.08.09.03.57.13; author cworth; state Exp; branches; next 1.853; commitid 4a1942f829974567; 1.853 date 2005.08.09.01.36.56; author vektor; state Exp; branches; next 1.852; commitid 226042f808a84567; 1.852 date 2005.08.09.01.35.22; author vektor; state Exp; branches; next 1.851; commitid 20ac42f8079c4567; 1.851 date 2005.08.09.00.32.24; author cworth; state Exp; branches; next 1.850; commitid c8842f7f9964567; 1.850 date 2005.08.08.22.50.55; author cworth; state Exp; branches; next 1.849; commitid 655642f7e1cd4567; 1.849 date 2005.08.08.21.27.01; author otaylor; state Exp; branches; next 1.848; commitid 459642f7ce224567; 1.848 date 2005.08.08.21.13.50; author cworth; state Exp; branches; next 1.847; commitid 400e42f7cb0b4567; 1.847 date 2005.08.08.21.11.00; author otaylor; state Exp; branches; next 1.846; commitid 3f2342f7ca614567; 1.846 date 2005.08.08.20.50.59; author krh; state Exp; branches; next 1.845; commitid 381842f7c5aa4567; 1.845 date 2005.08.08.20.46.11; author otaylor; state Exp; branches; next 1.844; commitid 35ea42f7c4924567; 1.844 date 2005.08.06.23.57.14; author cworth; state Exp; branches; next 1.843; commitid 25d542f54e574567; 1.843 date 2005.08.06.23.38.33; author cworth; state Exp; branches; next 1.842; commitid 1f3342f549f74567; 1.842 date 2005.08.06.22.10.36; author jrmuizel; state Exp; branches; next 1.841; commitid 9ef42f5354f4567; 1.841 date 2005.08.06.17.22.07; author otaylor; state Exp; branches; next 1.840; commitid 349042f4f1ba4567; 1.840 date 2005.08.06.07.09.17; author cworth; state Exp; branches; next 1.839; commitid 429542f4621a4567; 1.839 date 2005.08.06.06.41.41; author cworth; state Exp; branches; next 1.838; commitid 365942f45ba24567; 1.838 date 2005.08.06.05.37.29; author cworth; state Exp; branches; next 1.837; commitid 272742f44c974567; 1.837 date 2005.08.06.05.35.04; author cworth; state Exp; branches; next 1.836; commitid 268f42f44c054567; 1.836 date 2005.08.06.05.29.06; author cworth; state Exp; branches; next 1.835; commitid 24cb42f44aa04567; 1.835 date 2005.08.06.04.33.41; author cworth; state Exp; branches; next 1.834; commitid 18aa42f43da34567; 1.834 date 2005.08.06.04.27.21; author cworth; state Exp; branches; next 1.833; commitid 174f42f43c264567; 1.833 date 2005.08.06.04.02.25; author cworth; state Exp; branches; next 1.832; commitid 11ec42f4364e4567; 1.832 date 2005.08.06.03.53.09; author cworth; state Exp; branches; next 1.831; commitid 101742f434214567; 1.831 date 2005.08.06.03.30.43; author cworth; state Exp; branches; next 1.830; commitid c1c42f42ee14567; 1.830 date 2005.08.06.03.15.19; author cworth; state Exp; branches; next 1.829; commitid 87d42f42b454567; 1.829 date 2005.08.06.00.27.57; author cworth; state Exp; branches; next 1.828; commitid 321842f4040b4567; 1.828 date 2005.08.06.00.00.38; author cworth; state Exp; branches; next 1.827; commitid 299a42f3fda24567; 1.827 date 2005.08.05.23.44.20; author cworth; state Exp; branches; next 1.826; commitid 25ec42f3f9d04567; 1.826 date 2005.08.05.22.49.52; author cworth; state Exp; branches; next 1.825; commitid 16e642f3ed0e4567; 1.825 date 2005.08.05.22.48.42; author cworth; state Exp; branches; next 1.824; commitid 165b42f3ecc84567; 1.824 date 2005.08.05.22.07.45; author jrmuizel; state Exp; branches; next 1.823; commitid a1542f3e31d4567; 1.823 date 2005.08.05.22.01.55; author cworth; state Exp; branches; next 1.822; commitid 70542f3e1d04567; 1.822 date 2005.08.05.18.23.51; author jrmuizel; state Exp; branches; next 1.821; commitid 31f642f3aea54567; 1.821 date 2005.08.05.18.15.04; author jrmuizel; state Exp; branches; next 1.820; commitid 2e2742f3ac9b4567; 1.820 date 2005.08.05.17.46.40; author cworth; state Exp; branches; next 1.819; commitid 23f642f3a5fe4567; 1.819 date 2005.08.05.17.43.07; author cworth; state Exp; branches; next 1.818; commitid 21fe42f3a5294567; 1.818 date 2005.08.05.17.40.32; author cworth; state Exp; branches; next 1.817; commitid 20b242f3a48d4567; 1.817 date 2005.08.05.17.30.31; author cworth; state Exp; branches; next 1.816; commitid 1c7c42f3a2344567; 1.816 date 2005.08.05.17.05.29; author cworth; state Exp; branches; next 1.815; commitid 10cc42f39c564567; 1.815 date 2005.08.05.14.48.18; author cworth; state Exp; branches; next 1.814; commitid 517442f37c2f4567; 1.814 date 2005.08.05.06.10.26; author krh; state Exp; branches; next 1.813; commitid 48b042f302c44567; 1.813 date 2005.08.05.05.45.59; author krh; state Exp; branches; next 1.812; commitid 421242f2fd084567; 1.812 date 2005.08.05.01.44.29; author krh; state Exp; branches; next 1.811; commitid 7ffd42f2c4494567; 1.811 date 2005.08.04.22.53.30; author tor; state Exp; branches; next 1.810; commitid 3db642f29c4e4567; 1.810 date 2005.08.04.20.22.15; author cworth; state Exp; branches; next 1.809; commitid 7d9a42f278f44567; 1.809 date 2005.08.03.17.32.50; author cworth; state Exp; branches; next 1.808; commitid 545e42f0ffbf4567; 1.808 date 2005.08.01.21.39.01; author otaylor; state Exp; branches; next 1.807; commitid 797142ee96664567; 1.807 date 2005.08.01.20.33.47; author cworth; state Exp; branches; next 1.806; commitid 59b442ee87274567; 1.806 date 2005.08.01.18.45.42; author otaylor; state Exp; branches; next 1.805; commitid 232342ee6dcc4567; 1.805 date 2005.07.31.18.19.47; author vektor; state Exp; branches; next 1.804; commitid 540f42ed16214567; 1.804 date 2005.07.31.18.03.35; author vektor; state Exp; branches; next 1.803; commitid 4f9642ed12664567; 1.803 date 2005.07.31.05.21.12; author vektor; state Exp; branches; next 1.802; commitid 2d5b42ec5f9f4567; 1.802 date 2005.07.30.19.57.54; author keithp; state Exp; branches; next 1.801; commitid fa442ebdbbc4567; 1.801 date 2005.07.29.22.35.19; author cworth; state Exp; branches; next 1.800; commitid 574642eaaf254567; 1.800 date 2005.07.29.22.31.48; author tor; state Exp; branches; next 1.799; commitid 559242eaae3c4567; 1.799 date 2005.07.29.19.45.01; author otaylor; state Exp; branches; next 1.798; commitid 777442ea87324567; 1.798 date 2005.07.28.22.58.09; author cworth; state Exp; branches; next 1.797; commitid d6342e962ff4567; 1.797 date 2005.07.28.22.55.00; author cworth; state Exp; branches; next 1.796; commitid baa42e962424567; 1.796 date 2005.07.28.22.38.50; author cworth; state Exp; branches; next 1.795; commitid 4c742e95e784567; 1.795 date 2005.07.28.19.45.26; author cworth; state Exp; branches; next 1.794; commitid 454442e935d44567; 1.794 date 2005.07.28.18.51.38; author cworth; state Exp; branches; next 1.793; commitid 2e3a42e929384567; 1.793 date 2005.07.28.18.46.01; author cworth; state Exp; branches; next 1.792; commitid 2c8542e927e64567; 1.792 date 2005.07.28.18.41.37; author cworth; state Exp; branches; next 1.791; commitid 2a9542e926df4567; 1.791 date 2005.07.28.18.34.47; author cworth; state Exp; branches; next 1.790; commitid 284742e925454567; 1.790 date 2005.07.28.18.33.11; author cworth; state Exp; branches; next 1.789; commitid 279442e924e54567; 1.789 date 2005.07.28.18.22.36; author dajobe; state Exp; branches; next 1.788; commitid 23cf42e922614567; 1.788 date 2005.07.28.17.51.37; author cworth; state Exp; branches; next 1.787; commitid 191142e91b264567; 1.787 date 2005.07.28.17.47.40; author cworth; state Exp; branches; next 1.786; commitid 181342e91a3a4567; 1.786 date 2005.07.28.17.43.27; author otaylor; state Exp; branches; next 1.785; commitid 160742e9193a4567; 1.785 date 2005.07.28.17.41.08; author cworth; state Exp; branches; next 1.784; commitid 14e642e918b04567; 1.784 date 2005.07.28.17.37.41; author pavlov; state Exp; branches; next 1.783; commitid 12c842e917b94567; 1.783 date 2005.07.28.17.24.59; author otaylor; state Exp; branches; next 1.782; commitid cbd42e914e74567; 1.782 date 2005.07.28.17.15.35; author otaylor; state Exp; branches; next 1.781; commitid 79342e912b34567; 1.781 date 2005.07.28.17.02.54; author otaylor; state Exp; branches; next 1.780; commitid 17842e90fb84567; 1.780 date 2005.07.28.16.54.03; author otaylor; state Exp; branches; next 1.779; commitid 7c4342e90da74567; 1.779 date 2005.07.28.16.46.38; author cworth; state Exp; branches; next 1.778; commitid 788242e90be94567; 1.778 date 2005.07.28.16.29.46; author otaylor; state Exp; branches; next 1.777; commitid 71a142e907e04567; 1.777 date 2005.07.28.02.13.39; author otaylor; state Exp; branches; next 1.776; commitid 50bd42e83f4e4567; 1.776 date 2005.07.27.23.23.11; author otaylor; state Exp; branches; next 1.775; commitid 14b342e817584567; 1.775 date 2005.07.27.22.39.34; author cworth; state Exp; branches; next 1.774; commitid 19f42e80d204567; 1.774 date 2005.07.27.22.04.03; author otaylor; state Exp; branches; next 1.773; commitid 723f42e804cf4567; 1.773 date 2005.07.27.20.28.15; author cworth; state Exp; branches; next 1.772; commitid 404442e7ee5d4567; 1.772 date 2005.07.27.16.23.29; author cworth; state Exp; branches; next 1.771; commitid 2cd542e7b4fe4567; 1.771 date 2005.07.27.13.45.37; author otaylor; state Exp; branches; next 1.770; commitid 4d9f42e78ffd4567; 1.770 date 2005.07.27.11.07.46; author otaylor; state Exp; branches; next 1.769; commitid 69c942e76afe4567; 1.769 date 2005.07.27.05.36.00; author davidr; state Exp; branches; next 1.768; commitid 106b42e71d3b4567; 1.768 date 2005.07.25.23.23.05; author cworth; state Exp; branches; next 1.767; commitid 692442e574554567; 1.767 date 2005.07.25.19.29.23; author otaylor; state Exp; branches; next 1.766; commitid 119e42e53d8e4567; 1.766 date 2005.07.24.12.18.15; author otaylor; state Exp; branches; next 1.765; commitid 139042e387024567; 1.765 date 2005.07.23.16.36.00; author malcolm; state Exp; branches; next 1.764; commitid 3ea042e271ee4567; 1.764 date 2005.07.23.12.37.23; author otaylor; state Exp; branches; next 1.763; commitid 6f3a42e239fe4567; 1.763 date 2005.07.22.22.15.15; author otaylor; state Exp; branches; next 1.762; commitid 551642e16fef4567; 1.762 date 2005.07.22.14.15.57; author otaylor; state Exp; branches; next 1.761; commitid 243542e0ff994567; 1.761 date 2005.07.22.09.04.59; author cworth; state Exp; branches; next 1.760; commitid 28d142e0b6ba4567; 1.760 date 2005.07.22.04.02.11; author cworth; state Exp; branches; next 1.759; commitid 25d142e06fbf4567; 1.759 date 2005.07.22.01.12.21; author otaylor; state Exp; branches; next 1.758; commitid 700842e047f04567; 1.758 date 2005.07.21.21.31.28; author keithp; state Exp; branches; next 1.757; commitid 1d3342e014174567; 1.757 date 2005.07.21.18.26.31; author cworth; state Exp; branches; next 1.756; commitid 68b842dfe8d54567; 1.756 date 2005.07.21.15.50.20; author davidr; state Exp; branches; next 1.755; commitid 222242dfc43a4567; 1.755 date 2005.07.21.15.45.57; author keithp; state Exp; branches; next 1.754; commitid 1ffb42dfc32d4567; 1.754 date 2005.07.21.14.41.20; author cworth; state Exp; branches; next 1.753; commitid 36d42dfb40b4567; 1.753 date 2005.07.21.13.52.13; author otaylor; state Exp; branches; next 1.752; commitid 6d1342dfa8874567; 1.752 date 2005.07.21.07.35.07; author cworth; state Exp; branches; next 1.751; commitid 409e42df50294567; 1.751 date 2005.07.21.06.30.08; author cworth; state Exp; branches; next 1.750; commitid 2c6c42df40ed4567; 1.750 date 2005.07.21.04.54.35; author cworth; state Exp; branches; next 1.749; commitid 142d42df2a874567; 1.749 date 2005.07.21.02.23.19; author cworth; state Exp; branches; next 1.748; commitid 52a42df07144567; 1.748 date 2005.07.21.01.52.31; author keithp; state Exp; branches; next 1.747; commitid 324642deffcd4567; 1.747 date 2005.07.21.01.31.17; author cworth; state Exp; branches; next 1.746; commitid 7f7c42defae34567; 1.746 date 2005.07.18.21.36.39; author cworth; state Exp; branches; next 1.745; commitid 1f6e42dc20e64567; 1.745 date 2005.07.18.21.35.54; author cworth; state Exp; branches; next 1.744; commitid 1eef42dc20b94567; 1.744 date 2005.07.18.18.51.42; author cworth; state Exp; branches; next 1.743; commitid 619742dbfa3c4567; 1.743 date 2005.07.18.16.23.33; author cworth; state Exp; branches; next 1.742; commitid 1c8942dbd7814567; 1.742 date 2005.07.18.15.31.24; author cworth; state Exp; branches; next 1.741; commitid 7f5c42dbcb4a4567; 1.741 date 2005.07.18.15.23.21; author cworth; state Exp; branches; next 1.740; commitid 79ee42dbc9674567; 1.740 date 2005.07.18.15.04.16; author cworth; state Exp; branches; next 1.739; commitid 6cc142dbc4ee4567; 1.739 date 2005.07.18.05.15.57; author cworth; state Exp; branches; next 1.738; commitid 39e442db3b0a4567; 1.738 date 2005.07.15.20.59.47; author cworth; state Exp; branches; next 1.737; commitid 7e3842d823c14567; 1.737 date 2005.07.15.20.45.19; author vladimir; state Exp; branches; next 1.736; commitid 78a742d820464567; 1.736 date 2005.07.15.17.39.59; author cworth; state Exp; branches; next 1.735; commitid 2c8242d7f4ec4567; 1.735 date 2005.07.15.08.38.38; author cworth; state Exp; branches; next 1.734; commitid 759742d7760c4567; 1.734 date 2005.07.15.08.05.56; author cworth; state Exp; branches; next 1.733; commitid 636542d76e624567; 1.733 date 2005.07.15.07.56.58; author cworth; state Exp; branches; next 1.732; commitid 5e9442d76c484567; 1.732 date 2005.07.15.00.55.58; author cworth; state Exp; branches; next 1.731; commitid 355642d7099c4567; 1.731 date 2005.07.15.00.52.17; author cworth; state Exp; branches; next 1.730; commitid 344242d708bf4567; 1.730 date 2005.07.14.23.56.08; author cworth; state Exp; branches; next 1.729; commitid 275242d6fb964567; 1.729 date 2005.07.14.23.50.58; author pavlov; state Exp; branches; next 1.728; commitid 262c42d6fa574567; 1.728 date 2005.07.14.23.18.39; author cworth; state Exp; branches; next 1.727; commitid 1c8942d6f2cd4567; 1.727 date 2005.07.14.22.47.18; author cworth; state Exp; branches; next 1.726; commitid 107042d6eb744567; 1.726 date 2005.07.14.22.10.47; author cworth; state Exp; branches; next 1.725; commitid 1b442d6e2e54567; 1.725 date 2005.07.14.19.50.28; author cworth; state Exp; branches; next 1.724; commitid 48ca42d6c2024567; 1.724 date 2005.07.14.19.25.41; author cworth; state Exp; branches; next 1.723; commitid 3d8242d6bc334567; 1.723 date 2005.07.14.19.20.42; author cworth; state Exp; branches; next 1.722; commitid 3be842d6bb084567; 1.722 date 2005.07.14.18.48.40; author cworth; state Exp; branches; next 1.721; commitid 2d4942d6b3864567; 1.721 date 2005.07.14.18.45.39; author cworth; state Exp; branches; next 1.720; commitid 2bbd42d6b2d14567; 1.720 date 2005.07.14.18.24.56; author cworth; state Exp; branches; next 1.719; commitid 229642d6adf64567; 1.719 date 2005.07.14.18.17.12; author cworth; state Exp; branches; next 1.718; commitid 1ee842d6ac264567; 1.718 date 2005.07.14.18.11.15; author cworth; state Exp; branches; next 1.717; commitid 1c4f42d6aac14567; 1.717 date 2005.07.13.19.32.51; author krh; state Exp; branches; next 1.716; commitid 484f42d56c584567; 1.716 date 2005.07.13.18.34.37; author cworth; state Exp; branches; next 1.715; commitid 28e242d55ebb4567; 1.715 date 2005.07.13.18.01.25; author cworth; state Exp; branches; next 1.714; commitid 146442d556f14567; 1.714 date 2005.07.12.21.43.37; author cworth; state Exp; branches; next 1.713; commitid 172942d439864567; 1.713 date 2005.07.11.23.24.19; author cworth; state Exp; branches; next 1.712; commitid 5df42d2ffa14567; 1.712 date 2005.07.11.23.09.55; author cworth; state Exp; branches; next 1.711; commitid 13042d2fc414567; 1.711 date 2005.07.11.23.07.08; author cworth; state Exp; branches; next 1.710; commitid 7f2b42d2fb9a4567; 1.710 date 2005.07.11.21.03.51; author cworth; state Exp; branches; next 1.709; commitid 4f3e42d2deb54567; 1.709 date 2005.07.11.20.37.43; author cworth; state Exp; branches; next 1.708; commitid 43e242d2d8954567; 1.708 date 2005.07.11.20.29.45; author cworth; state Exp; branches; next 1.707; commitid 3e7b42d2d6b74567; 1.707 date 2005.07.08.17.12.28; author cworth; state Exp; branches; next 1.706; commitid 22bd42ceb3f74567; 1.706 date 2005.07.07.08.15.21; author cworth; state Exp; branches; next 1.705; commitid 20c442cce4974567; 1.705 date 2005.07.06.21.52.01; author cworth; state Exp; branches; next 1.704; commitid 6fce42cc52804567; 1.704 date 2005.07.06.18.23.39; author cworth; state Exp; branches; next 1.703; commitid 21f442cc21a74567; 1.703 date 2005.07.06.05.30.59; author cworth; state Exp; branches; next 1.702; commitid 3eaa42cb6c8f4567; 1.702 date 2005.07.04.10.58.43; author davidr; state Exp; branches; next 1.701; commitid 33342c916614567; 1.701 date 2005.07.01.19.45.35; author krh; state Exp; branches; next 1.700; commitid 3d6f42c59d514567; 1.700 date 2005.07.01.19.22.23; author krh; state Exp; branches; next 1.699; commitid 33c542c597e24567; 1.699 date 2005.06.30.00.05.31; author cworth; state Exp; branches; next 1.698; commitid 6ffe42c337494567; 1.698 date 2005.06.30.00.02.37; author cworth; state Exp; branches; next 1.697; commitid 6ece42c3369b4567; 1.697 date 2005.06.29.22.02.10; author cworth; state Exp; branches; next 1.696; commitid 459742c31a604567; 1.696 date 2005.06.29.14.04.34; author cworth; state Exp; branches; next 1.695; commitid 7e4942c2aa704567; 1.695 date 2005.06.28.22.58.42; author krh; state Exp; branches; next 1.694; commitid 23fd42c1d6154567; 1.694 date 2005.06.28.22.03.53; author tor; state Exp; branches; next 1.693; commitid f9e42c1c9394567; 1.693 date 2005.06.28.20.28.53; author otaylor; state Exp; branches; next 1.692; commitid 676e42c1b2fe4567; 1.692 date 2005.06.28.18.52.42; author tor; state Exp; branches; next 1.691; commitid 436142c19c6e4567; 1.691 date 2005.06.28.12.02.27; author otaylor; state Exp; branches; next 1.690; commitid 159342c13c524567; 1.690 date 2005.06.26.06.24.19; author keithp; state Exp; branches; next 1.689; commitid 425442be49ec4567; 1.689 date 2005.06.25.20.51.22; author otaylor; state Exp; branches; next 1.688; commitid 3bc042bdc3c44567; 1.688 date 2005.06.25.09.00.17; author cworth; state Exp; branches; next 1.687; commitid 74e942bd1d1e4567; 1.687 date 2005.06.24.22.14.31; author cworth; state Exp; branches; next 1.686; commitid 23a342bc85c54567; 1.686 date 2005.06.24.22.09.41; author cworth; state Exp; branches; next 1.685; commitid 221b42bc84a34567; 1.685 date 2005.06.24.22.06.40; author otaylor; state Exp; branches; next 1.684; commitid 210342bc83eb4567; 1.684 date 2005.06.23.22.52.37; author cworth; state Exp; branches; next 1.683; commitid 177342bb3d334567; 1.683 date 2005.06.23.20.05.07; author otaylor; state Exp; branches; next 1.682; commitid 4dc042bb15e24567; 1.682 date 2005.06.23.19.58.49; author otaylor; state Exp; branches; next 1.681; commitid 48c642bb14744567; 1.681 date 2005.06.23.19.45.38; author cworth; state Exp; branches; next 1.680; commitid 419d42bb11604567; 1.680 date 2005.06.23.05.12.09; author cworth; state Exp; branches; next 1.679; commitid 19e742ba44a74567; 1.679 date 2005.06.23.00.09.08; author cworth; state Exp; branches; next 1.678; commitid 247d42b9fda24567; 1.678 date 2005.06.22.16.49.48; author pippin; state Exp; branches; next 1.677; commitid 269d42b996aa4567; 1.677 date 2005.06.21.22.38.51; author krh; state Exp; branches; next 1.676; commitid 169842b896f34567; 1.676 date 2005.06.21.16.54.58; author tor; state Exp; branches; next 1.675; commitid 78fd42b846224567; 1.675 date 2005.06.21.00.06.10; author cworth; state Exp; branches; next 1.674; commitid 1c8042b759f04567; 1.674 date 2005.06.21.00.01.36; author cworth; state Exp; branches; next 1.673; commitid 1b6d42b758de4567; 1.673 date 2005.06.20.23.35.40; author cworth; state Exp; branches; next 1.672; commitid 15d542b752ca4567; 1.672 date 2005.06.20.23.31.17; author cworth; state Exp; branches; next 1.671; commitid 146d42b751c34567; 1.671 date 2005.06.20.22.48.46; author otaylor; state Exp; branches; next 1.670; commitid 9c542b747ca4567; 1.670 date 2005.06.20.19.54.15; author cworth; state Exp; branches; next 1.669; commitid 499042b71ee54567; 1.669 date 2005.06.20.18.09.51; author cworth; state Exp; branches; next 1.668; commitid 1ab342b7066c4567; 1.668 date 2005.06.20.16.59.23; author cworth; state Exp; branches; next 1.667; commitid 6caf42b6f5e84567; 1.667 date 2005.06.18.06.22.20; author cworth; state Exp; branches; next 1.666; commitid 1aba42b3bd984567; 1.666 date 2005.06.17.23.19.08; author otaylor; state Exp; branches; next 1.665; commitid ca742b35a674567; 1.665 date 2005.06.17.20.25.19; author krh; state Exp; branches; next 1.664; commitid 2b2942b331a14567; 1.664 date 2005.06.17.18.24.24; author cworth; state Exp; branches; next 1.663; commitid 6f9642b315564567; 1.663 date 2005.06.17.17.48.47; author krh; state Exp; branches; next 1.662; commitid 637142b30cf64567; 1.662 date 2005.06.16.19.20.46; author cworth; state Exp; branches; next 1.661; commitid fe042b1d10c4567; 1.661 date 2005.06.15.23.52.11; author cworth; state Exp; branches; next 1.660; commitid 28f942b0bf294567; 1.660 date 2005.06.15.23.04.19; author otaylor; state Exp; branches; next 1.659; commitid 399f42b0b3ee4567; 1.659 date 2005.06.15.19.44.52; author otaylor; state Exp; branches; next 1.658; commitid 792642b085304567; 1.658 date 2005.06.15.17.58.52; author cworth; state Exp; branches; next 1.657; commitid 519542b06c5a4567; 1.657 date 2005.06.15.17.56.31; author cworth; state Exp; branches; next 1.656; commitid 50ec42b06bce4567; 1.656 date 2005.06.15.17.54.00; author cworth; state Exp; branches; next 1.655; commitid 4fb142b06b364567; 1.655 date 2005.06.15.17.52.01; author cworth; state Exp; branches; next 1.654; commitid 4ed242b06abe4567; 1.654 date 2005.06.15.17.46.49; author cworth; state Exp; branches; next 1.653; commitid 4c8142b069874567; 1.653 date 2005.06.15.17.41.41; author cworth; state Exp; branches; next 1.652; commitid 4a9a42b068534567; 1.652 date 2005.06.15.02.45.22; author krh; state Exp; branches; next 1.651; commitid 799442af960a4567; 1.651 date 2005.06.14.22.38.15; author cworth; state Exp; branches; next 1.650; commitid 3cbd42af5c544567; 1.650 date 2005.06.14.21.12.00; author tor; state Exp; branches; next 1.649; commitid 1ecd42af480b4567; 1.649 date 2005.06.14.18.58.14; author cworth; state Exp; branches; next 1.648; commitid 654342af28c44567; 1.648 date 2005.06.13.23.53.52; author cworth; state Exp; branches; next 1.647; commitid 293f42ae1c8d4567; 1.647 date 2005.06.13.23.36.40; author cworth; state Exp; branches; next 1.646; commitid 241442ae18854567; 1.646 date 2005.06.13.23.35.03; author cworth; state Exp; branches; next 1.645; commitid 236842ae18254567; 1.645 date 2005.06.13.23.29.26; author cworth; state Exp; branches; next 1.644; commitid 219742ae16d34567; 1.644 date 2005.06.11.08.09.15; author cworth; state Exp; branches; next 1.643; commitid 72e542aa9c294567; 1.643 date 2005.06.11.07.06.04; author cworth; state Exp; branches; next 1.642; commitid 5f8642aa8d5a4567; 1.642 date 2005.06.11.06.47.23; author cworth; state Exp; branches; next 1.641; commitid 575e42aa88f74567; 1.641 date 2005.06.10.20.23.24; author cworth; state Exp; branches; next 1.640; commitid 20942a9f6ba4567; 1.640 date 2005.06.10.20.19.45; author cworth; state Exp; branches; next 1.639; commitid 7fbb42a9f5df4567; 1.639 date 2005.06.10.19.46.49; author cworth; state Exp; branches; next 1.638; commitid 712042a9ee264567; 1.638 date 2005.06.10.19.18.20; author cworth; state Exp; branches; next 1.637; commitid 642b42a9e7764567; 1.637 date 2005.06.09.19.27.02; author cworth; state Exp; branches; next 1.636; commitid 4ed942a898044567; 1.636 date 2005.06.09.14.26.40; author otaylor; state Exp; branches; next 1.635; commitid 52fc42a8519c4567; 1.635 date 2005.06.08.06.28.12; author keithp; state Exp; branches; next 1.634; commitid 525442a68ff84567; 1.634 date 2005.06.03.23.45.46; author cworth; state Exp; branches; next 1.633; commitid 2d5842a0eba74567; 1.633 date 2005.06.03.23.40.15; author krh; state Exp; branches; next 1.632; commitid 2bec42a0ea4c4567; 1.632 date 2005.06.03.23.22.26; author cworth; state Exp; branches; next 1.631; commitid 284442a0e6304567; 1.631 date 2005.06.03.23.16.44; author cworth; state Exp; branches; next 1.630; commitid 275442a0e4da4567; 1.630 date 2005.06.03.23.08.28; author cworth; state Exp; branches; next 1.629; commitid 249142a0e2e94567; 1.629 date 2005.06.03.22.56.52; author cworth; state Exp; branches; next 1.628; commitid 217c42a0e0324567; 1.628 date 2005.06.03.22.54.40; author cworth; state Exp; branches; next 1.627; commitid 211b42a0dfab4567; 1.627 date 2005.06.03.21.51.57; author cworth; state Exp; branches; next 1.626; commitid 10b242a0d0f94567; 1.626 date 2005.06.03.17.28.42; author krh; state Exp; branches; next 1.625; commitid 461042a0933d4567; 1.625 date 2005.06.03.16.38.39; author cworth; state Exp; branches; next 1.624; commitid 34eb42a0878c4567; 1.624 date 2005.06.01.20.36.20; author cworth; state Exp; branches; next 1.623; commitid 605b429e1c424567; 1.623 date 2005.06.01.20.24.10; author cworth; state Exp; branches; next 1.622; commitid 5b3c429e19634567; 1.622 date 2005.06.01.20.19.52; author cworth; state Exp; branches; next 1.621; commitid 5994429e18664567; 1.621 date 2005.06.01.20.13.10; author cworth; state Exp; branches; next 1.620; commitid 5726429e16d44567; 1.620 date 2005.06.01.20.10.57; author cworth; state Exp; branches; next 1.619; commitid 5675429e164f4567; 1.619 date 2005.06.01.18.03.50; author cworth; state Exp; branches; next 1.618; commitid 1318429df8854567; 1.618 date 2005.06.01.07.29.24; author cworth; state Exp; branches; next 1.617; commitid 28f7429d63d24567; 1.617 date 2005.05.31.23.05.06; author cworth; state Exp; branches; next 1.616; commitid 2334429ced9c4567; 1.616 date 2005.05.27.00.35.35; author oandrieu; state Exp; branches; next 1.615; commitid 44ee42966b524567; 1.615 date 2005.05.26.18.35.44; author keithp; state Exp; branches; next 1.614; commitid 60c6429616f44567; 1.614 date 2005.05.26.10.31.28; author oandrieu; state Exp; branches; next 1.613; commitid 3caa4295a57a4567; 1.613 date 2005.05.24.23.08.39; author cworth; state Exp; branches; next 1.612; commitid 528f4293b3f64567; 1.612 date 2005.05.22.18.12.46; author cworth; state Exp; branches; next 1.611; commitid 45fd4290cb9c4567; 1.611 date 2005.05.22.16.08.23; author cworth; state Exp; branches; next 1.610; commitid 3a74290ae754567; 1.610 date 2005.05.18.16.41.47; author cworth; state Exp; branches; next 1.609; commitid 2b47428b70494567; 1.609 date 2005.05.18.01.39.56; author cworth; state Exp; branches; next 1.608; commitid d19428a9cea4567; 1.608 date 2005.05.17.22.23.53; author cworth; state Exp; branches; next 1.607; commitid 5de6428a6ef84567; 1.607 date 2005.05.17.19.40.55; author cworth; state Exp; branches; next 1.606; commitid 712428a48c54567; 1.606 date 2005.05.17.19.21.56; author keithp; state Exp; branches; next 1.605; commitid 7edd428a444d4567; 1.605 date 2005.05.17.18.28.26; author cworth; state Exp; branches; next 1.604; commitid 6b67428a37c74567; 1.604 date 2005.05.17.16.13.02; author cworth; state Exp; branches; next 1.603; commitid 33ba428a180c4567; 1.603 date 2005.05.17.16.08.23; author cworth; state Exp; branches; next 1.602; commitid 315e428a16f54567; 1.602 date 2005.05.17.15.26.37; author cworth; state Exp; branches; next 1.601; commitid 23be428a0d2b4567; 1.601 date 2005.05.17.13.12.52; author cworth; state Exp; branches; next 1.600; commitid 5a3a4289edd34567; 1.600 date 2005.05.17.13.11.32; author cworth; state Exp; branches; next 1.599; commitid 595b4289ed824567; 1.599 date 2005.05.17.13.08.01; author cworth; state Exp; branches; next 1.598; commitid 576f4289ecaf4567; 1.598 date 2005.05.17.13.05.13; author cworth; state Exp; branches; next 1.597; commitid 55c64289ec074567; 1.597 date 2005.05.17.12.58.01; author cworth; state Exp; branches; next 1.596; commitid 51fe4289ea574567; 1.596 date 2005.05.17.08.05.35; author cworth; state Exp; branches; next 1.595; commitid 2b7e4289a5cd4567; 1.595 date 2005.05.17.07.54.09; author cworth; state Exp; branches; next 1.594; commitid 277c4289a31f4567; 1.594 date 2005.05.17.07.39.17; author cworth; state Exp; branches; next 1.593; commitid 23cc42899fa44567; 1.593 date 2005.05.17.07.34.10; author cworth; state Exp; branches; next 1.592; commitid 215b42899e714567; 1.592 date 2005.05.17.05.31.36; author keithp; state Exp; branches; next 1.591; commitid 34c428981b14567; 1.591 date 2005.05.16.22.05.56; author cworth; state Exp; branches; next 1.590; commitid 1ecc428919424567; 1.590 date 2005.05.16.18.41.42; author krh; state Exp; branches; next 1.589; commitid 5a8c4288e95a4567; 1.589 date 2005.05.14.21.01.46; author cworth; state Exp; branches; next 1.588; commitid 5ab9428667384567; 1.588 date 2005.05.14.20.51.59; author cworth; state Exp; branches; next 1.587; commitid 5516428664ee4567; 1.587 date 2005.05.14.20.22.25; author cworth; state Exp; branches; next 1.586; commitid 448f42865dff4567; 1.586 date 2005.05.14.17.15.11; author cworth; state Exp; branches; next 1.585; commitid 644c4286321d4567; 1.585 date 2005.05.14.17.03.56; author cworth; state Exp; branches; next 1.584; commitid 5e3942862f7a4567; 1.584 date 2005.05.14.17.00.27; author cworth; state Exp; branches; next 1.583; commitid 5ca442862ea94567; 1.583 date 2005.05.14.00.54.43; author otaylor; state Exp; branches; next 1.582; commitid 69a542854c494567; 1.582 date 2005.05.13.21.04.22; author krh; state Exp; branches; next 1.581; commitid 79534285164e4567; 1.581 date 2005.05.13.16.26.20; author krh; state Exp; branches; next 1.580; commitid 2b3d4284d5224567; 1.580 date 2005.05.13.15.09.24; author otaylor; state Exp; branches; next 1.579; commitid 11d24284c31e4567; 1.579 date 2005.05.13.06.11.55; author cworth; state Exp; branches; next 1.578; commitid 60af428445284567; 1.578 date 2005.05.13.06.09.58; author cworth; state Exp; branches; next 1.577; commitid 6001428444b54567; 1.577 date 2005.05.12.18.02.35; author cworth; state Exp; branches; next 1.576; commitid 40f342839a394567; 1.576 date 2005.05.12.15.04.22; author keithp; state Exp; branches; next 1.575; commitid 78334283706d4567; 1.575 date 2005.05.11.23.32.44; author otaylor; state Exp; branches; next 1.574; commitid 37d34282961c4567; 1.574 date 2005.05.11.23.01.56; author otaylor; state Exp; branches; next 1.573; commitid 2c9242828ee34567; 1.573 date 2005.05.11.22.39.26; author tor; state Exp; branches; next 1.572; commitid 2323428289794567; 1.572 date 2005.05.11.20.53.18; author davidr; state Exp; branches; next 1.571; commitid 7a89428270af4567; 1.571 date 2005.05.11.20.30.56; author davidr; state Exp; branches; next 1.570; commitid 714c42826b6e4567; 1.570 date 2005.05.11.04.06.01; author otaylor; state Exp; branches; next 1.569; commitid 6167428184a54567; 1.569 date 2005.05.11.03.45.54; author otaylor; state Exp; branches; next 1.568; commitid 5bfb42817fec4567; 1.568 date 2005.05.11.03.38.21; author cworth; state Exp; branches; next 1.567; commitid 59d142817e2b4567; 1.567 date 2005.05.11.03.25.38; author cworth; state Exp; branches; next 1.566; commitid 578f42817b2f4567; 1.566 date 2005.05.10.21.54.48; author cworth; state Exp; branches; next 1.565; commitid a3442812da74567; 1.565 date 2005.05.10.21.48.05; author cworth; state Exp; branches; next 1.564; commitid 75a42812c144567; 1.564 date 2005.05.10.19.42.32; author cworth; state Exp; branches; next 1.563; commitid 55cd42810ea74567; 1.563 date 2005.05.10.19.22.41; author cworth; state Exp; branches; next 1.562; commitid 4e62428109fd4567; 1.562 date 2005.05.09.23.33.59; author otaylor; state Exp; branches; next 1.561; commitid 39d3427ff3614567; 1.561 date 2005.05.09.17.41.17; author cworth; state Exp; branches; next 1.560; commitid 76d6427fa0b84567; 1.560 date 2005.05.09.16.12.52; author cworth; state Exp; branches; next 1.559; commitid 3a84427f8bfb4567; 1.559 date 2005.05.09.15.34.57; author cworth; state Exp; branches; next 1.558; commitid 1c36427f831c4567; 1.558 date 2005.05.07.21.31.01; author otaylor; state Exp; branches; next 1.557; commitid 12ae427d33914567; 1.557 date 2005.05.07.17.35.35; author otaylor; state Exp; branches; next 1.556; commitid 55b0427cfc624567; 1.556 date 2005.05.07.05.42.52; author cworth; state Exp; branches; next 1.555; commitid 330a427c55574567; 1.555 date 2005.05.07.04.59.10; author cworth; state Exp; branches; next 1.554; commitid 2af6427c4b194567; 1.554 date 2005.05.07.04.33.22; author cworth; state Exp; branches; next 1.553; commitid 2451427c450b4567; 1.553 date 2005.05.07.04.25.56; author cworth; state Exp; branches; next 1.552; commitid 232d427c434c4567; 1.552 date 2005.05.07.04.19.49; author cworth; state Exp; branches; next 1.551; commitid 21af427c41df4567; 1.551 date 2005.05.06.21.20.05; author cworth; state Exp; branches; next 1.550; commitid 6a53427bdf804567; 1.550 date 2005.05.06.20.42.45; author cworth; state Exp; branches; next 1.549; commitid 5f1b427bd6c14567; 1.549 date 2005.05.06.20.32.53; author cworth; state Exp; branches; next 1.548; commitid 5b63427bd4694567; 1.548 date 2005.05.06.20.26.16; author cworth; state Exp; branches; next 1.547; commitid 5931427bd2df4567; 1.547 date 2005.05.06.20.23.41; author cworth; state Exp; branches; next 1.546; commitid 57e5427bd2444567; 1.546 date 2005.05.06.19.00.22; author otaylor; state Exp; branches; next 1.545; commitid 3d24427bbec04567; 1.545 date 2005.05.04.12.45.59; author davidr; state Exp; branches; next 1.544; commitid 36304278c4054567; 1.544 date 2005.05.03.21.28.50; author krh; state Exp; branches; next 1.543; commitid 5f734277ed0c4567; 1.543 date 2005.05.03.15.33.32; author cworth; state Exp; branches; next 1.542; commitid 4bc2427799c54567; 1.542 date 2005.05.03.15.16.47; author cworth; state Exp; branches; next 1.541; commitid 415a427795da4567; 1.541 date 2005.05.02.21.20.07; author otaylor; state Exp; branches; next 1.540; commitid 54a7427699814567; 1.540 date 2005.05.02.20.39.30; author otaylor; state Exp; branches; next 1.539; commitid 461742768f3f4567; 1.539 date 2005.05.02.19.36.20; author keithp; state Exp; branches; next 1.538; commitid 31de4276811d4567; 1.538 date 2005.05.02.18.42.41; author otaylor; state Exp; branches; next 1.537; commitid 20cc4276749d4567; 1.537 date 2005.05.02.18.01.18; author otaylor; state Exp; branches; next 1.536; commitid 127642766ae84567; 1.536 date 2005.05.02.05.30.58; author krh; state Exp; branches; next 1.535; commitid 3dd14275bb004567; 1.535 date 2005.04.28.20.41.00; author otaylor; state Exp; branches; next 1.534; commitid cd642714a584567; 1.534 date 2005.04.28.18.15.47; author cworth; state Exp; branches; next 1.533; commitid 611f4271284f4567; 1.533 date 2005.04.27.21.09.41; author cworth; state Exp; branches; next 1.532; commitid 5857426fff914567; 1.532 date 2005.04.27.20.33.25; author cworth; state Exp; branches; next 1.531; commitid 4c74426ff7104567; 1.531 date 2005.04.27.17.16.47; author otaylor; state Exp; branches; next 1.530; commitid 9c1426fc8f54567; 1.530 date 2005.04.27.02.04.48; author cworth; state Exp; branches; next 1.529; commitid 40a426ef3394567; 1.529 date 2005.04.27.01.56.37; author cworth; state Exp; branches; next 1.528; commitid 246426ef14f4567; 1.528 date 2005.04.26.22.28.01; author otaylor; state Exp; branches; next 1.527; commitid 5413426ec06d4567; 1.527 date 2005.04.26.20.05.51; author cworth; state Exp; branches; next 1.526; commitid 24b1426e9f184567; 1.526 date 2005.04.26.19.38.06; author cworth; state Exp; branches; next 1.525; commitid 1a30426e98924567; 1.525 date 2005.04.26.16.43.39; author cworth; state Exp; branches; next 1.524; commitid 5bab426e6fb44567; 1.524 date 2005.04.26.04.52.13; author krh; state Exp; branches; next 1.523; commitid 450a426dc8ee4567; 1.523 date 2005.04.26.04.36.38; author krh; state Exp; branches; next 1.522; commitid 42ac426dc54a4567; 1.522 date 2005.04.26.03.42.54; author krh; state Exp; branches; next 1.521; commitid 3a80426db8ae4567; 1.521 date 2005.04.26.02.38.44; author otaylor; state Exp; branches; next 1.520; commitid 2d04426da9af4567; 1.520 date 2005.04.23.18.58.18; author krh; state Exp; branches; next 1.519; commitid 159b426a9ac04567; 1.519 date 2005.04.23.00.32.12; author krh; state Exp; branches; next 1.518; commitid 1512426997644567; 1.518 date 2005.04.21.22.18.14; author krh; state Exp; branches; next 1.517; commitid 3c9e4268269d4567; 1.517 date 2005.04.19.23.29.04; author cworth; state Exp; branches; next 1.516; 1.516 date 2005.04.19.13.38.07; author cworth; state Exp; branches; next 1.515; 1.515 date 2005.04.18.23.26.14; author cworth; state Exp; branches; next 1.514; 1.514 date 2005.04.18.12.25.57; author cworth; state Exp; branches; next 1.513; 1.513 date 2005.04.14.22.02.47; author cworth; state Exp; branches; next 1.512; 1.512 date 2005.04.14.21.42.26; author cworth; state Exp; branches; next 1.511; 1.511 date 2005.04.14.21.02.03; author cworth; state Exp; branches; next 1.510; 1.510 date 2005.04.14.17.02.58; author cworth; state Exp; branches; next 1.509; 1.509 date 2005.04.14.16.31.21; author cworth; state Exp; branches; next 1.508; 1.508 date 2005.04.14.16.13.48; author cworth; state Exp; branches; next 1.507; 1.507 date 2005.04.14.13.05.59; author otaylor; state Exp; branches; next 1.506; 1.506 date 2005.04.13.21.51.59; author cworth; state Exp; branches; next 1.505; 1.505 date 2005.04.13.21.48.02; author cworth; state Exp; branches; next 1.504; 1.504 date 2005.04.13.21.45.05; author cworth; state Exp; branches; next 1.503; 1.503 date 2005.04.13.21.24.20; author cworth; state Exp; branches; next 1.502; 1.502 date 2005.04.13.21.03.17; author otaylor; state Exp; branches; next 1.501; 1.501 date 2005.04.13.21.01.50; author otaylor; state Exp; branches; next 1.500; 1.500 date 2005.04.13.18.23.43; author otaylor; state Exp; branches; next 1.499; 1.499 date 2005.04.12.20.24.48; author cworth; state Exp; branches; next 1.498; 1.498 date 2005.04.12.18.50.25; author cworth; state Exp; branches; next 1.497; 1.497 date 2005.04.12.16.14.14; author cworth; state Exp; branches; next 1.496; 1.496 date 2005.04.12.14.57.46; author cworth; state Exp; branches; next 1.495; 1.495 date 2005.04.12.14.12.08; author cworth; state Exp; branches; next 1.494; 1.494 date 2005.04.11.21.04.56; author cworth; state Exp; branches; next 1.493; 1.493 date 2005.04.11.18.30.28; author cworth; state Exp; branches; next 1.492; 1.492 date 2005.04.11.18.20.08; author cworth; state Exp; branches; next 1.491; 1.491 date 2005.04.11.16.18.51; author otaylor; state Exp; branches; next 1.490; 1.490 date 2005.04.08.21.06.32; author cworth; state Exp; branches; next 1.489; 1.489 date 2005.04.08.20.44.22; author cworth; state Exp; branches; next 1.488; 1.488 date 2005.04.08.20.14.17; author otaylor; state Exp; branches; next 1.487; 1.487 date 2005.04.08.19.42.28; author dajobe; state Exp; branches; next 1.486; 1.486 date 2005.04.08.17.03.17; author cworth; state Exp; branches; next 1.485; 1.485 date 2005.04.08.11.43.06; author cworth; state Exp; branches; next 1.484; 1.484 date 2005.04.07.22.00.46; author cworth; state Exp; branches; next 1.483; 1.483 date 2005.04.07.21.25.00; author cworth; state Exp; branches; next 1.482; 1.482 date 2005.04.07.20.29.32; author otaylor; state Exp; branches; next 1.481; 1.481 date 2005.04.07.19.56.43; author cworth; state Exp; branches; next 1.480; 1.480 date 2005.04.07.19.38.02; author otaylor; state Exp; branches; next 1.479; 1.479 date 2005.04.07.19.35.33; author cworth; state Exp; branches; next 1.478; 1.478 date 2005.04.07.19.33.06; author cworth; state Exp; branches; next 1.477; 1.477 date 2005.04.07.19.05.52; author cworth; state Exp; branches; next 1.476; 1.476 date 2005.04.07.18.18.40; author cworth; state Exp; branches; next 1.475; 1.475 date 2005.04.07.18.03.59; author otaylor; state Exp; branches; next 1.474; 1.474 date 2005.04.07.17.01.49; author cworth; state Exp; branches; next 1.473; 1.473 date 2005.04.06.20.01.13; author cworth; state Exp; branches; next 1.472; 1.472 date 2005.04.06.19.20.02; author cworth; state Exp; branches; next 1.471; 1.471 date 2005.04.04.16.47.12; author cworth; state Exp; branches; next 1.470; 1.470 date 2005.04.04.16.25.47; author cworth; state Exp; branches; next 1.469; 1.469 date 2005.04.04.13.49.19; author cworth; state Exp; branches; next 1.468; 1.468 date 2005.04.02.14.00.32; author cworth; state Exp; branches; next 1.467; 1.467 date 2005.04.02.13.18.11; author cworth; state Exp; branches; next 1.466; 1.466 date 2005.04.02.02.00.00; author cworth; state Exp; branches; next 1.465; 1.465 date 2005.03.31.21.25.44; author krh; state Exp; branches; next 1.464; 1.464 date 2005.03.30.22.00.31; author cworth; state Exp; branches; next 1.463; 1.463 date 2005.03.30.21.34.51; author cworth; state Exp; branches; next 1.462; 1.462 date 2005.03.30.17.31.49; author tor; state Exp; branches; next 1.461; 1.461 date 2005.03.29.19.54.01; author tor; state Exp; branches; next 1.460; 1.460 date 2005.03.29.19.48.58; author tor; state Exp; branches; next 1.459; 1.459 date 2005.03.29.19.24.10; author tor; state Exp; branches; next 1.458; 1.458 date 2005.03.29.08.02.19; author cworth; state Exp; branches; next 1.457; 1.457 date 2005.03.28.22.30.40; author cworth; state Exp; branches; next 1.456; 1.456 date 2005.03.28.22.06.40; author cworth; state Exp; branches; next 1.455; 1.455 date 2005.03.28.21.58.26; author krh; state Exp; branches; next 1.454; 1.454 date 2005.03.25.19.47.38; author jamey; state Exp; branches; next 1.453; 1.453 date 2005.03.23.22.36.29; author cworth; state Exp; branches; next 1.452; 1.452 date 2005.03.23.22.17.40; author cworth; state Exp; branches; next 1.451; 1.451 date 2005.03.23.22.02.36; author cworth; state Exp; branches; next 1.450; 1.450 date 2005.03.23.21.52.54; author cworth; state Exp; branches; next 1.449; 1.449 date 2005.03.23.21.52.11; author cworth; state Exp; branches; next 1.448; 1.448 date 2005.03.23.21.50.51; author cworth; state Exp; branches; next 1.447; 1.447 date 2005.03.23.21.49.32; author cworth; state Exp; branches; next 1.446; 1.446 date 2005.03.23.21.31.01; author cworth; state Exp; branches; next 1.445; 1.445 date 2005.03.21.07.23.19; author cworth; state Exp; branches; next 1.444; 1.444 date 2005.03.18.22.31.11; author cworth; state Exp; branches; next 1.443; 1.443 date 2005.03.18.22.28.53; author cworth; state Exp; branches; next 1.442; 1.442 date 2005.03.18.20.26.03; author krh; state Exp; branches; next 1.441; 1.441 date 2005.03.18.19.15.25; author cworth; state Exp; branches; next 1.440; 1.440 date 2005.03.17.21.27.26; author otaylor; state Exp; branches; next 1.439; 1.439 date 2005.03.17.21.13.56; author krh; state Exp; branches; next 1.438; 1.438 date 2005.03.17.20.57.42; author otaylor; state Exp; branches; next 1.437; 1.437 date 2005.03.17.19.24.00; author otaylor; state Exp; branches; next 1.436; 1.436 date 2005.03.17.15.32.28; author krh; state Exp; branches; next 1.435; 1.435 date 2005.03.16.20.15.29; author krh; state Exp; branches; next 1.434; 1.434 date 2005.03.16.20.08.41; author krh; state Exp; branches; next 1.433; 1.433 date 2005.03.16.00.25.30; author otaylor; state Exp; branches; next 1.432; 1.432 date 2005.03.14.19.49.12; author cworth; state Exp; branches; next 1.431; 1.431 date 2005.03.14.19.14.13; author cworth; state Exp; branches; next 1.430; 1.430 date 2005.03.11.22.29.15; author cworth; state Exp; branches; next 1.429; 1.429 date 2005.03.10.17.28.50; author krh; state Exp; branches; next 1.428; 1.428 date 2005.03.10.17.22.20; author krh; state Exp; branches; next 1.427; 1.427 date 2005.03.10.17.02.41; author cworth; state Exp; branches; next 1.426; 1.426 date 2005.03.10.16.59.11; author cworth; state Exp; branches; next 1.425; 1.425 date 2005.03.10.01.43.59; author cworth; state Exp; branches; next 1.424; 1.424 date 2005.03.09.21.58.20; author cworth; state Exp; branches; next 1.423; 1.423 date 2005.03.09.21.56.37; author cworth; state Exp; branches; next 1.422; 1.422 date 2005.03.09.20.53.01; author cworth; state Exp; branches; next 1.421; 1.421 date 2005.03.09.20.35.36; author cworth; state Exp; branches; next 1.420; 1.420 date 2005.03.09.03.34.04; author cworth; state Exp; branches; next 1.419; 1.419 date 2005.03.09.03.30.19; author cworth; state Exp; branches; next 1.418; 1.418 date 2005.03.09.03.25.39; author cworth; state Exp; branches; next 1.417; 1.417 date 2005.03.09.01.36.24; author cworth; state Exp; branches; next 1.416; 1.416 date 2005.03.08.21.44.14; author cworth; state Exp; branches; next 1.415; 1.415 date 2005.03.08.16.51.48; author cworth; state Exp; branches; next 1.414; 1.414 date 2005.03.08.05.22.42; author krh; state Exp; branches; next 1.413; 1.413 date 2005.03.07.22.23.07; author cworth; state Exp; branches; next 1.412; 1.412 date 2005.03.07.20.40.29; author cworth; state Exp; branches; next 1.411; 1.411 date 2005.03.06.20.05.23; author otaylor; state Exp; branches; next 1.410; 1.410 date 2005.03.06.13.16.19; author davidr; state Exp; branches; next 1.409; 1.409 date 2005.03.04.18.43.24; author otaylor; state Exp; branches; next 1.408; 1.408 date 2005.03.04.18.07.22; author cworth; state Exp; branches; next 1.407; 1.407 date 2005.03.04.17.41.34; author otaylor; state Exp; branches; next 1.406; 1.406 date 2005.03.04.04.16.23; author davidr; state Exp; branches; next 1.405; 1.405 date 2005.03.04.03.09.24; author davidr; state Exp; branches; next 1.404; 1.404 date 2005.03.04.02.55.28; author davidr; state Exp; branches; next 1.403; 1.403 date 2005.03.04.02.46.49; author davidr; state Exp; branches; next 1.402; 1.402 date 2005.03.04.02.39.06; author davidr; state Exp; branches; next 1.401; 1.401 date 2005.03.04.02.20.28; author davidr; state Exp; branches; next 1.400; 1.400 date 2005.03.04.02.04.51; author davidr; state Exp; branches; next 1.399; 1.399 date 2005.03.04.01.40.04; author davidr; state Exp; branches; next 1.398; 1.398 date 2005.03.01.23.04.48; author cworth; state Exp; branches; next 1.397; 1.397 date 2005.03.01.22.50.57; author cworth; state Exp; branches; next 1.396; 1.396 date 2005.02.27.19.21.39; author krh; state Exp; branches; next 1.395; 1.395 date 2005.02.27.19.02.48; author krh; state Exp; branches; next 1.394; 1.394 date 2005.02.25.22.06.19; author cworth; state Exp; branches; next 1.393; 1.393 date 2005.02.25.21.31.00; author cworth; state Exp; branches; next 1.392; 1.392 date 2005.02.25.21.03.42; author cworth; state Exp; branches; next 1.391; 1.391 date 2005.02.25.20.58.49; author cworth; state Exp; branches; next 1.390; 1.390 date 2005.02.25.20.52.47; author cworth; state Exp; branches; next 1.389; 1.389 date 2005.02.24.23.48.07; author otaylor; state Exp; branches; next 1.388; 1.388 date 2005.02.24.22.06.03; author cworth; state Exp; branches; next 1.387; 1.387 date 2005.02.24.20.51.33; author otaylor; state Exp; branches; next 1.386; 1.386 date 2005.02.24.20.30.23; author cworth; state Exp; branches; next 1.385; 1.385 date 2005.02.24.20.28.51; author cworth; state Exp; branches; next 1.384; 1.384 date 2005.02.24.18.09.44; author cworth; state Exp; branches; next 1.383; 1.383 date 2005.02.24.16.20.14; author otaylor; state Exp; branches; next 1.382; 1.382 date 2005.02.24.16.07.39; author cworth; state Exp; branches; next 1.381; 1.381 date 2005.02.24.15.39.20; author cworth; state Exp; branches; next 1.380; 1.380 date 2005.02.23.22.56.55; author cworth; state Exp; branches; next 1.379; 1.379 date 2005.02.22.19.35.03; author cworth; state Exp; branches; next 1.378; 1.378 date 2005.02.22.19.32.02; author cworth; state Exp; branches; next 1.377; 1.377 date 2005.02.22.18.43.27; author cworth; state Exp; branches; next 1.376; 1.376 date 2005.02.21.16.22.47; author cworth; state Exp; branches; next 1.375; 1.375 date 2005.02.21.16.18.48; author cworth; state Exp; branches; next 1.374; 1.374 date 2005.02.21.02.19.10; author otaylor; state Exp; branches; next 1.373; 1.373 date 2005.02.16.17.34.47; author krh; state Exp; branches; next 1.372; 1.372 date 2005.02.14.04.36.28; author krh; state Exp; branches; next 1.371; 1.371 date 2005.02.13.20.41.42; author krh; state Exp; branches; next 1.370; 1.370 date 2005.02.13.19.57.52; author cworth; state Exp; branches; next 1.369; 1.369 date 2005.02.13.02.23.04; author otaylor; state Exp; branches; next 1.368; 1.368 date 2005.02.12.21.01.39; author cworth; state Exp; branches; next 1.367; 1.367 date 2005.02.12.20.59.53; author krh; state Exp; branches; next 1.366; 1.366 date 2005.02.10.15.46.46; author cworth; state Exp; branches; next 1.365; 1.365 date 2005.02.07.18.15.46; author krh; state Exp; branches; next 1.364; 1.364 date 2005.02.07.17.38.43; author krh; state Exp; branches; next 1.363; 1.363 date 2005.02.06.23.07.17; author otaylor; state Exp; branches; next 1.362; 1.362 date 2005.02.06.20.00.28; author otaylor; state Exp; branches; next 1.361; 1.361 date 2005.02.06.05.42.47; author otaylor; state Exp; branches; next 1.360; 1.360 date 2005.02.06.01.17.19; author cworth; state Exp; branches; next 1.359; 1.359 date 2005.02.06.01.01.29; author otaylor; state Exp; branches; next 1.358; 1.358 date 2005.02.04.16.04.36; author cworth; state Exp; branches; next 1.357; 1.357 date 2005.02.03.23.24.35; author otaylor; state Exp; branches; next 1.356; 1.356 date 2005.02.03.14.19.51; author cworth; state Exp; branches; next 1.355; 1.355 date 2005.02.03.07.14.55; author otaylor; state Exp; branches; next 1.354; 1.354 date 2005.02.03.03.52.22; author otaylor; state Exp; branches; next 1.353; 1.353 date 2005.02.03.02.57.40; author otaylor; state Exp; branches; next 1.352; 1.352 date 2005.02.02.05.45.51; author otaylor; state Exp; branches; next 1.351; 1.351 date 2005.02.02.04.47.43; author krh; state Exp; branches; next 1.350; 1.350 date 2005.02.01.23.06.33; author otaylor; state Exp; branches; next 1.349; 1.349 date 2005.02.01.00.11.37; author otaylor; state Exp; branches; next 1.348; 1.348 date 2005.01.31.16.50.22; author otaylor; state Exp; branches; next 1.347; 1.347 date 2005.01.30.19.37.48; author otaylor; state Exp; branches; next 1.346; 1.346 date 2005.01.30.19.28.14; author otaylor; state Exp; branches; next 1.345; 1.345 date 2005.01.28.20.27.23; author krh; state Exp; branches; next 1.344; 1.344 date 2005.01.28.05.14.04; author krh; state Exp; branches; next 1.343; 1.343 date 2005.01.28.03.57.31; author krh; state Exp; branches; next 1.342; 1.342 date 2005.01.28.01.21.13; author krh; state Exp; branches; next 1.341; 1.341 date 2005.01.27.23.46.16; author otaylor; state Exp; branches; next 1.340; 1.340 date 2005.01.27.20.28.17; author krh; state Exp; branches; next 1.339; 1.339 date 2005.01.27.19.59.55; author krh; state Exp; branches; next 1.338; 1.338 date 2005.01.27.19.35.25; author otaylor; state Exp; branches; next 1.337; 1.337 date 2005.01.27.18.46.20; author krh; state Exp; branches; next 1.336; 1.336 date 2005.01.27.05.46.01; author krh; state Exp; branches; next 1.335; 1.335 date 2005.01.26.22.21.53; author krh; state Exp; branches; next 1.334; 1.334 date 2005.01.26.21.41.55; author krh; state Exp; branches; next 1.333; 1.333 date 2005.01.26.14.49.16; author alexl; state Exp; branches; next 1.332; 1.332 date 2005.01.25.20.25.29; author davidr; state Exp; branches; next 1.331; 1.331 date 2005.01.25.20.21.32; author davidr; state Exp; branches; next 1.330; 1.330 date 2005.01.25.20.11.02; author davidr; state Exp; branches; next 1.329; 1.329 date 2005.01.25.19.48.59; author cworth; state Exp; branches; next 1.328; 1.328 date 2005.01.25.18.56.50; author otaylor; state Exp; branches; next 1.327; 1.327 date 2005.01.25.14.50.33; author alexl; state Exp; branches; next 1.326; 1.326 date 2005.01.24.17.17.10; author cworth; state Exp; branches; next 1.325; 1.325 date 2005.01.24.17.10.51; author cworth; state Exp; branches; next 1.324; 1.324 date 2005.01.24.17.01.52; author cworth; state Exp; branches; next 1.323; 1.323 date 2005.01.23.23.16.57; author dajobe; state Exp; branches; next 1.322; 1.322 date 2005.01.23.20.49.56; author cworth; state Exp; branches; next 1.321; 1.321 date 2005.01.21.23.43.55; author otaylor; state Exp; branches; next 1.320; 1.320 date 2005.01.21.23.31.15; author otaylor; state Exp; branches; next 1.319; 1.319 date 2005.01.21.22.33.47; author otaylor; state Exp; branches; next 1.318; 1.318 date 2005.01.21.20.48.11; author cworth; state Exp; branches; next 1.317; 1.317 date 2005.01.21.19.27.56; author cworth; state Exp; branches; next 1.316; 1.316 date 2005.01.21.19.20.55; author cworth; state Exp; branches; next 1.315; 1.315 date 2005.01.21.04.45.38; author cworth; state Exp; branches; next 1.314; 1.314 date 2005.01.21.04.41.40; author cworth; state Exp; branches; next 1.313; 1.313 date 2005.01.20.16.28.54; author cworth; state Exp; branches; next 1.312; 1.312 date 2005.01.19.20.12.42; author cworth; state Exp; branches; next 1.311; 1.311 date 2005.01.19.19.39.06; author cworth; state Exp; branches; next 1.310; 1.310 date 2005.01.19.16.03.53; author krh; state Exp; branches; next 1.309; 1.309 date 2005.01.19.15.55.28; author cworth; state Exp; branches; next 1.308; 1.308 date 2005.01.19.15.11.14; author cworth; state Exp; branches; next 1.307; 1.307 date 2005.01.19.15.07.00; author cworth; state Exp; branches; next 1.306; 1.306 date 2005.01.19.13.32.32; author cworth; state Exp; branches; next 1.305; 1.305 date 2005.01.17.22.59.49; author krh; state Exp; branches; next 1.304; 1.304 date 2005.01.17.17.40.00; author krh; state Exp; branches; next 1.303; 1.303 date 2005.01.17.17.18.37; author krh; state Exp; branches; next 1.302; 1.302 date 2005.01.15.18.53.13; author keithp; state Exp; branches; next 1.301; 1.301 date 2005.01.13.22.54.14; author cworth; state Exp; branches; next 1.300; 1.300 date 2005.01.13.22.48.15; author davidr; state Exp; branches; next 1.299; 1.299 date 2005.01.13.14.50.23; author cworth; state Exp; branches; next 1.298; 1.298 date 2005.01.12.22.40.14; author cworth; state Exp; branches; next 1.297; 1.297 date 2005.01.11.22.52.16; author keithp; state Exp; branches; next 1.296; 1.296 date 2005.01.11.21.50.13; author pippin; state Exp; branches; next 1.295; 1.295 date 2005.01.11.21.36.41; author pippin; state Exp; branches; next 1.294; 1.294 date 2005.01.11.21.28.50; author pippin; state Exp; branches; next 1.293; 1.293 date 2005.01.11.18.03.01; author keithp; state Exp; branches; next 1.292; 1.292 date 2005.01.07.07.20.07; author krh; state Exp; branches; next 1.291; 1.291 date 2005.01.07.05.28.07; author cworth; state Exp; branches; next 1.290; 1.290 date 2005.01.06.18.28.10; author cworth; state Exp; branches; next 1.289; 1.289 date 2005.01.06.16.51.48; author cworth; state Exp; branches; next 1.288; 1.288 date 2005.01.06.01.46.31; author krh; state Exp; branches; next 1.287; 1.287 date 2005.01.05.22.29.31; author krh; state Exp; branches; next 1.286; 1.286 date 2004.12.23.21.49.56; author cworth; state Exp; branches; next 1.285; 1.285 date 2004.12.21.21.22.44; author cworth; state Exp; branches; next 1.284; 1.284 date 2004.12.21.21.14.45; author cworth; state Exp; branches; next 1.283; 1.283 date 2004.12.21.20.57.33; author cworth; state Exp; branches; next 1.282; 1.282 date 2004.12.20.20.22.50; author alexl; state Exp; branches; next 1.281; 1.281 date 2004.12.20.17.53.06; author cworth; state Exp; branches; next 1.280; 1.280 date 2004.12.20.17.43.59; author alexl; state Exp; branches; next 1.279; 1.279 date 2004.12.20.16.58.38; author cworth; state Exp; branches; next 1.278; 1.278 date 2004.12.20.16.56.50; author cworth; state Exp; branches; next 1.277; 1.277 date 2004.12.20.16.52.47; author cworth; state Exp; branches; next 1.276; 1.276 date 2004.12.20.16.08.29; author cworth; state Exp; branches; next 1.275; 1.275 date 2004.12.20.15.38.38; author cworth; state Exp; branches; next 1.274; 1.274 date 2004.12.20.15.32.45; author cworth; state Exp; branches; next 1.273; 1.273 date 2004.12.17.21.23.32; author cworth; state Exp; branches; next 1.272; 1.272 date 2004.12.17.19.31.05; author cworth; state Exp; branches; next 1.271; 1.271 date 2004.12.06.08.01.45; author pippin; state Exp; branches; next 1.270; 1.270 date 2004.12.02.00.27.18; author davidr; state Exp; branches; next 1.269; 1.269 date 2004.11.30.02.25.23; author cworth; state Exp; branches; next 1.268; 1.268 date 2004.11.29.22.11.26; author cworth; state Exp; branches; next 1.267; 1.267 date 2004.11.23.21.38.09; author cworth; state Exp; branches; next 1.266; 1.266 date 2004.11.23.20.53.46; author cworth; state Exp; branches; next 1.265; 1.265 date 2004.11.14.18.07.54; author cworth; state Exp; branches; next 1.264; 1.264 date 2004.11.14.03.46.18; author cworth; state Exp; branches; next 1.263; 1.263 date 2004.11.12.22.46.23; author pavlov; state Exp; branches; next 1.262; 1.262 date 2004.11.12.14.12.20; author cworth; state Exp; branches; next 1.261; 1.261 date 2004.11.11.20.15.12; author cworth; state Exp; branches; next 1.260; 1.260 date 2004.11.09.22.22.37; author cworth; state Exp; branches; next 1.259; 1.259 date 2004.11.08.22.15.31; author dajobe; state Exp; branches; next 1.258; 1.258 date 2004.11.08.22.08.16; author dajobe; state Exp; branches; next 1.257; 1.257 date 2004.11.08.21.33.42; author dajobe; state Exp; branches; next 1.256; 1.256 date 2004.11.05.18.57.50; author graydon; state Exp; branches; next 1.255; 1.255 date 2004.11.04.22.23.50; author cworth; state Exp; branches; next 1.254; 1.254 date 2004.11.03.23.28.37; author davidr; state Exp; branches; next 1.253; 1.253 date 2004.11.03.23.05.24; author davidr; state Exp; branches; next 1.252; 1.252 date 2004.11.01.15.58.27; author oandrieu; state Exp; branches; next 1.251; 1.251 date 2004.10.28.15.36.42; author cworth; state Exp; branches; next 1.250; 1.250 date 2004.10.27.20.19.39; author cworth; state Exp; branches; next 1.249; 1.249 date 2004.10.27.20.13.39; author cworth; state Exp; branches; next 1.248; 1.248 date 2004.10.27.18.59.56; author cworth; state Exp; branches; next 1.247; 1.247 date 2004.10.27.18.42.45; author cworth; state Exp; branches; next 1.246; 1.246 date 2004.10.27.17.48.58; author cworth; state Exp; branches; next 1.245; 1.245 date 2004.10.27.01.19.55; author cworth; state Exp; branches; next 1.244; 1.244 date 2004.10.26.23.59.22; author cworth; state Exp; branches; next 1.243; 1.243 date 2004.10.26.23.31.31; author cworth; state Exp; branches; next 1.242; 1.242 date 2004.10.26.21.38.43; author cworth; state Exp; branches; next 1.241; 1.241 date 2004.10.22.01.40.50; author cworth; state Exp; branches; next 1.240; 1.240 date 2004.10.22.01.26.25; author cworth; state Exp; branches; next 1.239; 1.239 date 2004.10.21.15.55.46; author cworth; state Exp; branches; next 1.238; 1.238 date 2004.10.21.15.31.21; author cworth; state Exp; branches; next 1.237; 1.237 date 2004.10.13.15.18.38; author cworth; state Exp; branches; next 1.236; 1.236 date 2004.10.12.21.17.23; author keithp; state Exp; branches; next 1.235; 1.235 date 2004.10.12.21.09.37; author cworth; state Exp; branches; next 1.234; 1.234 date 2004.10.12.19.29.29; author keithp; state Exp; branches; next 1.233; 1.233 date 2004.10.08.19.09.49; author graydon; state Exp; branches; next 1.232; 1.232 date 2004.10.04.11.55.46; author davidr; state Exp; branches; next 1.231; 1.231 date 2004.09.30.20.34.19; author jamey; state Exp; branches; next 1.230; 1.230 date 2004.09.20.05.11.04; author davidr; state Exp; branches; next 1.229; 1.229 date 2004.09.15.16.55.40; author davidr; state Exp; branches; next 1.228; 1.228 date 2004.09.12.22.34.00; author davidr; state Exp; branches; next 1.227; 1.227 date 2004.09.12.12.09.32; author davidr; state Exp; branches; next 1.226; 1.226 date 2004.09.12.02.05.46; author davidr; state Exp; branches; next 1.225; 1.225 date 2004.09.11.20.29.59; author cworth; state Exp; branches; next 1.224; 1.224 date 2004.09.11.14.59.27; author davidr; state Exp; branches; next 1.223; 1.223 date 2004.09.11.11.23.17; author davidr; state Exp; branches; next 1.222; 1.222 date 2004.09.04.14.29.16; author cworth; state Exp; branches; next 1.221; 1.221 date 2004.09.04.13.38.34; author cworth; state Exp; branches; next 1.220; 1.220 date 2004.08.14.14.21.54; author cworth; state Exp; branches; next 1.219; 1.219 date 2004.08.14.13.35.30; author cworth; state Exp; branches; next 1.218; 1.218 date 2004.08.03.18.49.20; author cworth; state Exp; branches; next 1.217; 1.217 date 2004.08.03.00.04.00; author cworth; state Exp; branches; next 1.216; 1.216 date 2004.08.02.20.13.28; author cworth; state Exp; branches; next 1.215; 1.215 date 2004.08.02.18.51.57; author cworth; state Exp; branches; next 1.214; 1.214 date 2004.08.02.06.03.02; author pippin; state Exp; branches; next 1.213; 1.213 date 2004.07.25.02.30.05; author jamey; state Exp; branches; next 1.212; 1.212 date 2004.07.20.08.39.23; author davidr; state Exp; branches; next 1.211; 1.211 date 2004.07.16.17.25.31; author davidr; state Exp; branches; next 1.210; 1.210 date 2004.07.15.20.38.21; author davidr; state Exp; branches; next 1.209; 1.209 date 2004.07.12.01.51.55; author cworth; state Exp; branches; next 1.208; 1.208 date 2004.07.09.20.47.46; author cworth; state Exp; branches; next 1.207; 1.207 date 2004.07.09.16.16.41; author dajobe; state Exp; branches; next 1.206; 1.206 date 2004.07.05.16.17.22; author cworth; state Exp; branches; next 1.205; 1.205 date 2004.07.01.20.38.23; author cworth; state Exp; branches; next 1.204; 1.204 date 2004.06.21.22.13.52; author davidr; state Exp; branches; next 1.203; 1.203 date 2004.06.17.01.16.04; author keithp; state Exp; branches; next 1.202; 1.202 date 2004.06.11.15.08.27; author davidr; state Exp; branches; next 1.201; 1.201 date 2004.06.11.13.20.17; author davidr; state Exp; branches; next 1.200; 1.200 date 2004.05.28.19.37.15; author keithp; state Exp; branches; next 1.199; 1.199 date 2004.05.24.09.44.59; author davidr; state Exp; branches; next 1.198; 1.198 date 2004.05.24.09.28.05; author davidr; state Exp; branches; next 1.197; 1.197 date 2004.05.20.23.42.56; author graydon; state Exp; branches; next 1.196; 1.196 date 2004.05.17.15.03.17; author cworth; state Exp; branches; next 1.195; 1.195 date 2004.05.11.20.59.09; author pippin; state Exp; branches; next 1.194; 1.194 date 2004.05.11.18.20.06; author davidr; state Exp; branches; next 1.193; 1.193 date 2004.05.11.15.19.47; author cworth; state Exp; branches; next 1.192; 1.192 date 2004.05.11.13.52.19; author cworth; state Exp; branches; next 1.191; 1.191 date 2004.05.11.12.31.16; author davidr; state Exp; branches; next 1.190; 1.190 date 2004.05.08.01.52.01; author cworth; state Exp; branches; next 1.189; 1.189 date 2004.05.04.19.00.22; author cworth; state Exp; branches; next 1.188; 1.188 date 2004.05.04.16.25.54; author cworth; state Exp; branches; next 1.187; 1.187 date 2004.05.04.11.01.18; author davidr; state Exp; branches; next 1.186; 1.186 date 2004.05.01.12.50.46; author davidr; state Exp; branches; next 1.185; 1.185 date 2004.04.30.05.09.05; author cworth; state Exp; branches; next 1.184; 1.184 date 2004.04.30.03.26.56; author davidr; state Exp; branches; next 1.183; 1.183 date 2004.04.28.09.14.23; author davidr; state Exp; branches; next 1.182; 1.182 date 2004.04.25.12.11.07; author davidr; state Exp; branches; next 1.181; 1.181 date 2004.04.25.11.02.37; author davidr; state Exp; branches; next 1.180; 1.180 date 2004.04.23.17.08.53; author cworth; state Exp; branches; next 1.179; 1.179 date 2004.04.22.09.22.36; author davidr; state Exp; branches; next 1.178; 1.178 date 2004.04.20.19.35.44; author davidr; state Exp; branches; next 1.177; 1.177 date 2004.04.16.15.56.45; author cworth; state Exp; branches; next 1.176; 1.176 date 2004.04.16.15.33.20; author cworth; state Exp; branches; next 1.175; 1.175 date 2004.04.09.21.30.38; author davidr; state Exp; branches; next 1.174; 1.174 date 2004.04.09.21.19.47; author davidr; state Exp; branches; next 1.173; 1.173 date 2004.04.09.21.14.56; author davidr; state Exp; branches; next 1.172; 1.172 date 2004.04.07.03.13.11; author cworth; state Exp; branches; next 1.171; 1.171 date 2004.04.06.16.36.12; author davidr; state Exp; branches; next 1.170; 1.170 date 2004.04.02.16.01.09; author cworth; state Exp; branches; next 1.169; 1.169 date 2004.03.31.02.55.48; author cworth; state Exp; branches; next 1.168; 1.168 date 2004.03.31.02.45.00; author cworth; state Exp; branches; next 1.167; 1.167 date 2004.03.31.01.49.30; author cworth; state Exp; branches; next 1.166; 1.166 date 2004.03.31.01.24.29; author cworth; state Exp; branches; next 1.165; 1.165 date 2004.03.23.18.33.32; author oandrieu; state Exp; branches; next 1.164; 1.164 date 2004.03.20.17.54.15; author dajobe; state Exp; branches; next 1.163; 1.163 date 2004.03.20.16.20.40; author dajobe; state Exp; branches; next 1.162; 1.162 date 2004.03.19.23.47.25; author graydon; state Exp; branches; next 1.161; 1.161 date 2004.03.17.17.44.26; author jamey; state Exp; branches; next 1.160; 1.160 date 2004.02.26.16.55.03; author cworth; state Exp; branches; next 1.159; 1.159 date 2004.02.26.16.54.42; author cworth; state Exp; branches; next 1.158; 1.158 date 2004.02.24.20.29.25; author oandrieu; state Exp; branches; next 1.157; 1.157 date 2004.02.24.18.45.26; author cworth; state Exp; branches; next 1.156; 1.156 date 2004.02.18.02.47.34; author cworth; state Exp; branches; next 1.155; 1.155 date 2004.02.18.02.38.23; author cworth; state Exp; branches; next 1.154; 1.154 date 2004.02.13.14.13.19; author cworth; state Exp; branches; next 1.153; 1.153 date 2004.02.13.03.02.33; author cworth; state Exp; branches; next 1.152; 1.152 date 2004.02.03.07.24.14; author jamey; state Exp; branches; next 1.151; 1.151 date 2004.02.02.19.20.44; author graydon; state Exp; branches; next 1.150; 1.150 date 2004.01.30.22.44.18; author graydon; state Exp; branches; next 1.149; 1.149 date 2004.01.24.09.56.26; author cworth; state Exp; branches; next 1.148; 1.148 date 2004.01.24.09.46.20; author cworth; state Exp; branches; next 1.147; 1.147 date 2004.01.23.04.47.24; author rworth; state Exp; branches; next 1.146; 1.146 date 2003.12.17.20.59.37; author cworth; state Exp; branches; next 1.145; 1.145 date 2003.12.16.17.42.19; author dajobe; state Exp; branches; next 1.144; 1.144 date 2003.12.16.16.27.17; author cworth; state Exp; branches; next 1.143; 1.143 date 2003.12.16.16.06.49; author cworth; state Exp; branches; next 1.142; 1.142 date 2003.12.16.15.20.20; author cworth; state Exp; branches; next 1.141; 1.141 date 2003.12.16.15.10.48; author cworth; state Exp; branches; next 1.140; 1.140 date 2003.12.16.14.58.10; author cworth; state Exp; branches; next 1.139; 1.139 date 2003.12.16.14.50.37; author cworth; state Exp; branches; next 1.138; 1.138 date 2003.12.16.14.16.06; author cworth; state Exp; branches; next 1.137; 1.137 date 2003.12.16.03.00.15; author cworth; state Exp; branches; next 1.136; 1.136 date 2003.12.16.02.26.51; author cworth; state Exp; branches; next 1.135; 1.135 date 2003.12.16.02.02.03; author cworth; state Exp; branches; next 1.134; 1.134 date 2003.12.16.01.26.25; author cworth; state Exp; branches; next 1.133; 1.133 date 2003.12.15.22.20.56; author cworth; state Exp; branches; next 1.132; 1.132 date 2003.12.13.00.00.19; author dajobe; state Exp; branches; next 1.131; 1.131 date 2003.12.12.20.00.50; author cworth; state Exp; branches; next 1.130; 1.130 date 2003.12.12.19.44.16; author cworth; state Exp; branches; next 1.129; 1.129 date 2003.12.12.19.02.07; author cworth; state Exp; branches; next 1.128; 1.128 date 2003.12.11.21.04.39; author cworth; state Exp; branches; next 1.127; 1.127 date 2003.12.11.20.43.58; author cworth; state Exp; branches; next 1.126; 1.126 date 2003.12.11.19.12.59; author chant; state Exp; branches; next 1.125; 1.125 date 2003.12.11.18.01.10; author cworth; state Exp; branches; next 1.124; 1.124 date 2003.12.11.17.35.07; author cworth; state Exp; branches; next 1.123; 1.123 date 2003.12.11.15.03.41; author cworth; state Exp; branches; next 1.122; 1.122 date 2003.12.09.01.39.32; author cworth; state Exp; branches; next 1.121; 1.121 date 2003.12.08.21.38.26; author cworth; state Exp; branches; next 1.120; 1.120 date 2003.12.08.20.31.22; author cworth; state Exp; branches; next 1.119; 1.119 date 2003.12.05.18.47.42; author cworth; state Exp; branches; next 1.118; 1.118 date 2003.12.05.18.30.39; author cworth; state Exp; branches; next 1.117; 1.117 date 2003.12.05.16.53.07; author cworth; state Exp; branches; next 1.116; 1.116 date 2003.12.03.20.27.44; author cworth; state Exp; branches; next 1.115; 1.115 date 2003.12.03.15.14.59; author cworth; state Exp; branches; next 1.114; 1.114 date 2003.12.01.18.59.57; author keithp; state Exp; branches; next 1.113; 1.113 date 2003.11.21.14.22.02; author cworth; state Exp; branches; next 1.112; 1.112 date 2003.11.18.21.21.29; author cworth; state Exp; branches; next 1.111; 1.111 date 2003.11.18.15.28.16; author james; state Exp; branches; next 1.110; 1.110 date 2003.11.18.14.18.05; author cworth; state Exp; branches; next 1.109; 1.109 date 2003.11.17.15.04.15; author cworth; state Exp; branches; next 1.108; 1.108 date 2003.11.10.16.16.34; author cworth; state Exp; branches; next 1.107; 1.107 date 2003.11.07.19.03.09; author cworth; state Exp; branches; next 1.106; 1.106 date 2003.11.07.02.33.28; author cworth; state Exp; branches; next 1.105; 1.105 date 2003.11.06.20.53.39; author cworth; state Exp; branches; next 1.104; 1.104 date 2003.11.04.18.46.45; author cworth; state Exp; branches; next 1.103; 1.103 date 2003.11.04.16.58.53; author cworth; state Exp; branches; next 1.102; 1.102 date 2003.11.04.16.36.03; author cworth; state Exp; branches; next 1.101; 1.101 date 2003.11.04.16.33.45; author cworth; state Exp; branches; next 1.100; 1.100 date 2003.11.04.03.17.31; author cworth; state Exp; branches; next 1.99; 1.99 date 2003.11.04.02.24.45; author cworth; state Exp; branches; next 1.98; 1.98 date 2003.11.03.21.44.53; author cworth; state Exp; branches; next 1.97; 1.97 date 2003.11.01.05.56.14; author cworth; state Exp; branches; next 1.96; 1.96 date 2003.11.01.05.30.35; author cworth; state Exp; branches; next 1.95; 1.95 date 2003.11.01.03.27.33; author cworth; state Exp; branches; next 1.94; 1.94 date 2003.10.31.18.41.37; author cworth; state Exp; branches; next 1.93; 1.93 date 2003.10.31.02.39.20; author cworth; state Exp; branches; next 1.92; 1.92 date 2003.10.30.20.39.49; author cworth; state Exp; branches; next 1.91; 1.91 date 2003.10.30.18.55.16; author cworth; state Exp; branches; next 1.90; 1.90 date 2003.10.30.18.55.04; author cworth; state Exp; branches; next 1.89; 1.89 date 2003.10.29.01.32.44; author cworth; state Exp; branches; next 1.88; 1.88 date 2003.10.28.20.18.29; author cworth; state Exp; branches; next 1.87; 1.87 date 2003.10.28.20.15.03; author cworth; state Exp; branches; next 1.86; 1.86 date 2003.10.28.20.13.35; author cworth; state Exp; branches; next 1.85; 1.85 date 2003.10.28.02.40.55; author cworth; state Exp; branches; next 1.84; 1.84 date 2003.10.28.02.32.44; author cworth; state Exp; branches; next 1.83; 1.83 date 2003.10.24.21.43.58; author keithp; state Exp; branches; next 1.82; 1.82 date 2003.10.24.18.01.37; author cworth; state Exp; branches; next 1.81; 1.81 date 2003.10.24.17.01.34; author cworth; state Exp; branches; next 1.80; 1.80 date 2003.10.23.22.22.28; author graydon; state Exp; branches; next 1.79; 1.79 date 2003.10.23.14.51.41; author cworth; state Exp; branches; next 1.78; 1.78 date 2003.10.23.14.47.29; author cworth; state Exp; branches; next 1.77; 1.77 date 2003.10.11.20.49.13; author cworth; state Exp; branches; next 1.76; 1.76 date 2003.10.10.03.10.36; author cworth; state Exp; branches; next 1.75; 1.75 date 2003.10.04.21.34.42; author cworth; state Exp; branches; next 1.74; 1.74 date 2003.10.04.16.06.15; author cworth; state Exp; branches; next 1.73; 1.73 date 2003.10.02.00.34.19; author cworth; state Exp; branches; next 1.72; 1.72 date 2003.10.01.01.56.22; author jamey; state Exp; branches; next 1.71; 1.71 date 2003.09.30.21.15.28; author cworth; state Exp; branches; next 1.70; 1.70 date 2003.09.30.20.15.09; author cworth; state Exp; branches; next 1.69; 1.69 date 2003.09.30.18.39.07; author cworth; state Exp; branches; next 1.68; 1.68 date 2003.09.30.14.58.58; author cworth; state Exp; branches; next 1.67; 1.67 date 2003.09.29.18.55.56; author cworth; state Exp; branches; next 1.66; 1.66 date 2003.09.29.15.36.29; author cworth; state Exp; branches; next 1.65; 1.65 date 2003.09.27.12.08.38; author cworth; state Exp; branches; next 1.64; 1.64 date 2003.09.27.12.00.47; author cworth; state Exp; branches; next 1.63; 1.63 date 2003.09.25.22.01.28; author cworth; state Exp; branches; next 1.62; 1.62 date 2003.09.25.15.01.38; author cworth; state Exp; branches; next 1.61; 1.61 date 2003.09.16.17.28.46; author cworth; state Exp; branches; next 1.60; 1.60 date 2003.09.16.13.45.19; author cworth; state Exp; branches; next 1.59; 1.59 date 2003.09.15.20.17.32; author cworth; state Exp; branches; next 1.58; 1.58 date 2003.09.15.14.55.10; author cworth; state Exp; branches; next 1.57; 1.57 date 2003.09.15.14.29.44; author cworth; state Exp; branches; next 1.56; 1.56 date 2003.09.10.00.38.10; author cworth; state Exp; branches; next 1.55; 1.55 date 2003.09.05.22.29.49; author cworth; state Exp; branches; next 1.54; 1.54 date 2003.09.05.20.25.46; author keithp; state Exp; branches; next 1.53; 1.53 date 2003.09.05.15.35.08; author cworth; state Exp; branches; next 1.52; 1.52 date 2003.09.05.14.16.45; author cworth; state Exp; branches; next 1.51; 1.51 date 2003.09.04.23.27.34; author cworth; state Exp; branches; next 1.50; 1.50 date 2003.09.04.18.54.09; author keithp; state Exp; branches; next 1.49; 1.49 date 2003.09.04.13.53.02; author cworth; state Exp; branches; next 1.48; 1.48 date 2003.09.04.13.52.01; author cworth; state Exp; branches; next 1.47; 1.47 date 2003.09.03.14.14.18; author cworth; state Exp; branches; next 1.46; 1.46 date 2003.08.30.00.57.08; author cworth; state Exp; branches; next 1.45; 1.45 date 2003.08.30.00.49.02; author cworth; state Exp; branches; next 1.44; 1.44 date 2003.08.28.21.12.08; author keithp; state Exp; branches; next 1.43; 1.43 date 2003.08.26.14.40.17; author cworth; state Exp; branches; next 1.42; 1.42 date 2003.08.26.14.14.40; author cworth; state Exp; branches; next 1.41; 1.41 date 2003.08.01.05.49.09; author rth; state Exp; branches; next 1.40; 1.40 date 2003.08.01.05.41.44; author rth; state Exp; branches; next 1.39; 1.39 date 2003.07.30.18.21.54; author cworth; state Exp; branches; next 1.38; 1.38 date 2003.07.30.17.48.27; author cworth; state Exp; branches; next 1.37; 1.37 date 2003.07.30.15.30.50; author cworth; state Exp; branches; next 1.36; 1.36 date 2003.07.25.20.29.07; author cworth; state Exp; branches; next 1.35; 1.35 date 2003.07.24.08.40.16; author cworth; state Exp; branches; next 1.34; 1.34 date 2003.07.24.04.20.24; author cworth; state Exp; branches; next 1.33; 1.33 date 2003.07.19.21.02.43; author cworth; state Exp; branches; next 1.32; 1.32 date 2003.07.18.19.42.49; author cworth; state Exp; branches; next 1.31; 1.31 date 2003.07.18.18.34.19; author cworth; state Exp; branches; next 1.30; 1.30 date 2003.07.03.15.22.44; author cworth; state Exp; branches; next 1.29; 1.29 date 2003.07.03.15.12.51; author cworth; state Exp; branches; next 1.28; 1.28 date 2003.06.12.06.43.29; author cworth; state Exp; branches; next 1.27; 1.27 date 2003.05.29.02.28.53; author cworth; state Exp; branches; next 1.26; 1.26 date 2003.05.16.04.16.26; author cworth; state Exp; branches; next 1.25; 1.25 date 2003.05.15.04.59.42; author cworth; state Exp; branches; next 1.24; 1.24 date 2003.05.15.01.30.57; author cworth; state Exp; branches; next 1.23; 1.23 date 2003.05.12.16.46.57; author cworth; state Exp; branches; next 1.22; 1.22 date 2003.05.12.16.24.17; author cworth; state Exp; branches; next 1.21; 1.21 date 2003.05.02.21.07.41; author cworth; state Exp; branches; next 1.20; 1.20 date 2003.05.01.15.18.25; author cworth; state Exp; branches; next 1.19; 1.19 date 2003.04.25.20.34.00; author cworth; state Exp; branches; next 1.18; 1.18 date 2003.04.17.20.24.29; author cworth; state Exp; branches; next 1.17; 1.17 date 2003.02.14.15.22.19; author cworth; state Exp; branches; next 1.16; 1.16 date 2003.02.06.16.06.28; author cworth; state Exp; branches; next 1.15; 1.15 date 2003.01.28.21.49.57; author cworth; state Exp; branches; next 1.14; 1.14 date 2003.01.28.15.23.54; author cworth; state Exp; branches; next 1.13; 1.13 date 2003.01.24.21.52.01; author cworth; state Exp; branches; next 1.12; 1.12 date 2002.12.03.20.37.59; author cworth; state Exp; branches; next 1.11; 1.11 date 2002.11.11.20.46.17; author cworth; state Exp; branches; next 1.10; 1.10 date 2002.11.04.08.24.44; author cworth; state Exp; branches; next 1.9; 1.9 date 2002.11.02.18.24.12; author cworth; state Exp; branches; next 1.8; 1.8 date 2002.11.02.03.45.30; author cworth; state Exp; branches; next 1.7; 1.7 date 2002.10.31.05.54.50; author cworth; state Exp; branches; next 1.6; 1.6 date 2002.10.30.01.27.01; author cworth; state Exp; branches; next 1.5; 1.5 date 2002.10.28.17.00.10; author cworth; state Exp; branches; next 1.4; 1.4 date 2002.10.26.14.59.31; author cworth; state Exp; branches; next 1.3; 1.3 date 2002.10.24.18.27.29; author cworth; state Exp; branches; next 1.2; 1.2 date 2002.10.24.01.30.53; author cworth; state Exp; branches; next 1.1; 1.1 date 2002.07.23.14.22.56; author cworth; state Exp; branches; next ; 1.1026.2.1 date 2005.08.31.22.09.43; author otaylor; state Exp; branches; next 1.1026.2.2; commitid 1bea43162aa44567; 1.1026.2.2 date 2005.08.31.23.15.53; author cworth; state Exp; branches; next 1.1026.2.3; commitid 3b4e43163a264567; 1.1026.2.3 date 2005.09.01.09.17.37; author cworth; state Exp; branches; next 1.1026.2.4; commitid 40a04316c72e4567; 1.1026.2.4 date 2005.09.12.18.11.48; author cworth; state Exp; branches; next 1.1026.2.5; commitid 7fc64325c4e24567; 1.1026.2.5 date 2005.09.13.19.20.15; author cworth; state Exp; branches; next 1.1026.2.6; commitid 226d4327266d4567; 1.1026.2.6 date 2005.09.13.19.28.00; author cworth; state Exp; branches; next 1.1026.2.7; commitid 293f4327283d4567; 1.1026.2.7 date 2005.09.13.19.38.06; author cworth; state Exp; branches; next 1.1026.2.8; commitid 32f043272a9b4567; 1.1026.2.8 date 2005.09.13.22.41.16; author cworth; state Exp; branches; next 1.1026.2.9; commitid 3c73432755894567; 1.1026.2.9 date 2005.09.16.17.25.40; author cworth; state Exp; branches; next 1.1026.2.10; commitid 6fb8432b00114567; 1.1026.2.10 date 2005.09.19.02.56.32; author vektor; state Exp; branches; next 1.1026.2.11; commitid 782432e28cb4567; 1.1026.2.11 date 2005.09.19.21.28.39; author cworth; state Exp; branches; next 1.1026.2.12; commitid 4fcc432f2d844567; 1.1026.2.12 date 2005.09.20.00.27.22; author cworth; state Exp; branches; next 1.1026.2.13; commitid 2b72432f57674567; 1.1026.2.13 date 2005.09.20.15.23.20; author tor; state Exp; branches; next 1.1026.2.14; commitid 22a34330295d4567; 1.1026.2.14 date 2005.09.26.16.05.14; author tml; state Exp; branches; next 1.1026.2.15; commitid 23a843381c2c4567; 1.1026.2.15 date 2005.09.26.16.09.37; author tml; state Exp; branches; next 1.1026.2.16; commitid 265543381d0d4567; 1.1026.2.16 date 2005.09.26.22.43.17; author cworth; state Exp; branches; next 1.1026.2.17; commitid c57433879824567; 1.1026.2.17 date 2005.09.26.22.48.06; author cworth; state Exp; branches; next 1.1026.2.18; commitid 108e43387aa34567; 1.1026.2.18 date 2005.09.27.18.35.48; author cworth; state Exp; branches; next 1.1026.2.19; commitid 4199433991034567; 1.1026.2.19 date 2005.09.27.19.51.00; author cworth; state Exp; branches; next 1.1026.2.20; commitid 7acc4339a2a14567; 1.1026.2.20 date 2005.09.27.20.25.06; author tor; state Exp; branches; next 1.1026.2.21; commitid ff84339aa954567; 1.1026.2.21 date 2005.09.28.17.27.39; author tor; state Exp; branches; next 1.1026.2.22; commitid 4e0b433ad2824567; 1.1026.2.22 date 2005.09.28.17.37.40; author tor; state Exp; branches; next 1.1026.2.23; commitid 5454433ad4da4567; 1.1026.2.23 date 2005.09.30.00.28.54; author inte; state Exp; branches; next 1.1026.2.24; commitid 493f433c86b04567; 1.1026.2.24 date 2005.09.30.00.35.34; author inte; state Exp; branches; next 1.1026.2.25; commitid 4bbf433c88404567; 1.1026.2.25 date 2005.09.30.03.03.15; author inte; state Exp; branches; next 1.1026.2.26; commitid 28d433caada4567; 1.1026.2.26 date 2005.10.04.00.48.04; author cworth; state Exp; branches; next 1.1026.2.27; commitid 724b4341d1414567; 1.1026.2.27 date 2005.10.04.04.56.24; author cworth; state Exp; branches; next 1.1026.2.28; commitid 511543420b754567; 1.1026.2.28 date 2005.10.04.04.59.01; author cworth; state Exp; branches; next 1.1026.2.29; commitid 521b43420c124567; 1.1026.2.29 date 2005.10.04.20.49.33; author andersca; state Exp; branches; next 1.1026.2.30; commitid 386b4342eacd4567; 1.1026.2.30 date 2005.10.06.18.34.46; author cworth; state Exp; branches; next 1.1026.2.31; commitid 6a9443456e434567; 1.1026.2.31 date 2005.10.08.17.58.11; author cworth; state Exp; branches; next 1.1026.2.32; commitid 36c434808ac4567; 1.1026.2.32 date 2005.10.10.18.33.18; author tor; state Exp; branches; next 1.1026.2.33; commitid 87f434ab3cd4567; 1.1026.2.33 date 2005.10.12.22.06.44; author tor; state Exp; branches; next 1.1026.2.34; commitid b2d434d88e64567; 1.1026.2.34 date 2005.11.18.18.17.29; author cworth; state Exp; branches; next 1.1026.2.35; commitid 3a4e437e1ab64567; 1.1026.2.35 date 2005.11.21.19.49.34; author cworth; state Exp; branches; next 1.1026.2.36; commitid 5908438224cb4567; 1.1026.2.36 date 2005.12.07.19.45.15; author cworth; state Exp; branches; next ; commitid 274443973bc84567; desc @@ 1.1248 log @2006-02-13 Emmanuel Pacaud * src/cairo-svg-surface.c: convert _cairo_svg_surface_old_show_glyphs to _cairo_svg_surface_show_glyphs. @ text @2006-02-13 Emmanuel Pacaud * src/cairo-svg-surface.c: convert _cairo_svg_surface_old_show_glyphs to _cairo_svg_surface_show_glyphs. 2006-02-13 Emmanuel Pacaud Add mask support and switch to SVG 1.2 for compositing operators. * src/cairo-svg-surface.c (emit_composite_image_pattern): return xml node instead of cairo status. (emit_composite_svg_pattern): ditto. (emit_composite_pattern): ditto. (emit_operator): use SVG 1.2 operators, since feComposite filter always composite resulting surface to current canvas. (_cairo_svg_surface_composite): removed. (_cairo_svg_surface_fill_rectangles): removed. (intersect): removed. (_cairo_svg_surface_composite_trapezoids): removed. (emit_paint): new. (_cairo_svg_surface_paint): new. (_cairo_svg_surface_mask): new. (_cairo_svg_surface_stroke): emit operator. 2006-02-11 Christian Biesinger * doc/public/cairo-docs.xml: * doc/public/cairo-sections.txt: * doc/public/language-bindings.xml: * doc/public/tmpl/cairo-beos.sgml: Adds the BeOS surface functions to the list of functions for which to generate documentation. 2006-01-29 Emmanuel Pacaud * test/cairo-test.c (create_svg_surface): fix filename. * test/.cvsignore: shh! 2006-01-29 Emmanuel Pacaud * src/cairo-svg-surface.c (emit_pattern_stops): fix offset of pattern stops. 2006-01-26 Keith Packard * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo-large-content.svg: * doc/tutorial/slides/cairo-separator.svg: * doc/tutorial/slides/cairo-title.svg: * doc/tutorial/slides/cairo.svg: Make watermark consistently translucent Use fill for dung outline Fix text locations 2006-01-26 Carl Worth * doc/tutorial/src/include/cairo-tutorial-gtk.h: Add a CONTROL-Q keybinding to quit. 2006-01-26 Keith Packard reviewed by: cworth * doc/tutorial/slides/cairo-blank.svg: * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo-large-content.svg: * doc/tutorial/slides/cairo-separator.svg: * doc/tutorial/slides/cairo-title.svg: * doc/tutorial/slides/cairo.svg: * doc/tutorial/slides/tutorial.xml: Adopt proposed new cairo color scheme. Recolor scarab, eliminate gradient in dung Use new blue background color. Rework font sizes, use bold for titles. Change tutorial title. 2006-01-26 Carl Worth * doc/tutorial/slides/cairo-blank.svg: Shrink the font size to make the tutorial instructions fit. * doc/tutorial/slides/tutorial.xml: Format text to solve all problematic line wrapping. * doc/tutorial/src/README: Add my name to the README. 2006-01-26 Carl Worth * doc/tutorial/src/cairo-tutorial.h: * doc/tutorial/src/cairo-tutorial-gtk.h: * doc/tutorial/src/cairo-tutorial-pdf.h: * doc/tutorial/src/cairo-tutorial-png.h: * doc/tutorial/src/cairo-tutorial-xlib.h: * doc/tutorial/src/include/cairo-tutorial.h: * doc/tutorial/src/include/cairo-tutorial-gtk.h: * doc/tutorial/src/include/cairo-tutorial-pdf.h: * doc/tutorial/src/include/cairo-tutorial-png.h: * doc/tutorial/src/include/cairo-tutorial-xlib.h: Move the magic header files to be down in an include directory and more out of the way. * doc/tutorial/src/Makefile: Look for the headers in -I./include. * doc/tutorial/src/circle.c: (draw): Make the circle track the width and height of the window dynamically. * doc/tutorial/src/expander.c: Remove boring expander example. * doc/tutorial/src/lca.c: (draw): Add more interesting LCA exmaple. * doc/tutorial/src/README: Add some notes about how to use this stuff. 2006-01-26 Carl Worth * doc/tutorial/slides/cairo-large-content.svg: Here's the actual template I was referring to in my previous commit. * doc/tutorial/slides/tutorial.xml: Add a bunch more slides. Most of the text is in place now---just missing some formatting and a bunch of examples. 2006-01-26 Carl Worth * doc/tutorial/slides/cairo-blank.svg: * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo.svg: Add Red Hat logos to slide templates. * doc/tutorial/slides/cairo-separator.svg: Add header/footer-less slide variant for slides needed an extra bit of space. * doc/tutorial/slides/tutorial.xml: Start getting slides ready for linux.conf.au 2006 tutorial, updating for cairo 1.0 API, and adding better organization. Verify and fix all the little example shell programs. * doc/tutorial/src/Makefile: Really remove the building of the -pdf programs this time. 2006-01-25 Carl Worth * doc/tutorial/slides/tutorial.xml: A few random changes to the slides. * doc/tutorial/src/Makefile: Remove pdf build by default, (since it is disabled by defalt in cairo 1.0.2). * doc/tutorial/src/cairo-tutorial-gtk.h: * doc/tutorial/src/cairo-tutorial-pdf.h: * doc/tutorial/src/cairo-tutorial-png.h: * doc/tutorial/src/cairo-tutorial-xlib.h: * doc/tutorial/src/circle.c: (draw): * doc/tutorial/src/expander.c: (draw): Change draw interface to accept a width and height. * doc/tutorial/src/cairo-tutorial-gtk.h: Fix the destroy event handler so that clicking on the window manager's 'close window' button works. 2006-01-22 Behdad Esfahbod * src/cairo.h, doc/public/cairo-sections.txt: Add cairo_scaled_font_text_extents. * src/cairo-scaled-font.c (cairo_scaled_font_text_extents): New function. * src/cairo-scaled-font.c (cairo_scaled_font_glyph_extents): Improve documentation. 2006-01-21 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/set-source-beos-rgb24-ref.png: * test/set-source-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Updating BeOS reference images, the tests use a black background now. 2006-01-21 Christian Biesinger * test/cairo-test-beos.cpp: (create_beos_surface), (create_beos_bitmap_surface): * test/cairo-test-beos.h: Update BeOS test code per the cairo_format_t -> cairo_content_t changes. 2006-01-21 Christian Biesinger * pixman/src/fbpict.c: (detectCPUFeatures): * src/cairo-paginated-surface.c: (_cairo_paginated_surface_get_target): * test/cairo-test.c: (create_image_surface): Don't mix declarations and code. This makes the code valid ISO C, fixes a gcc -pedantic warning, and unbreaks the build with the compiler Zeta ships with. 2006-01-20 Carl Worth * src/cairo.h: * src/cairo-scaled-font.c: (cairo_scaled_font_get_font_face), (cairo_scaled_font_get_font_matrix), (cairo_scaled_font_get_ctm), (cairo_scaled_font_get_font_options): Add getter functions for cairo_scaled_font_t. 2006-01-20 Carl Worth * test/ft-font-create-for-ft-face.c: (draw): Fix test to use fontconfig properly so that the test no longer fails. Fixes bug #4674. (Thnks to sunmoon1997 for the fix). 2006-01-20 Carl Worth * src/cairo-scaled-font.c: (cairo_scaled_font_create): Check font_face->status and return a nil scaled font if it is in an error state. (Thanks to Christian Biesinger and sunmoon1997 who pointed this out as part of bug #4674). With this bug fix, the ft-font-create-for-ft-face test fails (as it should) since it is abusing fontconfig. 2006-01-19 Carl Worth * src/cairo-pdf.h: * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): * src/cairo-ps.h: * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): Rip the cairo_content_t argument out of ps/pdf_surface_create as per discussion on cairo mailing list. Instead these surface will behave as if CONTENT_COLOR_ALPHA had been passed (that is, compositing operators will behave as if destination alpha were available). This also has the benefit of preserving the API that has been in place for PS/PDF surface since the (experimental) stuff in 1.0.0. * test/cairo-test.c: (create_ps_surface), (create_pdf_surface): * test/multi-page.c: (main): Track API change. * test/cairo-test.c: (ps_surface_write_to_png), (pdf_surface_write_to_png): Continue testing PS/PDF surfaces in the CAIRO_CONTENT_COLOR mode but do it by rendering to an intermediate similar surface rather than constructing the target surface differently. 2005-01-19 Emmanuel Pacaud * test/svg2png.c: add missing header. Fix #5544. 2006-01-18 Carl Worth * src/cairo-pdf-surface.c: (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): Fix compilation-breaking typo. 2006-01-18 Carl Worth * src/cairo-image-surface.c: Change documentation to recommend cairo_paint rather than cairo_rectangle;cairo_fill for clearing a surface. * src/cairo-pdf.h: * src/cairo-pdf-surface.c: (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): Add documentation. Add a cairo_content_t argument to PDF surface constructors. * src/cairo-ps.h: * src/cairo-ps-surface.c: (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): Add documentation. Add a cairo_content_t argument to PS surface constructors. * test/multi-page.c: (main): * test/cairo-test.c: (create_ps_surface), (create_pdf_surface): Track changes in PS/PDF surface constructor API. 2006-01-18 Carl Worth * src/cairo.c: Fix documentation of cairo_arc which erroneously claimed M_PI radians == 90 degrees to correctly say that M_PI/2.0 radians == 90 degrees. This closes bug #5649 (with thanks to kengruven@@gmail.com). 2006-01-17 Carl Worth Big change to the test infrastructure and supporting internals. The goal now is to test both a COLOR_ALPHA and a COLOR content for each surface backend, (since the semantics are different and we probably need to support both in each backend. The PS/PDF backends don't allow a content to be passed in right now, so they fail against the rgb24 tests, but the trivial addition to the constructors will allow them to pass all tests with both content values. * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_create_with_content), (_cairo_image_surface_create_for_data_with_content), (_cairo_image_surface_create_similar): And new constructors (currently internal only) to create an image surface with a cairo_content_t rather than a cairo_format_t. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar): Add a cairo_content_t argument to the constructor. * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_show_page), (_cairo_paginated_surface_snapshot): Add a cairo_content_t to the constructor and use this content value when constructing intermediate image surfaces in acquire_source, show_page, copy_page, and snapshot. * src/cairo-pdf-surface.c: (emit_image_rgb_data), (_cairo_pdf_surface_composite_image), (emit_surface_pattern): Add image flattening by compositing over white, as is done in cairo-ps-surface.c. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create), Track changes to cairo-paginates-surface which now requires a cairo_content_t value (no change to public PS/PDF constructors yet). * src/test-fallback-surface.h: * src/test-fallback-surface.c: (_test_fallback_surface_create), (_test_fallback_surface_create_similar): * src/test-meta-surface.h: * src/test-meta-surface.c: (_test_meta_surface_create): * src/test-paginated-surface.h: * src/test-paginated-surface.c: (_test_paginated_surface_create_for_data): Track change in meta-surface and paginated-surface interfaces by now accepting a cairo_content_t rather than a cairo_format_t. * test/.cvsignore: Ignore new output files (argb32 from pdf and ps as well as rgb24 from test-fallback, test-meta, and test-paginated). * test/Makefile.am: * test/png-flatten.c: (main): Add new utility for flattening PNG images in order to generate the -argbf-ref.png images. * test/buffer-diff.c: (image_diff_flattened): * test/buffer-diff.h: Add image_diff_flattened for comparing flattened output from PS and PDF backend with ARGB reference images by first blending the reference images over white. * test/cairo-test.c: (_cairo_test_content_name), (create_image_surface), (create_test_fallback_surface), (create_test_meta_surface), (create_test_paginated_surface), (test_paginated_write_to_png), (create_cairo_glitz_glx_surface), (create_cairo_glitz_agl_surface), (create_cairo_glitz_wgl_surface), (create_win32_surface), (create_xcb_surface), (create_xlib_surface), (create_ps_surface), (create_pdf_surface), (create_svg_surface), (cairo_test_for_target), (cairo_test_expecting): Get rid of conditional, format-specific background-color initialization before running tests. Now uses ARGB(0,0,0,0) in all cases. Switch from specifying tests with a format value to specifying tests with a content value. Add support for a 'fake' COLOR_ALPHA_FLATTENED content for testing the PS and PDF output against a flattened version of the argb32 reference images (first blended over white). * test/multi-page.c: (main): Track change in cairo_ps_surface_create (now requires cairo_content_t value). * test/caps-joins.c: (draw): * test/caps-sub-paths.c: (draw): * test/dash-caps-joins.c: (draw): * test/dash-offset-negative.c: (draw): * test/leaky-polygon.c: (draw): * test/line-width.c: (draw): * test/path-data.c: (draw): * test/show-text-current-point.c: (draw): * test/text-antialias-gray.c: (draw): * test/text-antialias-none.c: (draw): * test/transforms.c: (draw): Adjust tests that draw in default (black) to first paint white so that the results are visible. * test/caps-joins-ref.png: * test/caps-sub-paths-ref.png: * test/dash-caps-joins-ref.png: * test/dash-offset-negative-ref.png: * test/leaky-polygon-ref.png: * test/line-width-ref.png: * test/path-data-ref.png: * test/show-text-current-point-ref.png: * test/text-antialias-gray-ref.png: * test/text-antialias-none-ref.png: * test/transforms-ref.png: Adjust ARGB32 reference images for new white background for changed tests. * test/clip-fill-rule-pixel-aligned-rgb24-ref.png: * test/clip-fill-rule-rgb24-ref.png: * test/clip-nesting-rgb24-ref.png: * test/clip-operator-rgb24-ref.png: * test/clip-twice-rgb24-ref.png: * test/fill-and-stroke-rgb24-ref.png: * test/fill-rule-rgb24-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/mask-ctm-rgb24-ref.png: * test/mask-rgb24-ref.png: * test/mask-surface-ctm-rgb24-ref.png: * test/nil-surface-rgb24-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-rgb24-ref.png: * test/paint-with-alpha-rgb24-ref.png: * test/rel-path-rgb24-ref.png: * test/scale-source-surface-paint-rgb24-ref.png: * test/set-source-rgb24-ref.png: * test/source-surface-scale-paint-rgb24-ref.png: * test/text-pattern-rgb24-ref.png: * test/trap-clip-rgb24-ref.png: * test/unbounded-operator-rgb24-ref.png: Adjust RGB24 reference images for new black background due to changed initialization (and the tests themselves being unchanged). 2006-01-14 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Update BeOS reference images per the recent gradient changes 2006-01-14 Christian Biesinger * test/.cvsignore: Ignore glitz-glx test output 2006-01-13 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_end_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page): Fix things up to conform with Adobe PostScript Document Structuring Conventions Specification. Thanks to Michael Sweet for bringing several items to our attention. Things that are fixed: Add Pages: (atend) to header, add Pages: N to trailer, properly advertise DocumentData of Binary rather than Clean7Bit, remove fictitious EndPage, move showpage to after the grestore. 2006-01-13 Carl Worth * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Rip out the misguided paint-with-white and RGB24 surface code and go back to using ARGB32. It turns out that the PS backend already has its own blend-with-white code, and the test-paginated-surface really wants ARGB32. 2006-01-13 Carl Worth * src/cairo-win32-font.c: (_flush_glyphs): Eliminate cast of state->dx.elements which has been wrong since the internals of cairo_array_t changed on 2005-12-21. Now, hopefully less than all text will be broken on win32. 2006-01-12 Carl Worth * test/multi-page.c: (draw_some_pages), (main): Add a call to cairo_copy_page, so that that gets called at least once within the test suite. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_copy_page): Fix broken implementation of copy_page in the paginated surface by hiding it from the target surface which sees only show_page operations. (It's hard to do better than that unless we can guarantee thathe subsequent page won't trigger any image fallbacks.) 2006-01-12 Carl Worth * configure.in: Add a new CAIRO_HAS_MULTI_PAGE_SURFACES automake conditional. * test/.cvsignore: * test/Makefile.am: * test/pdf-clip.c: * test/pdf-surface.c: * test/ps-surface.c: Remove backend-specific tests (ps-surface, pdf-surface, and pdf-clip) that are now redundant with the ps and pdf support in the rest of the test suite. * test/multi-page.c: (draw), (draw_five_pages), (main): Add a new one-off test for testing show_page with both the ps and pdf backends. 2006-01-12 Carl Worth Some fixes for the fact that multi-page output was totally broken for cairo_ps_surface_t (at least): * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_start_page), (_cairo_ps_surface_end_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page), (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_fill): Move the Y-axis-flipping to be on a per-page basis (as it was before and as it must be). Put page number back in, (still missing th number of pages from the header). * test/ps-surface.c: (draw), (main): Add multi-page output for better testing. 2006-01-11 Carl Worth * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Paint with white to intermediate RGB24 images before replaying meta-surface to preserve default white background instead of forcing a black background instead. 2006-01-11 Carl Worth * ROADMAP: Note that PS backend has now been switched over to use cairo_paginated_surface_t. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Switch from ARGB32 to RGB24 for intermediate image surface since that's all that the current users of cairo_paginated_surface support anyway. * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_create_for_stream_internal), (_cairo_surface_is_ps), (cairo_ps_surface_set_dpi), (_cairo_ps_surface_finish), (_cairo_ps_surface_start_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page), (_cairo_ps_surface_add_fallback_area), (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_path_move_to), (_cairo_ps_surface_path_line_to), (_cairo_ps_surface_path_curve_to), (_cairo_ps_surface_path_close_path), (_cairo_ps_surface_intersect_clip_path), (_cairo_ps_surface_get_extents), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_fill): Switch cairo_ps_surface_t over to use the new cairo_paginated_surface_t. This drastically simplifies the implementation, but temporarily puts the PostScript output back into the land of one-image-per-page. To be fixed soon though with improvements to cairo_paginated_surface_t. Everything still passes the test suite which is good. The test suite currently does no testing of multi-page output, which is quite bad. 2006-01-11 Carl Worth * ROADMAP: Note that from here on out, the PDF output should always pass the entire test suite! * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_surface_is_paginated), (_cairo_paginated_surface_get_target): Add new functions needed by users of cairo_paginated_surface_t. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_snapshot): Always snapshot a paginated surface to an image surface, rather than a surface similar to the target. We do this since paginated target surfaces are allowed to not be complete surfaces, (such as not implementing acquire_source_surface). * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (_cairo_surface_is_pdf), (cairo_pdf_surface_set_dpi): Switch the implementation of cairo_pdf_surface_t to use cairo_paginated_surface_t. For now this means that all PDF output is fallback images, but this can change incrementally as we go forward. 2006-01-10 Anders Carlsson * src/cairo-atsui-font.c: (CGAffineTransformMakeWithCairoFontScale): (CreateSizedCopyOfStyle): (_cairo_atsui_font_create_scaled): (_cairo_atsui_font_old_show_glyphs): Remove old scale matrix since it exists in our base class. (_cairo_atsui_font_set_metrics): Fix descent calculation. 2006-01-10 Anders Carlsson * src/Makefile.am: Add cairo-quartz-private.h * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): If the destination surface is a quartz surface, get the clip mask from it. * src/cairo-quartz-private.h: Added. * src/cairo-quartz-surface.c: (_cairo_quartz_surface_finish): (_cairo_quartz_surface_set_clip_region): (cairo_quartz_surface_create): Keep a copy of the clip mask around. (_cairo_surface_is_quartz): New function which determines if a given surface is a quartz surface. 2006-01-09 Carl Worth * test/cairo-test.h: Add printf format attribute to cairo_test_log. 2006-01-06 Carl Worth Reviewed by keithp * src/cairo-paginated-surface.c: (_paint_page), (_cairo_paginated_surface_copy_page), (_cairo_paginated_surface_show_page): Change the paginated surface to force all output to come from an image surface (to be refined incrementally as we hook real surface backends up to it). 2006-01-06 Carl Worth Reviewed by keithp * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_copy_page), (_cairo_paginated_surface_show_page): Implement copy_page for paginated surface. Fix show_page to destroy the meta-surface and create a new one. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_copy_page), (_cairo_surface_show_page): Change these functions to advertise when they are not supported, so that _cairo_paginated_copy_page can implement things differently depending on whether or not it is personal. * src/cairo-gstate.c: (_cairo_gstate_copy_page), (_cairo_gstate_show_page): Check return values from _cairo_surface_show/copy_page. 2006-01-05 Carl Worth * ROADMAP: Slip 1.2.0 projected data (again) out to 2006-01-13. Note that win32 is now incorporated into the test suite and is only failing two tests (self-copy and trap-clip). Note new progress on cairo_push/pop_group. Add item to support pango's hex-box drawing. Note that gradient computation performance has been improved. Note that experimental SVG backend has been added. 2006-01-05 David Reveman * src/cairo-svg-surface.c (emit_pattern_stops): Don't sort color stops. (emit_linear_pattern): (emit_radial_pattern): Track gradient changes. * src/cairo-pdf-surface.c (emit_pattern_stops): Don't sort color stops, cairo already keeps all color stops sorted. * src/cairo-glitz-surface.c (_cairo_glitz_pattern_acquire_surface): Track gradient changes. * src/cairo-pdf-surface.c (emit_pattern_stops) (emit_linear_pattern, emit_radial_pattern): Track gradient changes. 2006-01-04 Carl Worth * Originally: 2005-10-10 David Reveman * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_set_matrix): * src/cairo-matrix.c: (_cairo_matrix_to_pixman_matrix): * src/cairo-pattern.c: (_cairo_gradient_pattern_init_copy), (_cairo_pattern_init_linear), (_cairo_pattern_init_radial), (_cairo_pattern_add_color_stop), (cairo_pattern_add_color_stop_rgb), (cairo_pattern_add_color_stop_rgba), (_cairo_linear_pattern_classify), (_cairo_pattern_acquire_surface_for_gradient), (_cairo_pattern_acquire_surface): Throw away old gradient code from within cairo-pattern.c in favor of using new support in pixman for gradients. * test/clip-operator-ref.png: * test/clip-operator-rgb24-ref.png: * test/gradient-alpha-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/linear-gradient-ref.png: * test/linear-gradient-rgb24-ref.png: * test/mask-ref.png: * test/mask-rgb24-ref.png: * test/operator-clear-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-ref.png: * test/operator-source-rgb24-ref.png: * test/text-pattern-ref.png: * test/text-pattern-rgb24-ref.png: * test/trap-clip-ref.png: * test/trap-clip-rgb24-ref.png: * test/unbounded-operator-ref.png: * test/unbounded-operator-rgb24-ref.png: Update reference images for all tests involving gradients since the gradient output has changed slightly. 2006-01-03 Vladimir Vukicevic * src/cairo-glitz-surface.c (_cairo_glitz_surface_create_similar): Clamp surface dimensions to a minimum of 1. (_cairo_glitz_surface_get_image): Set the glitz clip to NULL before calling glitz_get_pixels, to return the full surface contents. Restore clip afterwards. (_cairo_glitz_surface_composite_trapezoid): Return UNSUPPORTED if the antialias is anything other than DEFAULT/GRAY. * src/cairo-image-surface.c (_cairo_image_surface_create_with_masks): Try to recover a standard cairo_format_t from given pixman format masks, so that various things that only work with a standard format work correctly. * test/cairo-test.c: Remove cairo_glitz_surface_write_to_png, replace with generic cairo_surface_write_to_png (since it works with image-surface create_with_masks fix) 2006-01-03 Vladimir Vukicevic * test/make-html.pl: Clean up output some; show only images that fail, otherwise just show pass/fail squares. 2005-12-30 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_create_for_document): no more has_clip boolean. Init clip_level. (_cairo_surface_intersect_clip_path): a NULL path means reset of clipping region, not back to previous clipping level. 2005-12-28 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_document_create): namespace declarations for SVG and XLINK (#5411). 2005-12-27 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/set-source-beos-rgb24-ref.png: * test/set-source-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Add BeOS-specific reference images for tests where the maximum color difference is 1. 2005-12-27 Christian Biesinger * src/cairo-beos-surface.cpp: Implement composite for the beos backend. Don't map CAIRO_OPERATOR_ADD to B_OP_ADD for now, something's broken there. 2005-12-26 Christian Biesinger * src/cairo-beos-surface.cpp: Don't require that the caller locks the view; do it in cairo code. * test/cairo-test-beos.cpp: Remove the now-unneeded locking 2005-12-21 Carl Worth * src/cairo-ps-surface.c: Remove some unneeded backend functions (composite, fill_rectangles, composite_trapezoids, old_show_glyphs). 2005-12-21 Carl Worth * src/test-meta-surface.c: * src/cairo-paginated-surface.c: Don't implement create_similar for the test-meta or the paginated surface. This was slowing things down a _lot_ (about 11× for the mask test for example) without any improvement in output quality. We can revisit this again later if there's any output improvement to be had down the road. 2005-12-21 Carl Worth * src/Makefile.am: * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_create_similar), (_cairo_paginated_surface_finish), (_cairo_paginated_surface_acquire_source_image), (_cairo_paginated_surface_release_source_image), (_cairo_paginated_surface_show_page), (_cairo_paginated_surface_intersect_clip_path), (_cairo_paginated_surface_get_extents), (_cairo_paginated_surface_paint), (_cairo_paginated_surface_mask), (_cairo_paginated_surface_stroke), (_cairo_paginated_surface_fill), (_cairo_paginated_surface_show_glyphs), (_cairo_paginated_surface_snapshot): Add a private cairo_paginated_surface_t which builds on top of the meta surface and is intended to provide an easy interface with common functionality for the various paginated surface types (ps, pdf, etc.). * src/test-paginated-surface.c: (_test_paginated_surface_create_for_data): * src/test-paginated-surface.h: * test/cairo-test.c: (create_test_paginated_surface), (test_paginated_write_to_png), (cleanup_test_paginated), (cairo_test_expecting): Add test_paginated_surface_t which is another test surface enabled with --enable-test-surfaces. The test_meta_surface code served as the basis for cairo_paginated_surface_t so that test surface may be entirely superfluous now. 2005-12-21 Carl Worth Here is a cleaner implementation of the _cairo_array_t change which was previously committed inadvertently. * src/cairoint.h: * src/cairo-array.c: (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_index), (_cairo_array_allocate), (_cairo_user_data_array_fini), (_cairo_user_data_array_get_data), (_cairo_user_data_array_set_data): Fix buggy implementation of _cairo_array_snapshot by changing array->elements to be a pointer to a pointer. This extra level of indirection allows the snapshot array to point to a pointer which will itself get changed when new storage is needed for a growing array. Previously, the snapshot would be left pointing at stale storage. * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): * src/cairo-win32-font.c: (_flush_glyphs): Fix to call _cairo_array_index rather than grabbing array->elements directly and casting (which cast is now wrong with the change in implementation of array->index). 2005-12-21 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_index), (_cairo_array_allocate), (_cairo_user_data_array_fini), (_cairo_user_data_array_get_data), (_cairo_user_data_array_set_data): * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): * src/cairo-win32-font.c: (_flush_glyphs): Revert inadvertent commit (immediately previous). 2005-12-21 Carl Worth * src/test-meta-surface.h: Fix indentation. 2005-12-21 Carl Worth * src/cairo-meta-surface-private.h: Remove cruft from old commands that the meta surface no longer implements (composite, fill_rectangles, composite_trapezoids, and set_clip_region). 2005-12-21 Christian Biesinger * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_create_for_pattern): * src/cairo-gstate.c: * src/cairoint.h: Fix some typos 2005-12-21 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_create_for_document): store surfaces in a node, and clip to surface area. Now SVG backend should pass pixman-rotate test. (emit_composite_svg_pattern): emit transformation matrix. (_cairo_svg_surface_intersect_clip_path): don't use xmlBuffer here. 2005-12-20 Carl Worth * src/cairo-meta-surface.c: Add some comments describing what a cairo_meta_surface_t is. * src/test-fallback-surface.c: * src/test-fallback-surface.h: Remove unused _test_fallback_surface_create_for_data. * src/test-meta-surface.c: * src/test-meta-surface.h: Remove unused _test_meta_surface_create_for_data. Add missing source file src/test-meta-surface.h. 2005-12-20 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_get_antialias): * src/cairo-surface-fallback.c: (_create_composite_mask_pattern), (_clip_and_composite_with_mask), (_clip_and_composite_combine), (_clip_and_composite_source), (_cairo_rectangle_empty), (_clip_and_composite), (_composite_trap_region), (_composite_traps_draw_func), (_clip_and_composite_trapezoids), (_cairo_surface_fallback_paint), (_cairo_surface_fallback_mask), (_cairo_surface_fallback_stroke), (_cairo_surface_fallback_fill), (_cairo_surface_fallback_show_glyphs): Move more fallback code from cairo-gstate.c to cairo-surface-fallback.c where it belongs. In the process, clean up the function names a bit and make the whole mess static. 2005-12-19 Carl Worth * src/Makefile.am: * src/cairo-surface-fallback-private.h: * src/cairo-surface-fallback.c: (_fallback_init), (_fallback_fini), (_cairo_surface_fallback_paint), (_cairo_surface_mask_draw_func), (_cairo_surface_fallback_mask), (_cairo_surface_fallback_stroke), (_cairo_surface_fallback_fill), (_cairo_surface_old_show_glyphs_draw_func), (_cairo_surface_fallback_show_glyphs), (_cairo_surface_fallback_snapshot), (_cairo_surface_fallback_composite), (_cairo_surface_fallback_fill_rectangles), (_cairo_surface_fallback_composite_trapezoids): * src/cairo-surface.c: (_cairo_surface_snapshot), (_cairo_surface_composite), (_cairo_surface_fill_rectangles), (_cairo_surface_paint), (_cairo_surface_mask), (_cairo_surface_stroke), (_cairo_surface_fill), (_cairo_surface_composite_trapezoids), (_cairo_surface_show_glyphs): Begin moving fallback code out of cairo-surface.c and into cairo-surface-fallback.c. 2005-12-19 Carl Worth * src/cairo-surface.c: (_cairo_surface_create_similar_solid): Use _cairo_surface_paint rather than _cairo_surface_fill_rectangle as only the former is guaranteed to work with all backends. * src/test-fallback-surface.c: Refine the comment describing this test surface. * src/Makefile.am: * src/test-meta-surface.c: (_test_meta_surface_create), (_test_meta_surface_create_for_data), (_test_meta_surface_create_similar), (_test_meta_surface_finish), (_test_meta_surface_acquire_source_image), (_test_meta_surface_release_source_image), (_test_meta_surface_show_page), (_test_meta_surface_intersect_clip_path), (_test_meta_surface_get_extents), (_test_meta_surface_paint), (_test_meta_surface_mask), (_test_meta_surface_stroke), (_test_meta_surface_fill), (_test_meta_surface_show_glyphs), (_test_meta_surface_snapshot): Add new test surface for exercising cairo_meta_surface. * test/.cvsignore: * test/cairo-test.c: (create_image_surface), (create_test_fallback_surface), (create_test_meta_surface), (cairo_test_for_target), (cairo_test_expecting): Simplify the image and test_fallback targets by not using create_for_data. Allow for NULL cleanup target functions. Add support for the test_meta_surface. 2005-12-20 Christian Biesinger * src/cairo-beos-surface.cpp: Use correct color when OPERATOR_SOURCE is used on a surface without alpha information. 2005-12-19 Keith Packard * src/cairo-clip.c: (_cairo_clip_intersect_to_rectangle), (_cairo_clip_intersect_to_region): * src/cairo-gstate.c: (_create_composite_mask_pattern), (_cairo_gstate_clip_and_composite), (_composite_trap_region), (_cairo_surface_clip_and_composite_trapezoids): * src/cairo-surface.c: (_cairo_surface_set_clip): Use NULL clip instead of special serial zero cairo_clip_t Should make using surfaces easier. 2005-12-19 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_stroke): fix stroke linewidth and dashes, I hope. Emit stroke-dashoffset. 2005-12-19 Emmanuel Pacaud * configure.in: CAIRO_CAN_TEST_SVG_SURFACE depends on librsvg. * src/cairo-svg-surface.c: cairo_svg_surface_t owns a xml node, for support of svg_surface_composite. (_cairo_svg_surface_create_for_document): init xml_node. All surfaces except first one are stored in defs node. (emit_composite_image_pattern): returns pattern size, and don't call emit_transform if is_pattern == TRUE. (emit_composite_svg_pattern): do something. (emit_composite_pattern): returns pattern size. (_cairo_svg_surface_composite): xml_node is stored in cairo_svg_surface_t now. (emit_surface_pattern): emit surface pattern width here. Fix property names. (_cairo_svg_path_close_path): don't close path if no current point. (_cairo_svg_surface_fill_rectangles): new. (_cairo_svg_surface_fill): emit fill rule. xml_node is in surface now. (_cairo_svg_surface_composite_trapezoids): xml_node is in surface now. (_cairo_svg_surface_stroke): ditto. (_cairo_svg_surface_intersect_clip_path): ditto. Emit fill rule. * test/.cvsignore: ignore svg2png. * test/Makefile.am: build svg2png utility. * test/cairo-test.c (create_svg_surface): new. (svg_surface_write_to_png): new. (cleanup_svg): new. (cairo_test_expecting): test SVG backend if CAIRO_HAS_SVG_SURFACE && CAIRO_CAN_TEST_SVG_SURFACE. * test/svg2png.c: new. 2005-12-19 Christian Biesinger * configure.in: * src/cairo-beos-surface.cpp: Some final changes to the beos backend before checkin were wrong, fixing. 2005-12-19 Christian Biesinger * src/cairo-beos-surface.cpp: Use gtk-doc syntax rather than doxygen syntax for internal functions (to avoid warnings from gtk-doc when it processes this file) 2005-12-19 Christian Biesinger * INSTALL: Mention new --enable-svg option * README: Add notes for the new BeOS backend * configure.in: Add disabled by default BeOS backend * src/Makefile.am: Add BeOS files * src/cairo-beos-surface.cpp: New * src/cairo-beos.h: New * src/cairo-features.h.in: BEOS_SURFACE_FEATURE * src/cairoint.h: BeOS mutex functions * test/.cvsignore: Ignore files generates by the BeOS tests * test/Makefile.am: Add cairo-test-beos.* * test/cairo-test-beos.cpp: New. (Must be a C++ file, hence not part of cairo-test.c) * test/cairo-test-beos.h: New. * test/cairo-test.c: (cairo_test_expecting): Test BeOS backend. 2005-12-19 Christian Biesinger reviewed by: cworth * src/cairo-clip-private.h: Move enum to cairoint.h * src/cairoint.h: add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS, and move an enum from cairo-clip-private.h here (C++ doesn't like forward-declarations of enums). Final patch for allowing C++ backends. 2005-12-17 Christian Biesinger * configure.in: make the SVG backend freetype message actually mention SVG rather than PDF. 2005-12-16 Carl Worth * src/test-fallback-surface.c: (_test_fallback_surface_create_similar): Return a test_fallback_surface_t rather than a cairo_image_surface_t for better testing, (otherwise, an image surface would meet the semantic demands of create_similar just fine). 2005-12-16 Carl Worth * configure.in: Add a new option --enable-test-surfaces. * src/Makefile.am: * src/test-fallback-surface.h: * src/test-fallback-surface.c: (_test_fallback_surface_create), (_test_fallback_surface_create_for_data), (_test_fallback_surface_create_similar), (_test_fallback_surface_finish), (_test_fallback_surface_acquire_source_image), (_test_fallback_surface_release_source_image), (_test_fallback_surface_acquire_dest_image), (_test_fallback_surface_release_dest_image), (_test_fallback_surface_get_extents): New surface backend for testing only. It has as many NULL backend entries as possible. * test/Makefile.am: * test/cairo-test.c: (create_test_fallback_surface), (cleanup_test_fallback), (cairo_test_expecting): Add support to test the new test_fallback backend. 2005-12-16 Carl Worth * src/cairoint.h: Don't export cairo_image_surface_set_clip_region. * src/cairo-image-surface.c: (_cairo_image_surface_finish), (_cairo_image_surface_set_clip_region), (_cairo_image_surface_get_extents): Eliminate some unnecessary _cairo_image_abstract_surface variations of backend function. * src/cairo-font-subset.c: Remove errant include of cairo-pdf.h. 2005-12-16 Christian Biesinger reviewed by: cworth * CODING_STYLE: * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): * src/cairo-clip-private.h: * src/cairo-clip.c: (_cairo_clip_combine_to_surface): * src/cairo-ft-font.c: (_cairo_ft_show_glyphs): * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_set_operator), (_cairo_gstate_get_operator), (_cairo_gstate_paint), (_cairo_operator_bounded_by_mask), (_cairo_operator_bounded_by_source), (_cairo_gstate_clip_and_composite_with_mask), (_cairo_gstate_clip_and_composite_combine), (_cairo_gstate_clip_and_composite), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_composite_trap_region), (_composite_traps_draw_func), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_fill), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (_pixman_operator), (_cairo_image_surface_composite), (_cairo_image_surface_fill_rectangles), (_cairo_image_surface_composite_trapezoids): * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_paint), (_cairo_meta_surface_mask), (_cairo_meta_surface_stroke), (_cairo_meta_surface_fill), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_replay): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite), (_cairo_pdf_surface_fill_rectangles), (_cairo_pdf_surface_fill), (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_old_show_glyphs): * src/cairo-ps-surface.c: (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_paint), (_cairo_ps_surface_mask), (_cairo_ps_surface_stroke), (_cairo_ps_surface_fill), (_cairo_ps_surface_show_glyphs), (operator_always_opaque), (operator_always_translucent), (color_operation_needs_fallback), (pattern_operation_needs_fallback), (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_old_show_glyphs), (_ps_output_paint), (_ps_output_mask), (_ps_output_stroke), (_ps_output_fill), (_ps_output_show_glyphs): * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): * src/cairo-surface.c: (_fallback_composite), (_cairo_surface_composite), (_cairo_surface_fill_rectangle), (_cairo_surface_fill_region), (_fallback_fill_rectangles), (_cairo_surface_fill_rectangles), (_fallback_paint), (_cairo_surface_paint), (_cairo_surface_mask_draw_func), (_fallback_mask), (_cairo_surface_mask), (_fallback_stroke), (_cairo_surface_stroke), (_fallback_fill), (_cairo_surface_fill), (_fallback_composite_trapezoids), (_cairo_surface_composite_trapezoids), (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs), (_cairo_surface_old_show_glyphs): * src/cairo-svg-surface.c: (_cairo_svg_surface_composite), (emit_operator), (_cairo_svg_surface_fill), (_cairo_svg_surface_composite_trapezoids), (_cairo_svg_surface_stroke), (_cairo_svg_surface_old_show_glyphs): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_show_glyphs): * src/cairo-win32-surface.c: (_cairo_win32_surface_composite), (categorize_solid_dest_operator), (_cairo_win32_surface_fill_rectangles): * src/cairo-xcb-surface.c: (_render_operator), (_cairo_xcb_surface_composite), (_cairo_xcb_surface_fill_rectangles), (_cairo_xcb_surface_composite_trapezoids): * src/cairo-xlib-surface.c: (_operator_needs_alpha_composite), (_categorize_composite_operation), (_recategorize_composite_operation), (_render_operator), (_cairo_xlib_surface_composite), (_cairo_xlib_surface_fill_rectangles), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_old_show_glyphs8), (_cairo_xlib_surface_old_show_glyphs16), (_cairo_xlib_surface_old_show_glyphs32), (_cairo_xlib_surface_old_show_glyphs): * src/cairoint.h: * test/get-and-set.c: (settings_set), (settings_get), (settings_equal): Globally rename "operator" to "op", to allow writing backends in C++ 2005-12-15 Carl Worth * configure.in: Make poppler check require poppler >= 0.4.1. 2005-12-14 Stuart Parmenter * test/cairo-test.c: #define access _access and #define F_OK to 0 on for MSVC * test/cairo-test.h: add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS 2005-12-14 Carl Worth * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): Remove dead code from cairo-meta-surface: vestiges of meta-surface backend implementations of composite, fill_rectangles, composite_trapezoids, set_clip_region, and old_show_glyphs. 2005-12-14 Carl Worth * configure.in: Add preliminary support for --enable-gcov. Thanks to Pierre-Alain Joye (with inspiration from the PHP gcov support by Jani Taskinen and Ilia Alshanetsky). * src/.cvsignore: * test/.cvsignore: Ignore *.gcda and *.gcno gcov data files. 2005-12-13 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_finish): Make creator be cairo, not Cairo. 2005-12-12 Vladimir Vukicevic * configure.in: bump glitz req to 0.5.1, test for backends * test/cairo-test.c: Add glitz backend (original patches from sunmoon1997@@gmail.com), including glx, wgl, and agl support. Add CAIRO_TEST_TARGET environment variable for limiting backends to test. * test/make-html.pl: Takes all *.log files and spits out html to stdout that can be used to view all test results at once. 2005-12-08 Emmanuel Pacaud * test/.cvsignore: shhh... 2005-12-08 Emmanuel Pacaud * configure.in: add optionnal disabled by default SVG backend. * src/Makefile.am: include SVG backend files. * src/cairo-features.h.in: include SVG_SURFACE_FEATURE. * src/cairo-output-stream.c: rename dtostr to _cairo_dtostr for use in cairo-svg-surface.c. * src/cairoint.h: _cairo_dtostr declaration. * src/cairo-svg.h: new. * src/cairo-svg-surface.c: new. * test/Makefile.am: build svg-surface and svg-clip. * test/svg-surface.c: new. * test/svg-surface.h: new. 2005-12-07 Carl Worth * ROADMAP: Note that that PDF backend has been incorporated into the test suite. 2005-12-07 Carl Worth * configure.in: Add checks for poppler and friends which are needed by pdf2png. Set CAIRO_CAN_TEST_PDF_SURFACE as both a #define and an automake conditional. * test/Makefile.am: Build pdf2png if possible. * test/cairo-test.c: (create_pdf_surface), (pdf_surface_write_to_png), (cleanup_pdf), (cairo_test_expecting): Add support for testing the PDF backend. * test/pdf2png.c: (main): New utility program to convert a PDF file into a PNG image using poppler (thanks to Kristian Høgsberg). * test/.cvsignore: Ignore new stuff generated by PDF backend testing. 2005-12-07 Carl Worth * ROADMAP: Note that self-copy now works with the PS backend. * src/cairo-array.c: (_cairo_array_init), (_cairo_array_init_snapshot), (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_truncate), (_cairo_array_append), (_cairo_array_append_multiple), (_cairo_array_allocate): Add _cairo_array_init_snapshot and checks for is_snapshot throughout. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_acquire_source_image), (_fallback_snapshot), (_cairo_surface_snapshot): Add a new surface->backend->snapshot function. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar), (_cairo_meta_surface_finish), (_cairo_meta_surface_acquire_source_image), (_cairo_meta_surface_release_source_image), (_cairo_meta_surface_snapshot), (_cairo_meta_surface_get_extents): Implement _cairo_meta_surface_snapshot and _cairo_meta_surface_acquire/release_source_image. Change _cairo_meta_surface_create to require the width and height in pixels to be used when replaying for purposed of _cairo_meta_surface_aquire_source_image. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_show_page), (_cairo_ps_surface_snapshot), (_ps_output_old_show_glyphs): Track change in prototype of _cairo_meta_surface_create. Implement _cairo_ps_surface_snapshot by deferring down into _cairo_meta_surface_snapshot. 2005-12-07 Carl Worth * test/cairo-test.c: (create_ps_surface): Fix to check cairo_surface_status rather than !surface which is always false. (cleanup_ps): Fix leak of filename memory. 2005-12-07 Carl Worth * configure.in: Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. 2005-12-05 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_pattern_acquire_surface): Set gradient stop parameters correctly. 2005-12-04 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_surface_get_image): (_cairo_glitz_surface_set_image): (_cairo_glitz_surface_add_glyph): Set fourcc. 2005-11-30 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_pattern_acquire_surface): Track changes to glitz. 2005-11-21 Carl Worth * src/pixman-remap.h: Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. 2005-11-21 Carl Worth * ROADMAP: Add reminder to fix all memory leaks (as determined by the test suite) before release 1.2.0. * src/cairo-gstate.c: (_cairo_gstate_stroke), (_cairo_gstate_fill): Patch leak of patterns as noted in bug #5100 (thanks to Richard Stellingwerff ). 2005-11-18 Carl Worth * src/pixman-remap.h: Remove spurios INT_ prefixes which break the build with very recent binutils. 2005-11-17 Stuart Parmenter * test/cairo-test.c: (create_win32_surface), (cleanup_win32), (cairo_test_expecting): Hooked up tests to run on Windows with a Windows surface 2005-11-14 Anders Carlsson * src/cairo-quartz-surface.c: (_cairo_quartz_surface_release_dest_image): If the surface is flipped, flip the CG coordinate system before drawing the images. (cairo_quartz_surface_create): * src/cairo-quartz.h: Add "flipped" argument to cairo_quartz_surface_create. 2005-11-10 Carl Worth * ROADMAP: Change scheduled release date of 1.2.0 out to 2005-12-15. 2005-11-08 Carl Worth * ROADMAP: Note that PS is now passing all tests except for self-copy. * src/cairo-ps-surface.c: (_cairo_ps_surface_paint), (_cairo_ps_surface_mask), (_cairo_ps_surface_stroke), (_cairo_ps_surface_fill), (_cairo_ps_surface_show_glyphs), (_ps_output_paint), (_ps_output_mask), (_ps_output_stroke), (_ps_output_fill), (_ps_output_show_glyphs): Add missing glue to hook up PS backend with new meta-surface support for the 5 basic drawing operations. Currently, this forces image fallbacks for all operations. * test/cairo-test.c: (ps_surface_write_to_png): Switch from gs device of pngalpha to png16m which for some reason gives the correct result for nil-surface now, while pngalpha does not. * test/clip-operator.c: (draw): Key off of N_OPERATORS as the loop control for easier trimming down of this test case when debugging. * src/cairoint.h: Rename stroke_style parameter to style in backend->stroke parameter list. * test/caps-joins-ps-rgb24-ref.png: * test/caps-sub-paths-ps-rgb24-ref.png: * test/clip-fill-rule-ps-rgb24-ref.png: * test/clip-nesting-ps-rgb24-ref.png: * test/clip-twice-ps-rgb24-ref.png: * test/dash-caps-joins-ps-rgb24-ref.png: * test/dash-offset-negative-ps-rgb24-ref.png: * test/fill-and-stroke-ps-rgb24-ref.png: * test/fill-rule-ps-rgb24-ref.png: * test/leaky-polygon-ps-rgb24-ref.png: * test/line-width-ps-rgb24-ref.png: * test/path-data-ps-rgb24-ref.png: * test/rectangle-rounding-error-ps-rgb24-ref.png: * test/show-text-current-point-ps-rgb24-ref.png: * test/text-antialias-gray-ps-rgb24-ref.png: * test/text-antialias-none-ps-rgb24-ref.png: * test/text-antialias-subpixel-ps-rgb24-ref.png: * test/transforms-ps-rgb24-ref.png: * test/unantialiased-shapes-ps-rgb24-ref.png: Remove PS-specific reference images for many tests which are now using more fallback paths than before. 2005-11-08 Carl Worth * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_paint), (_cairo_meta_surface_mask), (_cairo_meta_surface_stroke), (_cairo_meta_surface_fill), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_replay): Add support to cairo_meta_surface for the 5 basic drawing operations. Remove _cairo_meta_surface_get_extents and _cairo_meta_surface_old_show_glyphs. * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar): Remove size for _cairo_meta_surface_create. It is no longer needed now that get_extents is not a required backend function. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_show_page): Track change in cairo_meta_surface_create no longer requiring a size * src/cairoint.h: * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): * src/cairo-surface.c: (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs): Qualify the glyphs argument to backend->show_glyphs as const. * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): Whitespace style cleanup. 2005-11-08 Carl Worth * ROADMAP: Split the 1.2.0 features into "essential" and "desired". 2005-11-08 Carl Worth * ROADMAP: Slip the 1.2 release by two weeks to 2005-11-15. 2005-11-07 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_append_multiple), (_cairo_array_allocate): Add new _cairo_array_allocate function for growing the array and getting a pointer to the buffer of new data. This is intended to be used in place of the abuse of passing data=NULL to _cairo_array_append_multiple. * src/cairo-font-subset.c: (cairo_pdf_ft_font_allocate_write_buffer): Add new function to be used instead of the abuse of pasing data=NULL to cairo_pdf_ft_font_write. * src/cairo-font-subset.c: (cairo_pdf_ft_font_write): Just return a status now instead of a pointer to the written buffer, since cairo_pdf_ft_font_allocate_write_buffer should now be used instead when a pointer is needed. * src/cairo-font-subset.c: (cairo_pdf_ft_font_align_output), (cairo_pdf_ft_font_write_generic_table), (cairo_pdf_ft_font_write_glyf_table), (cairo_pdf_ft_font_write_hmtx_table), (cairo_pdf_ft_font_write_offset_table): Switch to use cairo_pdf_ft_font_allocate_write_buffer. * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): Fix use of uninitialized status value. * src/cairo-pattern.c (_cairo_pattern_get_extents): Add (not strictly necessary) initialization just to keep the compiler quiet about possibly uninitialized variables. 2005-11-07 Carl Worth * src/cairo-array.c: (_cairo_array_append_multiple): * src/cairo-font-subset.c: (cairo_pdf_ft_font_align_output): 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy): Use field-by-field copying rather than whole structure copying. This avoids the hidden copies being overlooked in future code modifications. 2005-11-07 Carl Worth * src/cairo-clip.c (_cairo_clip_init_copy): Fix to copy region if NULL. 2005-11-07 Carl Worth * src/cairo-clip.c: (_cairo_clip_init), (_cairo_clip_fini), (_cairo_clip_reset): Reorder function bodies to match the order of fields in the structure definition. Some style cleanups. * src/cairo-clip.c: (_cairo_clip_init_copy): Fix bug in that several fields were not being copied. 2005-11-07 Carl Worth * src/cairo-gstate.c (_cairo_gstate_init_copy): Two more instances of copy-and-reference in a single step. 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy): Perform copy and reference in a single step. * src/cairo-gstate-.c: (_cairo_gstate_fini): Remove unnecessary checks for NULL before _destroy() functions. Reset pointers to NULL after _destroy(). 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy), (_cairo_gstate_fini): Reorder function bodies to match to match the order of the fields in the structure definition. 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_create), (_cairo_gstate_clone): Style fix: test-and-bail rather than making the working body conditional. * src/cairo-gstate.c: (_cairo_gstate_destroy): Allow destroy to work on a NULL object. 2005-11-07 Carl Worth * src/Makefile.am: * src/cairoint.h: * src/cairo-stroke-style.c: (_cairo_stroke_style_init), (_cairo_stroke_style_init_copy), (_cairo_stroke_style_fini): Add functions to initialize and copy cairo_stroke_style_t objects. * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini): Use new _cairo_stroke_style functions rather than direct modification. * src/cairoint.h: Add missing prototype for _cairo_font_options_init_copy. 2005-11-07 Carl Worth * src/cairoint.h: Remove unused prototypes for _cairo_gstate_begin_group and _cairo_gstate_end_group. 2005-11-07 Carl Worth * src/cairo-gstate.c: Add documentation for _cairo_gstate_create, _cairo_gstate_init_copy, and _cairo_gstate_clone. 2005-11-05 Carl Worth * src/cairo-font-options.c: (_cairo_font_options_init_copy), (cairo_font_options_copy): Add a function for copying font options rather than just using direct structure copying. 2005-11-05 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_show_page), (_cairo_ps_surface_get_font): Add missing declarations for status variables. Thanks to Mikael Hallendal for pointing this out. 2005-11-04 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_append), (_cairo_array_append_multiple): Rename old, rarely used _cairo_array_append to _cairo_array_append_multiple. Add much more common _cairo_array_append. Fix both to return a cairo_status_t. Remove undocumented code to allow a non-copying append when elements is NULL, (let's not encourage unintialized data, shall we?) * src/cairo-array.c: (_cairo_user_data_array_set_data): Cleanup to not rely on undocumented copy-avoidance in _cairo_array_append. * src/cairo-font-subset.c: (cairo_pdf_ft_font_write): * src/cairo-meta-surface.c: (_cairo_meta_surface_composite), (_cairo_meta_surface_fill_rectangles), (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_intersect_clip_path), (_cairo_meta_surface_old_show_glyphs), (_cairo_meta_surface_fill): * src/cairo-pdf-surface.c: (_cairo_pdf_document_new_object), (_cairo_pdf_surface_add_stream), (_cairo_pdf_surface_add_pattern), (_cairo_pdf_surface_add_xobject), (_cairo_pdf_surface_add_alpha), (_cairo_pdf_surface_add_font), (_cairo_pdf_document_get_font), (_cairo_pdf_document_add_page): * src/cairo-ps-surface.c: (_cairo_ps_surface_show_page), (_cairo_ps_surface_get_font): * src/cairo-win32-font.c: (_flush_glyphs), (_add_glyph): Track change in number of arguments and return value of _cairo_array_append. 2005-11-04 Carl Worth * src/cairo-array.c: Add documentation for all _cairo_array interface functions. 2005-11-04 Carl Worth * src/cairoint.h: Rework support in the surface backend for the five basic drawing operations (paint, mask, stroke, fill, and show_glyphs). Now, all 5 operations have backend functions, and all use a consistent convention for argument naming and ordering. The old fill_path has been replaced with a new fill. The old show_glyphs function was recently renamed to old_show_glyphs and has not yet been ported to the new show_glyphs, (so all backends have a NULL show_glyphs function). In fact, of the 5 new backend functions, fill is the only one that has an implementation in any backend. As part of this cleanup a new cairo_stroke_style_t object is introduced to capture the many settings unique to the stroke operation, (line_width, line_cap, line_join, miter_limit, dash, num_dashes, and dash_offset). * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_fill), (_cairo_meta_surface_replay): * src/cairo-ps-surface.c: (_cairo_ps_surface_fill), (_ps_output_fill): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_fill): Track changes in surface backend from fill_path to fill. * src/cairo-surface.c: (_fallback_paint), (_cairo_surface_paint), (_fallback_mask), (_cairo_surface_mask), (_fallback_stroke), (_cairo_surface_stroke), (_fallback_fill), (_cairo_surface_fill), (_fallback_show_glyphs), (_cairo_surface_show_glyphs): * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_paint), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_cairo_gstate_fill), (_cairo_gstate_show_glyphs): Track the new canonical argument naming and ordering for the 5 drawing operations. * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_set_line_width), (_cairo_gstate_get_line_width), (_cairo_gstate_set_line_cap), (_cairo_gstate_get_line_cap), (_cairo_gstate_set_line_join), (_cairo_gstate_get_line_join), (_cairo_gstate_set_dash), (_cairo_gstate_set_miter_limit), (_cairo_gstate_get_miter_limit), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_stroke_extents): * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_step_dash), (_cairo_stroker_init), (_cairo_stroker_join), (_cairo_stroker_add_cap), (_compute_face), (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Move various stroke style settings into new cairo_stroke_style_t. * src/cairo-glitz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Drop NULL fill_path backend function which no longer exists. 2005-11-01 Carl Worth Reviewed by: keithp * src/cairoint.h: * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): * src/cairo-glitz-surface.c: (_cairo_glitz_surface_old_show_glyphs): * src/cairo-image-surface.c: * src/cairo-meta-surface.c: (_cairo_meta_surface_old_show_glyphs), (_cairo_meta_surface_replay): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_old_show_glyphs): * src/cairo-ps-surface.c: (_cairo_ps_surface_old_show_glyphs), (_ps_output_old_show_glyphs): * src/cairo-quartz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: (_cairo_xlib_surface_old_show_glyphs8), (_cairo_xlib_surface_old_show_glyphs16), (_cairo_xlib_surface_old_show_glyphs32), (_cairo_xlib_surface_old_show_glyphs): Rename surface->backend->show_glyphs to surface->backend->old_show_glyphs. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_show_glyphs): * src/cairo-surface.c: (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs), (_cairo_surface_old_show_glyphs): Move show_glyphs fallback from gstate to surface where it belongs. 2005-11-01 Keith Packard * src/cairo-surface.c: (_fallback_stroke), (_cairo_surface_stroke): Clean up argument order for _fallback_stroke to match other functions 2005-10-31 Carl Worth Originally 2005-10-28 Keith Packard : * src/cairo-gstate-private.h: Remove pen_regular field from the gstate. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_stroke_extents): * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_step_dash), (_cairo_stroker_init), (_cairo_stroker_fini), (_cairo_stroker_join), (_cairo_stroker_add_cap), (_compute_face), (_cairo_stroker_add_sub_edge), (_cairo_stroker_line_to_dashed), (_cairo_stroker_curve_to), (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): * src/cairo-surface.c: (_fallback_stroke), (_cairo_surface_stroke): Move stroke fallback from gstate to surface where it belongs. * src/cairo-pen.c: (_cairo_pen_init): Eliminate dependence on cairo_gstate_t object. * src/cairo-meta-surface.c: Fix to include just cairo-clip-private.h rather than cairo-gstate.private.h. 2005-10-31 T Rowley * src/cairo-win32-font.c (_cairo_win32_scaled_font_init_glyph_path): Call _cairo_scaled_glyph_set_path(). 2005-10-28 Keith Packard * src/cairo-surface.c: (_fallback_paint): Use _cairo_pattern_get_extents in _fallback_paint to bound paint operators. 2005-10-28 Keith Packard * src/cairo-pattern.c: (_cairo_pattern_get_extents): * src/cairo-surface.c: (_fallback_mask): * src/cairoint.h: Bound mask fallback operation by transformed mask and source. This should speed up any applications calling cairo_mask with a bounded source or mask operand. 2005-10-28 Keith Packard * src/cairo-gstate.c: (_cairo_operator_bounded_by_mask), (_cairo_operator_bounded_by_source), (_cairo_gstate_clip_and_composite), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (_cairo_image_surface_composite), (_cairo_image_surface_composite_trapezoids): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_show_glyphs): * src/cairoint.h: Split _cairo_operator_bounded into two separate functions _cairo_operator_bounded_by_mask and _cairo_operator_bound_by_source to distinguish between how operators use source and mask operands. 2005-10-27 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_paint): Fix leak of pattern (missing _cairo_pattern_fini). * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_paint), (_cairo_gstate_clip_and_composite), (_cairo_gstate_mask): * src/cairo-pattern.c: * src/cairo-surface.c: (_cairo_surface_mask_draw_func), (_fallback_mask), (_cairo_surface_mask): Move mask fallback from gstate to surface where it belongs. * src/cairoint.h: Temporarily export some previously private cairo_gstate functions, (soon to become private cairo_fallback functions). 2005-10-27 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_paint): * src/cairo-surface.c: (_fallback_paint), (_cairo_surface_paint): Move paint fallback from gstate to surface where it belongs. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_init), (_cairo_surface_set_clip): Add clip pointer to surface. 2005-10-25 Carl Worth * src/cairo-xcb-surface.c: Add explicit NULLs for unimplmented backend functions to better document what might be improved here. 2005-10-25 Carl Worth * ROADMAP: Add critical bug #4863 to the 1.0.4 roadmap. 2005-10-25 Carl Worth * BUGS: Add mention of suspected bug in PS backend. 2005-10-18 Carl Worth * ROADMAP: Mark the composite-integer-translate-source test as now passing for the PS backend (6 to go). * src/cairo-ps-surface.c: (pattern_type_supported), (pattern_operation_needs_fallback): Use fallbacks for any operation using a pattern other than a solid pattern, since it's the only type that will actually emit anything right now. * src/cairo-ps-surface.c: (emit_surface_pattern), (emit_linear_pattern), (emit_radial_pattern): Add comments indicating these functions are not yet implemented. 2005-10-18 Carl Worth Reviewed by: keithp * ROADMAP: Mark the operator-source and trap-clip tests as now passing for the PS backend (7 to go). * src/cairo-ps-surface.c: (_ps_output_add_fallback_area), (_ps_output_finish), (_ps_output_surface_create): Replace the surface->fallback_region with a page-level surface->fallback Boolean instead, since that's all it was being used as anyway. * src/cairo-ps-surface.c: (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_intersect_clip_path), (_ps_output_show_glyphs): Do nothing in the ps_output->fallback case. * src/cairo-ps-surface.c: (_ps_output_render_fallbacks): Do nothing in the ! ps_output->fallback case. 2005-10-18 Carl Worth * ROADMAP: Added list of 9 remaining PS backend test suite failures to the 1.2.0 roadmap. 2005-10-18 Carl Worth * test/text-antialias-none-ps-rgb24-ref.png: * test/text-antialias-subpixel-ps-rgb24-ref.png: Add reference images for antialiasing modes which are basically not applicable to the PS output. 2005-10-14 Carl Worth * test/Makefile.am: * test/dash-offset-negative-ps-rgb24-ref.png: Add verified image for PS output for dash-offset-negative. 2005-10-13 Carl Worth Reviewed by: keithp, otaylor * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): New function to create a snapshot copy of a pattern. * src/cairo-meta-surface.c: (_cairo_meta_surface_composite), (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_fill_path): Port code to use _init_pattern_with_snapshot rather than _cairo_pattern_init_copy for all source and mask patterns. * src/cairo-surface.c: (_cairo_surface_snapshot): New function to create a snapshot copy of a surface (still preliminary---no support for meta-surfaces or any other surface for which acquire_source_surface will fail). * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_init): Add new surface->is_snapshot and initialize to FALSE. * src/cairo-surface.c: (cairo_surface_mark_dirty), (cairo_surface_mark_dirty_rectangle), (cairo_surface_set_device_offset), (_cairo_surface_clone_similar), (_cairo_surface_composite), (_cairo_surface_fill_rectangle), (_cairo_surface_fill_region), (_fallback_fill_rectangles), (_cairo_surface_fill_rectangles), (_cairo_surface_fill_path), (_cairo_surface_composite_trapezoids), (_cairo_surface_copy_page), (_cairo_surface_show_page), (_cairo_surface_show_glyphs), (_cairo_surface_composite_fixup_unbounded), (_cairo_surface_composite_shape_fixup_unbounded): Assert that none of these surface-modifying functions are ever called with a snapshot surface. 2005-10-13 Carl Worth * src/cairo-pdf-surface.c: (emit_surface_pattern): Add comment for obviously broken function. 2005-10-13 Carl Worth Reviewed by: keithp * src/cairo-surface.c: (_fallback_fill_path), (_cairo_surface_fill_path): * src/cairo-gstate.c: (_cairo_gstate_fill): Push fill_path fallbacks down from gstate into the surface where all the other fallbacks are. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_surface_is_meta): Add _cairo_surface_is_meta. * src/cairo-meta-surface.c: (_cairo_meta_surface_fill_path), (_cairo_meta_surface_replay): Add antialias to the fill_path meta-surface command. * src/cairoint.h: * src/cairo-pdf-surface.c: (_cairo_pdf_surface_fill_path): * src/cairo-ps-surface.c: (_cairo_ps_surface_fill_path), (_ps_output_fill_path): Add an antialias parameter to the backend fill_path function. * test/fill-and-stroke.c: Fix test description. 2005-10-13 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_clip_and_composite_trapezoids): Fix indentation. 2005-10-13 Carl Worth Reviewed by: otaylor * configure.in: Increment libtool versioning to 5:0:3 in anticipation of 1.2.0 which will add interfaces. The motivation for this is to make the 1.1.1 release install a library which will be considered newer than 1.0.2. * Makefile.am: Add a release-verify-soname-major check to verify that the soname major number is always 2 as part of the release-publish target. 2005-10-12 T Rowley Reviewed by: cworth * src/cairo-clip.c (_cairo_clip_intersect_mask): Intersect clip region with target surface so we don't waste time and memory. 2005-10-12 Carl Worth * ROADMAP: Add extend-reflect to the 1.2.0 roadmap. Mark dashed splines and clip-all as fixed. * test/Makefile.am: * test/extend-reflect.c: (main): Mark extend-reflect as an expected failure. 2005-10-12 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/clip-fill-rule-pixel-aligned-ref.png: * test/clip-fill-rule-pixel-aligned-rgb24-ref.png: * test/clip-fill-rule-pixel-aligned.c: (pixel_aligned_path), (draw), (main): * test/clip-fill-rule-ps-rgb24-ref.png: * test/clip-fill-rule-ref.png: * test/clip-fill-rule-rgb24-ref.png: * test/clip-fill-rule.c: (star_path), (draw), (main): Add a couple of tests to improve our coverage (clipping under both fill rules). 2005-10-12 Carl Worth * src/cairo-pdf-surface.c (emit_pattern): Add return value at ASSERT_NOT_REACHED. 2005-10-11 Kristian Høgsberg * src/cairo-pdf-surface.c (emit_surface_pattern), (emit_linear_colorgradient), (emit_stiched_colorgradient), (emit_pattern_stops): Implement non-uniformly spaced color stops for PDF gradients. Patch from Jens Taprogge (#4722). 2005-10-10 Billy Biggs * src/cairo.h: Call it CAIRO_EXTEND_PAD instead of CAIRO_EXTEND_NEAREST. * src/cairoint.h: * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_acquire_surface): * src/cairo-image-surface.c (_cairo_image_surface_set_attributes): * src/cairo-pattern.c (_cairo_pattern_calc_color_at_pixel): * src/cairo-xcb-surface.c (_cairo_xcb_surface_set_attributes): * src/cairo-xlib-surface.c (_cairo_xlib_surface_set_attributes): Update everybody to use _PAD instead of _NEAREST. 2005-10-10 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_fill): Transform source pattern for _cairo_surface_fill_path() also (#4673). * test/ps-surface.c, test/pdf-surface.c (draw): Use cairo_fill_preserve() instead of cairo_save()/cairo_restore(). * src/cairo-pdf-surface.c (emit_surface_pattern): Add missing return values. 2005-10-10 Billy Biggs * src/cairo.h (cairo_extend_t): Add documentation for the extend modes. * src/cairo-pattern.c (cairo_pattern_set_extend), (cairo_pattern_get_extend): Document the extend functions for patterns. * src/cairo.c (cairo_copy_path): Remove some redundancy in the documentation. 2005-10-09 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (_ps_output_add_fallback_area), (_ps_output_finish), (format_is_translucent), (surface_is_translucent), (gradient_is_translucent), (pattern_is_translucent), (operator_always_opaque), (operator_always_translucent), (color_operation_needs_fallback), (pattern_operation_needs_fallback), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_show_glyphs), (_ps_output_fill_path), (_ps_output_render_fallbacks), (_ps_output_surface_create): Switch fallback from list of rects to region. Check operator and patterns for non-ps drawing ability. Operators can sometimes be always opaque, independent of the pattern, sometimes always translucent, independent of the pattern and sometimes depend on whether is translucent. 2005-10-09 Keith Packard * src/cairo-image-surface.c: (_cairo_surface_is_image): * src/cairoint.h: Add const to _cairo_surface_is_image parameter 2005-10-09 Billy Biggs * test/Makefile.am: Add a new test to start investigating bug 4183. * test/extend-reflect.c (draw), (main): The new test. * test/.cvsignore: Ignore the new test. 2005-10-09 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (emit_image): The comment said 'blend over white', the code did 'blend under garbage'. I made the code look like the comment. More tests pass now. mmm. 2005-10-09 Carl Worth * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/source-surface-scale-paint.c: (draw): Make surface image data static to work around a bug in cairo-meta-surface.c (not copying source surface pattern data). 2005-10-09 Billy Biggs reviewed by: davidr, cworth, otaylor * src/cairo.h: Add a "nearest" extend mode, where the closest pixel is repeated for pixels outside of the source area. Note that for gradients, applications which had explicitly set a repeat mode of NONE will now need to change to use NEAREST to get the same behaviour. * src/cairoint.h: Split CARIO_EXTEND_DEFAULT to indicate defaults for surfaces and gradients. The default for gradients is still the NEAREST beaviour. * src/cairo-glitz-surface.c (_cairo_glitz_pattern_acquire_surface): Support the NEAREST mode, change NONE to be TRANSPARENT. * src/cairo-image-surface.c: (_cairo_image_surface_set_attributes): Update the extend mode code to use the pixman support. * src/cairo-pattern.c (_cairo_pattern_init), (_cairo_pattern_calc_color_at_pixel): Handle NEAREST, note that support for NONE is not yet handled for gradients. * src/cairo-xcb-surface.c (_cairo_xcb_surface_set_attributes): Add a check for NEAREST but don't do anything useful. * src/cairo-xlib-surface.c (_cairo_xlib_surface_set_attributes): Add a check for NEAREST but don't do anything useful. * src/cairo-pdf-surface.c: Update a comment about the extend support in the image backend. 2005-10-08 Carl Worth * ROADMAP: Remove 1.0.2 entries now that it is out. Note that the PS backend has now been added to the test suite. 2005-10-08 Carl Worth * test/caps-sub-paths-ps-rgb24-ref.png: * test/dash-caps-joins-ps-rgb24-ref.png: * test/fill-and-stroke-ps-rgb24-ref.png: * test/fill-rule-ps-rgb24-ref.png: * test/leaky-polygon-ps-rgb24-ref.png: * test/line-width-ps-rgb24-ref.png: * test/path-data-ps-rgb24-ref.png: * test/rectangle-rounding-error-ps-rgb24-ref.png: * test/show-text-current-point-ps-rgb24-ref.png: * test/text-antialias-gray-ps-rgb24-ref.png: * test/transforms-ps-rgb24-ref.png: Add ps-backend-specific reference images for test for which the current output is fine, but just happens to not be identical to the existing reference images, (ie. just minor differences shape-boundary pixels). 2005-10-08 Carl Worth * test/.cvsignore: Ignore output of PS tests. * test/cairo-test.c: (create_ps_surface): Fix the PS tests to work again, (track change in create_surface interface). 2005-10-08 Carl Worth * configure.in: Enable PS and PDF backends by default, (in preparation for 1.2.0) 2005-10-08 Carl Worth * configure.in: Fix typo leading to truncated error message (Christian Biesinger ). 2005-10-07 Kristian Høgsberg * src/cairo-pdf-surface.c: (emit_solid_pattern), (emit_surface_pattern), (_cairo_pdf_color_stop_compare), (emit_pattern_stops), (emit_linear_pattern), (emit_radial_pattern), (emit_pattern), (_cairo_pdf_surface_fill_path), (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_show_glyphs): Apply patch from #4672 by Jens Taprogge to implement color stop sorting and multiple color stops for gradients. 2005-10-06 Carl Worth * src/cairo-xlib-surface.c: (_draw_image_surface): Add missing initialization for ximage.xoffset. * test/.cvsignore: Ignore the -argb32-out.png and -rgb24-out.png images as well. * test/cairo-test.c: (cairo_test_for_target): Pass a format to the surface create functions. (create_image_surface): Condense create_argb_image_surface and create_rgb_image_surface into a single function. (create_xlib_surface): Add support for CAIRO_FORMAT_RGB24 in addition to CAIRO_FORMAT_ARGB32. Add a new target for testing xlib with CAIRO_FORMAT_RGB24. 2005-10-04 Anders Carlsson * configure.in: Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. 2005-10-03 Carl Worth * NEWS: Add notes for the 1.0.2 release. 2005-09-30 Anders Carlsson * src/cairo-atsui-font.c: (_cairo_atsui_font_face_destroy): (_cairo_atsui_font_face_scaled_font_create): (cairo_atsui_font_face_create_for_atsu_font_id): (CreateSizedCopyOfStyle): (_cairo_atsui_font_set_metrics): (_cairo_atsui_font_create_scaled): (_cairo_atsui_font_create_toy): (_cairo_atsui_font_init_glyph_metrics): (_move_to): (_line_to): (_curve_to): (_close_path): (_cairo_atsui_scaled_font_init_glyph_path): (_cairo_atsui_font_scaled_glyph_init): (_cairo_atsui_font_text_to_glyphs): (_cairo_atsui_font_show_glyphs): * src/cairo-atsui.h: Bring the ATSUI backend up to date wrt the new font backend changes. Also, add cairo_atsui_font_face_create_for_atsu_font_id which takes an ATSUFontID and returns a cairo_font_face_t. 2005-09-30 Bertram Felgenhauer reviewed by: keithp * src/cairo-hull.c (_cairo_hull_create): simplify id initialisation of last patch reviewed by: cworth * src/cairo-hull.c (_cairo_hull_create), (_cairo_hull_vertex_compare): Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead. (#4599) * ROADMAP: mark #4599 as fixed 2005-09-29 Keith Packard reviewed by: cworth * test/Makefile.am: * test/a8-mask-rgb24-ref.png: * test/cairo-test.c: (cairo_target_format_name), (create_argb_image_surface), (create_rgb_image_surface), (create_xlib_surface), (create_ps_surface), (ps_surface_write_to_png), (cleanup_ps), (cairo_test_for_target), (cairo_test_expecting): * test/caps-joins-ps-rgb24-ref.png: * test/caps-joins-rgb24-ref.png: * test/caps-sub-paths-rgb24-ref.png: * test/clip-all-rgb24-ref.png: * test/clip-nesting-ps-rgb24-ref.png: * test/clip-nesting-rgb24-ref.png: * test/clip-operator-rgb24-ref.png: * test/clip-twice-ps-rgb24-ref.png: * test/clip-twice-rgb24-ref.png: * test/composite-integer-translate-over-repeat-rgb24-ref.png: * test/composite-integer-translate-over-rgb24-ref.png: * test/composite-integer-translate-source-rgb24-ref.png: * test/create-from-png-rgb24-ref.png: * test/create-from-png-stream-rgb24-ref.png: * test/dash-caps-joins-rgb24-ref.png: * test/dash-offset-negative-rgb24-ref.png: * test/fill-and-stroke-rgb24-ref.png: * test/fill-rule-rgb24-ref.png: * test/filter-nearest-offset-rgb24-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/leaky-polygon-rgb24-ref.png: * test/line-width-rgb24-ref.png: * test/linear-gradient-rgb24-ref.png: * test/mask-ctm-rgb24-ref.png: * test/mask-rgb24-ref.png: * test/mask-surface-ctm-rgb24-ref.png: * test/move-to-show-surface-rgb24-ref.png: * test/nil-surface-rgb24-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-rgb24-ref.png: * test/paint-rgb24-ref.png: * test/paint-with-alpha-rgb24-ref.png: * test/path-data-rgb24-ref.png: * test/pixman-rotate-rgb24-ref.png: * test/rectangle-rounding-error-rgb24-ref.png: * test/rel-path-rgb24-ref.png: * test/scale-source-surface-paint-rgb24-ref.png: * test/self-copy-rgb24-ref.png: * test/self-intersecting-rgb24-ref.png: * test/set-source-rgb24-ref.png: * test/show-text-current-point-rgb24-ref.png: * test/source-clip-rgb24-ref.png: * test/source-surface-scale-paint-rgb24-ref.png: * test/surface-pattern-rgb24-ref.png: * test/text-antialias-gray-rgb24-ref.png: * test/text-antialias-none-rgb24-ref.png: * test/text-antialias-subpixel-rgb24-ref.png: * test/text-pattern-rgb24-ref.png: * test/text-rotate-rgb24-ref.png: * test/transforms-rgb24-ref.png: * test/translate-show-surface-rgb24-ref.png: * test/trap-clip-rgb24-ref.png: * test/unantialiased-shapes-ps-rgb24-ref.png: * test/unantialiased-shapes-rgb24-ref.png: * test/unbounded-operator-rgb24-ref.png: Add rgb24 surface tests, support per-target reference images and support PS surface testing 2005-09-29 Carl Worth * src/cairo-surface.c: (_cairo_surface_composite_trapezoids): Oops. Reverting debug output that was mistakenly committed. 2005-09-29 Carl Worth * ROADMAP: Add date of 2005-10-03 for 1.0.2. Add 4630 to the 1.0.2 roadmap. 2005-09-28 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Use _cairo_utf8_to_utf16 for character conversion. 2005-09-28 T Rowley * ROADMAP: Note that Bug #4612 (Text not being drawn if first character entirely out of surface) is now fixed. * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_bbox): Add cast so that sign conversion doesn't alter comparison. 2005-09-27 Carl Worth * ROADMAP (https): Add 4612 to the 1.0.2 roadmap. 2005-09-27 T Rowley * ROADMAP: Note that Bug #4602 (use of 0x0 images causes win32 backend failure) is now fixed. * src/cairo-win32-surface.c (_create_dc_and_bitmap): Avoid creating size-0 bitmap, which fails. 2005-09-27 Carl Worth * ROADMAP: Note that bug #4409 (Dashes are missing initial caps) is now fixed. * src/cairo-path-stroke.c: (_cairo_stroker_add_cap), (_cairo_stroker_add_leading_cap), (_cairo_stroker_add_trailing_cap), (_cairo_stroker_add_caps): Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap. * src/cairo-path-stroke.c: (_cairo_stroker_line_to_dashed): Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate. * test/Makefile.am (XFAIL_TESTS): * test/dash-caps-joins-ref.png: * test/dash-caps-joins.c: (main): Remove dash-caps-joins from the XFAIL list and add reference image. 2005-09-27 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-joins-ref.png: * test/caps-joins.c: (make_path), (draw), (main): * test/dash-caps-joins.c: (make_path), (draw), (main): Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). 2005-09-26 Carl Worth * ROADMAP: Added bug 4599 and 4602 to the 1.0.2 roadmap. 2005-09-26 Tor Lillqvist * src/cairo-win32-font.c (_win32_scaled_font_get_scaled_hfont), (_win32_scaled_font_get_unscaled_hfont): Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, print error message and set metrics to zero. (#3927, Hans Breuer) (cairo_win32_scaled_font_select_font): Add detail on what API failed to the error messages. 2005-09-19 Carl Worth * ROADMAP: Note that the clip-all test now passes. 2005-09-19 Carl Worth * src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report. * test/Makefile.am: * test/clip-all.c: (main): Remove clip-all from the XFAIL list since it works now. 2005-09-19 Carl Worth Originally: 2005-09-19 Hans Breuer * src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections] * src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in. 2005-09-19 Carl Worth * src/Makefile.am (libcairo_la_SOURCES): Add cairo-cache-private.h which was missing from the list, (thanks to sunmoon1997). 2005-09-19 Carl Worth * ROADMAP: Note that 4414 is now fixed. 2005-09-18 Billy Biggs * configure.in: Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. 2005-09-18 Billy Biggs Bug #4414, reviewed by otaylor, cworth. * configure.in: Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE. 2005-09-16 Carl Worth * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_init): Prefer cairo_bool_t, TRUE, and FALSE over int, 1, and 0. 2005-09-16 Carl Worth * ROADMAP: Mark 4408 as resolved. 2005-09-16 Carl Worth Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408 * src/cairo-path-stroke.c: (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now). 2005-09-16 Carl Worth * ROADMAP: Mark 4260 as resolved. Add 4414 to the 1.0.2 roadmap. 2005-09-14 David Reveman * src/cairo-glitz-surface.c: Track changes to glitz. Update glyph caching. (_glitz_operator): Change Carl's comment about saturate operator. 2005-09-13 Carl Worth * src/cairo-scaled-font.c (_cairo_scaled_font_text_to_glyphs): Set return-value *glyphs to NULL after freeing it in the error case. 2005-09-13 Carl Worth * ROADMAP: Mark bug #4299 fixed (by the several lock-related commits below). Add clip-all XFAIL to the 1.0.2 roadmap. 2005-09-13 Carl Worth * src/cairo-scaled-font.c: (_cairo_scaled_glyph_lookup): Add missing locking around the call into the thread-shared cache here. 2005-09-13 Carl Worth * test/pthread-show-text.c: (start), (main): Adjust parameters to stress things a bit more, (better exposing another locking bug). 2005-09-13 Carl Worth * src/cairo-scaled-font.c: (cairo_scaled_font_reference), (cairo_scaled_font_destroy): Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. 2005-09-13 Carl Worth * test/cairo-test.h: Add documentation for cairo_test functions. * test/cairo-test.c: (cairo_test_init), (cairo_test_expecting): Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test(). * test/.cvsignore: * test/Makefile.am: * test/pthread-show-text.c: (start), (main): Add new test for bug #4299 as reported by Alexey Shabalin. 2005-09-12 Carl Worth Originally 2005-09-06 Carl Worth : * src/cairo-cache-private.h: Rename: _cairo_cache_preserve -> _cairo_cache_freeze _cairo_cache_release -> _cairo_cache_thaw * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): Track rename of _cairo_cache_freeze/thaw. * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_freeze), (_cairo_cache_thaw), (_cairo_cache_shrink_to_accomodate), (_cairo_cache_insert): Track rename. Add stacking behavior to _cairo_cache_freeze/thaw. Abstract out shrinking from _cairo_cache_insert so that _cairo_cache_thaw will also shrink as necessary. * src/cairo-cache.c: (_cairo_cache_remove): Make this function static since its current limitation to accept an entry rather than a key makes it not as externally useful as would be desirable. Document this limitation. 2005-09-12 Carl Worth Fix for bug #4401 as reported by Tim Mooney: * configure.in: Don't bother checking for sincos function. * src/cairo-matrix.c: (cairo_matrix_init_rotate): Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least). 2005-09-09 Carl Worth * ROADMAP: Add two bugs to the 1.0.2 roadmap: 4408 Missing dashes on stroked curves 4409 Dashes are missing initial caps 2005-09-08 Carl Worth * ROADMAP: Add open bug list for 1.0.2. 2005-09-07 Carl Worth * ROADMAP: Put win32 mutex locking on the 1.2.0 roadmap. Portability improvements for win32 thanks to Hans Breuer : * pixman/src/pixman.h: Defined sized-integer types when under the influence of _MSC_VER and without stdint.h. * src/cairoint.h: Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release). 2005-09-07 Carl Worth * src/cairo-features.h.in: Give cairo_public an empty definition by default. * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb-xrender.h: * src/cairo-xcb.h: * src/cairo-xlib-xrender.h: * src/cairo-xlib.h: * src/cairo.h: Add new cairo_public macro before every public function call prototype. 2005-09-07 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass appropriate pointer for image_extra to release_dest_image. 2005-09-07 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. 2005-09-06 Carl Worth * src/.cvsignore: Ignore cairo.def. * src/cairo-gstate.c: Remove cairo_private since we only use it in .h files, not .c files. 2005-09-02 Carl Worth * ROADMAP: Make a very preliminary attempt at 1.0.2, 1.2.0, and 1.4.0 roadmaps. 2005-09-02 Carl Worth * doc/public/tmpl/cairo-version.sgml: Add description of cairo's versioning scheme. 2005-09-02 Carl Worth * src/cairo-cache-private.h: * src/cairo-cache.c: (_cairo_cache_fini): Clean up some documentation issues pointed out by otaylor. 2005-09-01 Keith Packard reviewed by: otaylor deserves credit for noticing a problem * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Oops. Call _cairo_scaled_font_set_metrics to set user-space metrics for scaled fonts. 2005-09-01 Bertram Felgenhauer * src/cairo-scaled-font.c (_cairo_scaled_font_text_to_glyphs): Add missing pair of braces. This fixes a crash on text output. 2005-09-01 Carl Worth * test/cairo-test.h: Add includes to get sized-integer types such as uint32_t. * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/move-to-show-surface.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/set-source.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/translate-show-surface.c: (draw): Fix declaration of image data array to be uint32_t rather than unsigned long. Fixes four out of the remaining five failures in bug #4245. 2005-08-31 Carl Worth * test/cairo-test.c: (create_xlib_surface): Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason). * test/clip-all.c: (main): Note reason for expected failure. 2005-08-31 Owen Taylor * src/cairoint.h (_cairo_scaled_font_backend) src/cairo-scaled-font.c: Add an optional text_to_glyphs() virtual function that the backend can implement instead of ucs4_to_index(). * test/cairo-test.c: Protect inclusion of fontconfig.h with HAVE_FCFINI. * test/nil-surface.c: Remove stray cairo-ft.h include. * test/nil-surface.c: Include stddef.h for NULL. * test/create-from-png-stream.c (draw): Open the file "rb". * src/cairo-win32-font.c (_win32_scaled_font_create): Add a CAIRO_ANTIALIAS_DEFAULT: 2005-08-31 Owen Taylor * src/cairo-xlib-surface.c (_get_image_surface) (_draw_image_surface): Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) 2005-08-31 Keith Packard Reviewed by: otaylor, cworth * src/Makefile.am: Split out scaled font code to cairo-scaled-font.c * src/cairo-cache-private.h: * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_fini), (_cairo_cache_create), (_cairo_cache_destroy), (_cairo_cache_preserve), (_cairo_cache_release), (_cairo_cache_lookup), (_cairo_cache_remove_random), (_cairo_cache_insert), (_cairo_cache_remove), (_cairo_cache_foreach): Replace cairo cache implementation (this code from cworth) * src/cairo-debug.c: (cairo_debug_reset_static_data): * src/cairo-font.c: (_cairo_font_reset_static_data): No more global glyph cache to clean up * src/cairo-ft-font.c: (_get_bitmap_surface), (_render_glyph_outline), (_render_glyph_bitmap), (_transform_glyph_bitmap), (_get_pattern_ft_options), (_cairo_ft_scaled_font_create), (_cairo_ft_scaled_font_create_toy), (_decompose_glyph_outline), (_cairo_ft_scaled_glyph_init), (_cairo_ft_ucs4_to_index), (_cairo_ft_show_glyphs), (_cairo_ft_font_face_scaled_font_create), (_cairo_ft_font_face_create), (cairo_ft_font_face_create_for_pattern), (cairo_ft_font_face_create_for_ft_face): Store glyphs in new per-scaled font caches which hold user-space metrics and device space bounding boxes * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs), (_cairo_gstate_show_glyphs_draw_func), (_cairo_gstate_show_glyphs): Refactor glyph drawing APIs so that the surface API is invoked directly from the gstate code. * src/cairo-path.c: (_cairo_path_fixed_create), (_cairo_path_fixed_destroy): Add path creation/destruction routines (to hold glyph paths) * src/cairo-scaled-font.c: (_cairo_scaled_glyph_keys_equal), (_cairo_scaled_glyph_fini), (_cairo_scaled_glyph_destroy), (_cairo_scaled_font_set_error), (cairo_scaled_font_status), (_cairo_scaled_font_map_lock), (_cairo_scaled_font_map_unlock), (_cairo_scaled_font_map_destroy), (_hash_bytes_fnv), (_cairo_scaled_font_init_key), (_cairo_scaled_font_keys_equal), (_cairo_scaled_font_init), (_cairo_scaled_font_set_metrics), (_cairo_scaled_font_fini), (cairo_scaled_font_create), (cairo_scaled_font_reference), (cairo_scaled_font_destroy), (cairo_scaled_font_extents), (cairo_scaled_font_glyph_extents), (_cairo_scaled_font_text_to_glyphs), (_cairo_scaled_font_glyph_device_extents), (_cairo_scaled_font_show_glyphs), (_scaled_glyph_path_move_to), (_scaled_glyph_path_line_to), (_scaled_glyph_path_curve_to), (_scaled_glyph_path_close_path), (_cairo_scaled_font_glyph_path), (_cairo_scaled_glyph_set_metrics), (_cairo_scaled_glyph_set_surface), (_cairo_scaled_glyph_set_path), (_cairo_scaled_glyph_lookup): New implementation of scaled fonts which uses per-scaled_font caches for glyphs and keeps user-space metrics, device-space bboxes along with glyph images and/or glyph paths. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar_with_format), (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_finish), (_cairo_xlib_surface_clone_similar), (_cairo_xlib_surface_font_init), (_cairo_xlib_surface_scaled_font_fini), (_cairo_xlib_surface_scaled_glyph_fini), (_cairo_xlib_surface_add_glyph), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs): Adapt to new scaled font API changes. * src/cairoint.h: New cache and scaled_font APIs * test/clip-operator-ref.png: * test/operator-clear-ref.png: * test/operator-source-ref.png: * test/text-antialias-gray-ref.png: * test/text-antialias-gray.c: * test/text-antialias-none-ref.png: * test/text-antialias-none.c: * test/text-antialias-subpixel-ref.png: * test/text-antialias-subpixel.c: * test/unbounded-operator-ref.png: Repond to bug fix in metrics computation for glyphs where y values were rounded up instead of down because of a sign difference between cairo and FreeType. 2005-08-31 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.1.1 after making branch tag BRANCH_1_0. 2005-08-31 Carl Worth * INSTALL: Add note to use ./autogen.sh instead of ./configure when working with source from cvs. 2005-08-31 Carl Worth * test/get-and-set.c: Fix test to not try to set a non-invertible matrix. (We'd gotten away with this due to round-off error on many systems). Fixes one out of six failures in bug #4245. 2005-08-31 Carl Worth * AUTHORS: Add Radek Doulík. * test/.cvsignore: * test/Makefile.am: * test/clip-all.c: (draw), (main): Add test exposing a BadValue (0-size pixmap) bug in cairo-xlib-surface when everything is clipped away (thanks to Radek Doulík ). 2005-08-30 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Liberalize the ServerVendor check so that we can handle the Mandriva vendor string. (#4298, Frederic Crozat) 2005-08-27 Owen Taylor * src/cairo-pattern.c (_cairo_pattern_acquire_surface_for_gradient): Use a 8xN rather than a 1xN strip for a vertical gradient. This is much more tolerant of slow compositing code, and is worth some extra expense computing the gradient. (#4263, found in test case from Richard Stellingwerff) 2005-08-27 Owen Taylor reviewed by: cworth * src/cairo-traps.c (_cairo_traps_extract_region): Make the check for rectangular trapezoids simpler and more accurate. (#4220, found using test case from Richard Stellingwerff) 2005-08-27 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Make the vendor string check for XFree86 more liberal, to deal with older versions of gentoo that modified it in a different way. (#4231, fix from Billy Biggs) 2005-08-27 Owen Taylor * src/cairoint.h: Undef MIN/MAX before defining them in case some system header happens to define them. (#4196, Christian Biesinger) 2005-08-27 Owen Taylor * src/cairo-image-surface.c (cairo_image_surface_create) (cairo_image_surface_create_for_data): Fix docs not to talk about %NULL returns. (#4271, Duncan Coutts.) 2005-08-25 Tor Lillqvist * Makefile.am (developer_zip_file): Include the documentation, too. 2005-08-24 Billy Biggs * doc/public/tmpl/cairo-font-options.sgml: * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-image.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-scaled-font.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-text.sgml: * doc/public/tmpl/cairo-transforms.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo-version.sgml: * doc/public/tmpl/cairo-win32-fonts.sgml: * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Update formatting of the title and short description, as this actually changes how the TOC appears in devhelp. 2005-08-24 Bertram Felgenhauer * Makefile.am (.PHONY): add docs-publish as a phony target 2005-08-24 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.1 after tagging RELEASE_1_0_0. 2005-08-24 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.0 and libtool versioning to 4:2:2. 2005-08-24 Carl Worth * NEWS: Fix typos. Add CAIRO_STATUS_INVALID_DASH. 2005-08-24 Carl Worth * README: Unabbreviate "eg." to "for example,". 2005-08-24 Carl Worth * PORTING_GUIDE: Update name from "0.5 porting guide" to "1.0 porting guide." 2005-08-24 Carl Worth * README: Some text cleanups from Øyvind Kolås. 2005-08-24 Carl Worth * AUTHORS: Add Amaury Jacquot. 2005-08-24 Carl Worth * RELEASING: Fix typo. 2005-08-24 Carl Worth * AUTHORS: * README: Fix typos. 2005-08-24 Tor Lillqvist * src/Makefile.am (cairo.def): Drop PDF and PS backend and FT font API from Win32 DLL entry points for now. 2005-08-24 Carl Worth * README: Fix typos. 2005-08-24 Carl Worth * README: Move glitz into the experimental list. 2005-08-24 Carl Worth * INSTALL: Put glitz in the experimental section. * configure.in: Give glitz the experimental treatment, (disable it by default. 2005-08-24 Carl Worth * INSTALL: Add some more detailed build instructions. 2005-08-24 Billy Biggs * src/cairo.c (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text): Fix some minor typos in the doc. 2005-08-24 Carl Worth * configure.in: Disable ATSUI by default as well. 2005-08-24 Carl Worth * BUGS: Add pointer to http://bugs.freedesktop.org. 2005-08-24 Carl Worth * README: Add more detailed notes on what is required to compile cairo on Mac OS X or win32. 2005-08-24 Carl Worth * Makefile.am: * RELEASING: Change upload directory from snapshots to releases now thatwe're doing stable releases of cairo. 2005-08-24 Carl Worth * configure.in: Give PostScript and PDF backends the experimental treatment, disabling them by default. 2005-08-24 Carl Worth * NEWS: Add notes for 1.0 release. Thanks to Owen Taylor. * README: Note that PS and PDF backends are experimental. * ROADMAP: Note the progress that has been completed so that 1.0 is ready now. 2005-08-24 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_set_dpi), (color_is_translucent), (pattern_is_translucent), (emit_image), (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_path_move_to), (_ps_output_path_line_to), (_ps_output_path_curve_to), (_ps_output_intersect_clip_path), (_ps_output_show_glyphs), (_ps_output_fill_path), (_cairo_ps_surface_render_page): Use new device_x_scale/device_y_scale surface fields to set the device coordinate space to the nominal pixels. Treat more alpha values as translucent (up to 0.999) Fix emit_image to actually use a temporary image when necessary. Change PS coordinate space to match cairo (top-down), adjust PS output to use new space. Find more cases where PS output was not supported and fall back to image surface. 2005-08-24 Keith Packard reviewed by: cworth * src/cairo-meta-surface.c: (_cairo_meta_surface_replay): _cairo_surface_show_glyphs may return UNSUPPORTED in which case a call to scaled_font->backend->show_glyphs is needed. 2005-08-24 Keith Packard reviewed by: cworth * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_apply_device_transform), (_cairo_gstate_apply_device_inverse_transform), (_cairo_gstate_get_matrix), (_cairo_gstate_set_matrix), (_cairo_gstate_identity_matrix), (_cairo_gstate_user_to_backend), (_cairo_gstate_backend_to_user): * src/cairo-surface.c: (_cairo_surface_init), (cairo_surface_set_device_offset): * src/cairoint.h: Add device_x_scale and device_y_scale to surface so that the coordinate system seen by the backend can differ from the nominal device coordinate space used by the application. Useful for printer backends where the device coordinate space should be in pixels while the user visible device space is in points. There is no API to set these values; the backends using this functionality should do that themselves before the first cairo_t is created. 2005-08-24 Carl Worth * src/cairo.c: (cairo_show_text): Fix cairo_show_text to advance the current point. Add documentation for cairo_show_text. * test/.cvsignore: * test/Makefile.am: * test/show-text-current-point-ref.png: * test/show-text-current-point.c: (draw), (main): Add test to verify that the current-point-advancing behavior of cairo_show_text is working. * BUGS: Remove bug about cairo_show_text not advancing the current point. 2005-08-24 Carl Worth * src/cairo.c (cairo_new_path, cairo_move_to, cairo_line_to, cairo_curve_to, cairo_arc, cairo_rel_move_to, cairo_rel_line_to, cairo_rel_curve_to, cairo_rectangle, cairo_close_path): Update documentation for most path construction functions. Add discussion of the effects on the current point to all functions. Rephrase the wording of the relative functions. Big rewrite of cairo_arc description. Add discussion of join not caps to cairo_close_path. 2005-08-23 Carl Worth * src/cairo.h: Minor doc edit. 2005-08-23 Carl Worth * doc/public/tmpl/cairo-matrix.sgml: Minor doc edits. 2005-08-23 Carl Worth * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo.sgml: Prefer cairo over Cairo when not at the beginning of a sentence. 2005-08-23 Billy Biggs * doc/public/tmpl/cairo-image.sgml: Add a long description. * doc/public/tmpl/cairo.sgml: Fix a typo. * src/cairo-font.c: Document the return value of cairo_scaled_font_reference(). * src/cairo-xlib-surface.c: Document the width and height parameters of cairo_xlib_surface_set_drawable(). 2005-08-23 Billy Biggs * src/cairo.c: Document the rest of the path functions (except the two text ones, which should coordinate with their corresponding non-path versions). * doc/public/cairo-sections.txt: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-text.sgml: Minor shuffling. 2005-08-23 Kristian Høgsberg * AUTHORS: * README: More minor edits. 2005-08-23 Billy Biggs * README: Minor edits. 2005-08-23 Billy Biggs * doc/public/tmpl/cairo-matrix.sgml: Update the long description of cairo_matrix_t to match the current sources. * doc/public/tmpl/cairo-paths.sgml: Add cairo_path_data_t. * src/cairo-ft-font.c: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo.c: * src/cairo.h: Some documentation updates and improvements. 2005-08-23 Carl Worth * test/.valgrind-suppressions: Add suppression for uninitialized data in fbBltOne. 2005-08-23 Carl Worth * README: Big update in preparation for 1.0. 2005-08-23 Carl Worth * AUTHORS: Added several names to the AUTHORS file (since 2005-01-24): Josh Aas Billy Biggs Damien Carbery Steve Chaplin Tomasz Cholewo John Ehresman Behdad Esfahbod Bertram Felgenhauer J. Ali Harlow Adrian Johnson Michael Johnson Øyvind Kolås Martin Kretzschmar Tor Lillqvist Luke-Jr Jeff Muizelaar Peter Nilsson Geoff Norton Robert O'Callahan Mike Owens Stuart Parmenter Tim Rowley Jason Dorje Short Travis Spencer Malcolm Tredinnick 2005-08-23 Billy Biggs * doc/public/cairo-docs.xml: Experimental Quartz and XCB backends removed from the public doc for now. 2005-08-23 Owen Taylor * configure.in: Reverse the help text for --enable-xcb, --enable-quartz. 2005-08-23 Owen Taylor * configure.in: Disable XCB and Quartz backends unless explicitely enabled. Add a big warning message if they are enabled about bugs and API instability. 2005-08-23 Owen Taylor * src/cairo-pattern.c (_cairo_pattern_calc_color_at_pixel): Rip out all the code for doing anything other than linear interpolation between color stops, instead of doing different funky things based on pattern->filter. (#4184) 2005-08-23 Carl Worth * src/cairo-font.c: (cairo_font_face_reference), (cairo_scaled_font_reference): Remove assert statements that violate two intentional instances of ref_count == 0. 2005-08-23 Carl Worth * test/text-pattern.c: (draw): Fix memory leak of pattern. 2005-08-23 Owen Taylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_show_glyphs): Check for AlphaBlend() with GetProcAddress() to support older compilation environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla) * src/cairo-win32-private.h: Remove WINVER define, since it was there only for AlphaBlend(). 2005-08-23 Owen Taylor * src/cairo-ft-font.c: Call _get_pattern_load_flags() on the resolved pattern, not the input pattern. (Further fix from sunmoon1997) 2005-08-23 Carl Worth Reviewed by: otaylor Fixes bug #4198 * src/cairo-font.c: (cairo_font_face_reference), (cairo_font_face_destroy), (cairo_scaled_font_reference), (cairo_scaled_font_destroy): * src/cairo-pattern.c: (cairo_pattern_reference), (cairo_pattern_destroy): * src/cairo-surface.c: (cairo_surface_reference), (cairo_surface_destroy): * src/cairo.c: (cairo_reference), (cairo_destroy): Detect (by assert and crash) if users attempt to twice destroy or re-reference a destroyed object. The condition for detecting this case is a ref_count of 0. 2005-08-23 Carl Worth * src/cairo.h: * src/cairoint.h: Move CAIRO_CONTENT_VALID and CAIRO_FORMAT_VALID from the public cairo.h to the private cairoint.h where they belong. 2005-08-23 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_scaled_font_show_glyphs): when creating the temporary mask, do glyph ADD mask, not (glyph IN source) ADD mask. Set the mask as having component alpha when it's 4-channel. * test/text-antialias-subpixel.c test/Makefile.am: No longer XFAIL. * test/text-antialias-gray.c test/text-antialias-subpixel.c * test/text-antialias-none.c (draw): Don't turn off metrics hinting, it doesn't make sense. * test/text-antialias-*-ref.png: Update. 2005-08-23 Carl Worth * CODING_STYLE: Revise the description of indentation and tabs to be clear (I hope). 2005-08-23 Carl Worth * test/text-antialias-subpixel.c (draw): Clear to opaque white at the beginning of the test so that the 0 alpha values in the destination don't cause bizarre results. (main): Note that only the image backend should fail now. * test/text-antialias-subpixel-ref.png: Add new reference image. 2005-08-23 Carl Worth * test/text-rotate-ref.png: * test/text-rotate.c: (draw), (main): Add more comments on the improved state of this bug. Commit a reference image generated with cairo_text_path; cairo_fill. (We may not require getting this exact result, but I think it is worth examining the differences closely.) 2005-08-23 Carl Worth * Makefile.am: Add docs-publish target to build and push documentation, (since our nightly server-side cron job is not working right now). 2005-08-23 Carl Worth * BUGS: * src/cairo-xlib-screen.c: Move comment about missing cleanup of caches on XCloseDisplay from BUGS to a _cairo_xlib_close_display. Also covered in bug #4120. 2005-08-23 Carl Worth * test/Makefile.am: * test/caps-sub-paths.c: (main): Remove caps-sub-paths from the XFAIL list since it is fixed now. 2005-08-23 Carl Worth Fix for bug #4205: * src/cairo-path-stroke.c: (_cairo_stroker_add_caps): (_cairo_path_fixed_stroke_to_traps): Abstract the cap-addition code from the end of the stroke operation into a new _cairo_stroker_add_caps function. * src/cairo-path-stroke.c: (_cairo_stroker_move_to): Call the new _cairo_stroker_add_caps at the beginning of every move_to so that we get caps on every subpath and not just the last one. 2005-08-23 Billy Biggs * src/Makefile.am: Add libpixman.la to the libcairo_la_DEPENDENCIES line so that changes to pixman get picked up. 2005-08-23 Owen Taylor Some fixes for warnings from sparse (Part of #4208, Kjartan Maraas) * test/cairo-test.c (create_xlib_surface): Use NULL, not 0. * src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): Fix C99'ism of mixed code and declarations. 2005-08-23 Carl Worth * BUGS: caps only added to last subpath: COVERED by test/caps-sub-paths and bug #4205. 2005-08-23 Carl Worth * test/caps-sub-paths.c: Use the expect_failure variant of cairo_test so that make check prints the reason this test fails. 2005-08-23 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-sub-paths-ref.png: * test/caps-sub-paths.c: (draw), (main): Add test to demonstrate bug #4205, missing caps on all but last sub-path in a complex path. 2005-08-22 Carl Worth * src/cairo.c (cairo_create): Remove discussion of the BAD_NESTING restriction from the documentation of cairo_create. No such restriction exists anymore. 2005-08-22 Carl Worth Fix for bug #4192: * src/cairo-ft-font.c: (_font_map_release_face_lock_held): New function to handle both calling FT_Done_Face on unscaled->face and decrementing font_map->num_open_faces. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_destroy), (_cairo_ft_unscaled_font_destroy), (_cairo_ft_unscaled_font_lock_face): Call new _font_map_release_face_lock_held as approporiate. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_destroy): Assert that (font_map->num_open_faces == 0) when we're done, to help guarantee the bug is fixed. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_fini): Don't call FT_Done_Face anymore, instead assert that (unscaled->face == NULL) by the time this function is called. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_set_scale): Prefer TRUE/FALSE as values for cairo_bool_t have_scale. 2005-08-22 Billy Biggs * doc/public/Makefile.am: Add version.xml to content_files so it will be copied to the right place for DESTDIR builds. 2005-08-22 Billy Biggs * doc/public/cairo-docs.xml: * doc/public/cairo-sections.txt: Rework the index for the reference manual. * doc/public/tmpl/cairo-font-options.sgml: * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-image.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-scaled-font.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-text.sgml: * doc/public/tmpl/cairo-transforms.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo-version.sgml: * doc/public/tmpl/cairo-win32-fonts.sgml: * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Update descriptions and add new files for added sections. 2005-08-22 Owen Taylor * src/cairo-ft-font.c: Make cairo_ft_unscaled_font_backend static. * src/cairo-gstate.c (_cairo_gstate_fini): Add missing static. * src/cairo-pattern.c (_cairo_pattern_init_gradient): * src/cairo-ps-surface.c (_cairo_ps_surface_finish): * src/cairo-xlib-surface.c (_get_image_surface): Use NULL, not 0. * src/cairo-font.c (_cairo_lock,unlock,get_global_image_glyph_cache): Use void in the definition of void functions, not (). * src/cairo-pattern.c: Make non-exported cairo_pattern_nil_* static. 2005-08-22 Carl Worth * BUGS: ref_counts will go negative: COVERED by https://bugs.freedesktop.org/show_bug.cgi?id=4198 2005-08-22 Carl Worth * BUGS: Remove several entries in an effort to obsolete the BUGS file in favor of bugzilla and cairo/test. Specifically: cairo_image_surface_create should clear image: NOTABUG. The user can clear if desired, and cairo clearing unconditionally would be performance overhead). cairo_clip is really slow: FIXED/COVERED. Since the time this entry was added we've got rectangular, pixel-alignend clipping optimized. And there's a bug in bugzilla (https://bugs.freedesktop.org/show_bug.cgi?id=4191) for optimizing IN. self-intersecting path is wrong: COVERED by test/self-intersecting.c. Cairo is crashing Xnest: NEEDINFO. Is this still happening? Xfake has been working quite well for a very long time now. font-size="0" in SVG does bad things: FIXED. 2005-08-22 Bertram Felgenhauer * src/cairoint.h, src/cairo-matrix.c (_cairo_matrix_compute_eigen_values): remove. 2005-08-22 Bertram Felgenhauer * src/cairo-arc.c (_arc_segments_needed): correct the calculation of the error bound. 2005-08-22 Bertram Felgenhauer * src/cairo-pen.c (_cairo_pen_vertices_needed): use new function. strip comment of derivation for major axis length. * src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): use _cairo_matrix_get_affine to retrieve matrix entries. * src/cairoint.h, src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): new function split out of cairo-pen.c. UTF8-ify the comment that explains the calculation. 2005-08-22 Bertram Felgenhauer * src/cairo-pen.c (_cairo_pen_vertices_needed): use correctly transposed version of the matrix and fix up the comments above to use row vector notation. 2005-08-22 Tor Lillqvist * configure.in: Calculate LT_CURRENT_MINUS_AGE (which forms part of the DLL name on Win32), and AC_SUBST it. * Makefile.am: Add target "zips" to create zip file based distribution for Win32. * src/Makefile.am: Produce a cairo.def file for distribution by preprocessing the relevant header files and grepping for declarations of functions that start with cairo_. Works for now, will have to modify later if necessary. Use the .def file when linking on Win32. 2005-08-22 Owen Taylor Support artificial bold fonts with FC_EMBOLDEN; patch from Jackey Yang and sunmoon1997. * configure.in: Check for FT_GlyphSlot_Embolden() * src/cairo-ft-font.c: Call FT_GlyphSlot_Embolden for fonts where FC_EMBOLDEN is set but that aren't bold. Add another private flag for this. 2005-08-22 Carl Worth * test/Makefile.am (EXTRA_DIST): Fix typo that was causing make dist to fail. 2005-08-22 Owen Taylor * test/text-rotate.c (draw): Use floor(0.5+x) rather than round(), which is C99. (David Hollenberg) 2005-08-22 Owen Taylor * autogen.sh: Set LC_ALL=C rather than LANG and LC_NUMERIC to be robust against whatever settings the user has. (Martin Dobias) 2005-08-21 Billy Biggs * src/cairo.c: (cairo_paint_with_alpha): Optimize away calls to cairo_paint_with_alpha() if the alpha value given is <= 0. * src/cairoint.h: Add a new macro CAIRO_ALPHA_IS_ZERO. 2005-08-21 Billy Biggs Fix for bug #4172: * src/cairo-pattern.c: (_cairo_pattern_shader_gaussian), (_cairo_image_data_set_linear), (_cairo_image_data_set_radial): Use _cairo_fixed_to_double and _cairo_double_to_fixed when converting between double and 16.16 fixed point. These functions round nicely, and solve some inconsistencies in rendering between my PPC and x86 machines. Thanks to Owen Taylor for suggesting the fix. * test/gradient-alpha-ref.png: * test/linear-gradient-ref.png: * test/text-pattern-ref.png: The above change does affect linear gradients slightly, but it seems worth it. Update the reference images to follow. 2005-08-21 Owen Taylor * src/cairo-surface.c (_cairo_surface_acquire_dest_image): Remove stray doc sentence that wasn't meant to be committed. 2005-08-21 Billy Biggs Fix for bug #4165: * src/cairo-hull.c: (_cairo_hull_vertex_compare): Use pointer comparison for coincident points to ensure a well-defined ordering, and avoid setting discard on both points. This fixes problems with my Mac's implementation of qsort. Final patch by Bertram Felgenhauer. * test/clip-operator-ref.png: * test/linear-gradient-ref.png: * test/operator-clear-ref.png: * test/operator-source-ref.png: * test/unantialiased-shapes-ref.png: * test/unbounded-operator-ref.png: Update reference images after the change. 2005-08-21 Owen Taylor * autogen.sh: Check automake- if automake isn't sufficiently new. (#3593, Philip Van Hoof) 2005-08-21 Owen Taylor * autogen.sh: When invoked as, say, ../autogen.sh, switch to the sourcedir to run the auto*. Based on corresponding code in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons) * gtk-doc.make: Update from gtk-doc CVS, bringing in some minor output changes. (Eliminate the *** from the messages that don't indicate errors.) * doc/public/Makefile.am (EXTRA_DIST): Use += for EXTRA_DIST, since gtk-doc.make already defines it. 2005-08-21 Owen Taylor * configure.in: Check for FT_Load_Sfnt_Table and disable the PDF/PS backends if not found. (#4144, Billy Biggs) 2005-08-21 Owen Taylor * src/cairo-surface.c (_cairo_surface_clone_similar): Fix the handling of backend->clone_similar == NULL. (#4161, Christian Biesinger) 2005-08-21 Owen Taylor * src/cairo-surface.c: Improve the documentation of internal functions. (Based on a patch from Christian Biesinger, #4162) 2005-08-21 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Recognize gentoo's (and maybe other distro's) modified server vendor string, where extra text is added to the upstream value. (#4068, reported by Doug Goldstein, others. Patch from Mart Raudsepp) 2005-08-21 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_unscaled_font_create_glyph): Don't try to transform val->image when it is NULL. (#4163, Mathias Hasselmann) 2005-08-20 Carl Worth Fix for bug #4142: * test/cairo-test.c (create_xlib_surface): Disable xlib tests on X servers without the Render, since they currently just crash there. A better long-term fix would be to do some useful tests in this case. Thanks to Tim Mooney. 2005-08-20 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Include Xfree86-4.5 in the blacklist. (Reported by Andrew Benton) 2005-08-20 Billy Biggs Fix for bug #4096: * src/cairo-png.c: (multiply_alpha), (premultiply_data): Improve the performance of png reading by adding special cases for fully transparent and fully opaque alpha, and using the standard optimization for 8-bit division by 255. * src/cairoint.h: Add an INLINE macro for gcc. 2005-08-19 Carl Worth From Bertram Felgenhauer : * test/.cvsignore: * test/Makefile.am: * test/rectangle-rounding-error-ref.png: * test/rectangle-rounding-error.c: (draw), (main): Add regression test for bug #4137 (fixed earlier). 2005-08-19 Billy Biggs * test/pixman-rotate.c: No need to include cairo-pdf.h. 2005-08-19 Carl Worth Fix for bug #4137: * src/cairo-fixed.c: (_cairo_fixed_from_double): Fix to round properly. 2005-08-19 Owen Taylor * src/cairo-pdf-surface.c (_cairo_pdf_surface_show_glyphs): Ignore really small fonts, since size zero fonts give xpdf fits. (#2938) 2005-08-19 Carl Worth * src/cairo-font.c: (_cairo_scaled_font_set_error): Fix to actually test scaled_font->status instead of just having a comment that claims to test it. Thanks to Behdad Esfahbod . 2005-08-18 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite): We need the call to fixup_unbounded when we optimize the RENDER operator to XCopyArea as well. 2005-08-19 Carl Worth Fixes for a general problem of which bug #4094 was a specific instance: * src/cairo.c: (_cairo_set_error): * src/cairo-font.c: (_cairo_scaled_font_set_error): * src/cairo-pattern.c: (_cairo_pattern_set_error): * src/cairo-surface.c: (_cairo_surface_set_error): Don't change the status value if it already holds an error. This avoids destroying "first error" information and also avoids attempting to write read-only data, (eg. from nil objects). * src/cairo-font.c: (cairo_scaled_font_extents), (cairo_scaled_font_glyph_extents): * src/cairo-pattern.c:: (cairo_pattern_create_rgb), (cairo_pattern_create_rgba): * src/cairo-surface.c: (cairo_surface_flush), (cairo_surface_mark_dirty_rectangle), (cairo_surface_set_device_offset): * src/cairo-win32-font.c: (cairo_win32_scaled_font_select_font): * src/cairo.c: (cairo_save), (cairo_restore), (cairo_set_operator), (cairo_set_source_rgb), (cairo_set_source_rgba), (cairo_set_source_surface), (cairo_set_source), (cairo_set_tolerance), (cairo_set_antialias), (cairo_set_fill_rule), (cairo_set_line_width), (cairo_set_line_cap), (cairo_set_line_join), (cairo_set_dash), (cairo_set_miter_limit), (cairo_translate), (cairo_scale), (cairo_rotate), (cairo_transform), (cairo_set_matrix), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_new_path), (cairo_move_to), (cairo_line_to), (cairo_curve_to), (cairo_arc), (cairo_arc_negative), (cairo_rel_move_to), (cairo_rel_line_to), (cairo_rel_curve_to), (cairo_rectangle), (cairo_close_path), (cairo_paint), (cairo_paint_with_alpha), (cairo_mask), (cairo_mask_surface), (cairo_stroke_preserve), (cairo_fill_preserve), (cairo_copy_page), (cairo_show_page), (cairo_in_stroke), (cairo_in_fill), (cairo_stroke_extents), (cairo_fill_extents), (cairo_clip_preserve), (cairo_reset_clip), (cairo_select_font_face), (cairo_get_font_face), (cairo_font_extents), (cairo_set_font_face), (cairo_set_font_size), (cairo_set_font_matrix), (cairo_set_font_options), (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text), (cairo_show_glyphs), (cairo_text_path), (cairo_glyph_path), (cairo_append_path): Don't set an error on the same object if it is in an error state to begin with, just return immediately. This is intended to reduce (eventual) error prints to the first cause of an error for any given object, instead of a continual spew. 2005-08-19 Kristian Høgsberg * src/cairo-ps-surface.c (cairo_ps_surface_set_dpi): Add this missing fuction. * src/cairo-pdf-surface.c (cairo_pdf_surface_create): Document this funtion. 2005-08-19 Carl Worth Fix for bug #2729: * src/cairo-gstate.c: (_cairo_gstate_set_dash): Adjust negative offsets up to their equivalent positive value. Add error checking for dash values, (must each be non-negative and must not be all zero). * src/cairo.c (cairo_set_dash): Add documentation. * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Add new CAIRO_STATUS_INVALID_DASH. * test/.cvsignore: * test/Makefile.am: Add dash-offfset-negative test from Owen. * doc/public/tmpl/cairo.sgml: churn 2005-08-19 Carl Worth Fix for bug #3915: * src/cairo-pattern.c: (_cairo_pattern_nil_for_status): Add new NULL_POINTER nil pattern. * src/cairo-pattern.c: (cairo_pattern_create_for_surface): Check for surface == NULL and return a nil pattern. * test/nil-surface.c: (draw): Verify that the above fix works. 2005-08-18 Carl Worth Fix for bug #4088: * src/cairo-pattern.c: (_cairo_pattern_nil_for_status): New function to return the current nil pattern depending on the status. * src/cairo-pattern.c: (cairo_pattern_create_for_surface): * src/cairo-pattern.c: (_cairo_pattern_init_for_surface): Add missing early bailout on surface->status with error propagation to the pattern. Related cleanups for cairo_pattern_t: * src/cairo-pattern.c: (_cairo_gradient_pattern_init_copy): Don't check other->status since this is a static function. * src/cairo-pattern.c: (_cairo_pattern_init_copy): Add missing early bailout on other->status. * src/cairo-pattern.c: (_cairo_pattern_fini): Cleanup identifier names. * src/cairo-pattern.c: (_cairo_pattern_create_solid), (cairo_pattern_create_linear), (cairo_pattern_create_radial): Track rename of nil patterns. * src/cairo-pattern.c: (cairo_pattern_set_matrix), (cairo_pattern_set_filter), (cairo_pattern_set_extend): Don't call _cairo_error for pre-existing errors. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface): Take care to initialize some fields to that _cairo_pattern_release_surface will work even after an error. * src/cairoint.h: * src/cairo.c: (cairo_get_source): Track rename of cairo_solid_pattern_nil to cairo_pattern_nil. * test/.cvsignore: * test/Makefile.am: * test/nil-surface-ref.png: * test/nil-surface.c: (draw), (main): New test to ensure that a file-not-found error will propagate from a surface, through a pattern, and onto a cairo_t. 2005-08-18 Carl Worth * test/.valgrind-suppressions: Suppress a pthread initialization error now that tests are linked with -lpthread. 2005-08-18 Carl Worth * src/cairo-pattern.c: Fix documentation comment to use & in place of &. 2005-08-18 Owen Taylor Reviewed by: krh * configure.in: Fix tests to just disable FreeType if a too-old FreeType is found, rather than erroring out. (#2298) 2005-08-18 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_show_glyphs): Fix offset passed in for source patterns. (#2333, Tim Rowley) * test/text-pattern.c: Fix font to Vera Sans rather than "Sans" 2005-08-18 Carl Worth * ROADMAP: Update the roadmap. Remove difficulty rating from completed tasks. Note that PostScript/PDF is (grudgingly) done as far as 1.0 is concerned, but there is more work to completing this that is slipped beyond 1.0. Note that the deadlock bug is fixed as of 0.9.2. Update who is working on what for performance. Add some new detail for post-1.0 PostScript/PDF work. Slip the overlapping source/dest Render workaround past 1.0. 2005-08-18 Owen Taylor * test/text-pattern.c: Add a test for bug #2333 (Tim Rowley) 2005-08-17 Owen Taylor * src/cairo-gstate.c: Implement new equations for CLEAR and SOURCE CLEAR: (mask IN clip) ? 0 : dest SOURCE: (mask IN clip) ? src : dest That behave more like what people expect. * src/cairo-gstate.c (_cairo_operator_bounded): CLEAR and SOURCE are now bounded. * src/cairo-font.c (_cairo_ft_scaled_font_show_glyphs) * src/cairo-surface.c (_cairo_surface_composite_trapezoids): Assert that SOURCE and CLEAR aren't passed to these functions. * src/cairo-surface.c (_cairo_surface_composite): Assert that SOURCE and CLEAR aren't passed to these functions when there is a mask. * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite) * src/cairo-image-surface.c (_cairo_image_surface_composite): Do fixups for SOURCE and CLEAR as well as unbounded operators, since in the absence of a mask, we need SOURCE to work correctly (don't care about CLEAR) * src/cairo-ft-font.c (_transform_glyph_bitmap, _cairo_ft_font_show_glyphs) Consistently use CLEAR/TRANSPARENT (source doesn't matter) rather than SOURCE/TRANSPARENT when clearing rectangles. * src/cairo-xlib-surface.c src/cairo-surface.c: Use IN rather than SOURCE as an example of an unbounded operator in docs. * test/unbounded-operator.c: Remove CLEAR/SOURCE columns since they are no longer unbounded. * test/operator-clear.c test/operator-source Makefile.am: Add targetted tests of CLEAR/SOURCE. 2005-08-18 Carl Worth * src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_source_image): Fix to not leak surface->cgImage on out-of-memory (thanks to Josh Aas ). 2005-08-18 Carl Worth * src/cairo-fixed.c: (_cairo_fixed_integer_ceil): Fix to not right-shift a negative number when called with an argument of 0. 2005-08-18 Carl Worth * test/cairo-test.c: (cairo_test_expecting): Disable not-yet-implemented quartz stuff. 2005-08-18 Billy Biggs * doc/public/version.xml.in: Add an autoconf-generated version file to advertise what cairo version the manual was generated for. Idea taken from the GTK+ documentation. * doc/public/cairo-docs.xml: Include the version number, along with the title, in a bookinfo section. * doc/public/Makefile.am: Add the version.xml.in to the dist. * doc/public/.cvsignore: Ignore version.xml. * configure.in: Generate doc/public/version.xml. 2005-08-18 Carl Worth * Makefile.am: Clear setgid bit on regular files prior to tarring up a release. 2005-08-18 Kristian Høgsberg * configure.in: Fix typo in freetype configure check. 2005-08-17 Kristian Høgsberg * configure.in: Try to use pkg-config to detect freetype2, then fall back to the existing freetype-config based check. 2005-08-17 Carl Worth Fixes for bug #4110: * src/cairo-ft-font.c (_cairo_ft_unscaled_font_init): Don't call _cairo_ft_unscaled_font_init_key in the from_face case, just clear filename and id instead. Initialize unscaled->base first so that initialization order matches the structure declaration order. * src/cairo-cache.c (_cairo_hash_string): Fix to accept a NULL string and hash it identically to a zero-length string. * test/Makefile.am: * test/ft-font-create-for-ft-face: Add a test that calls cairo_ft_font_create_for_ft_face to demonstrate bug #4110. 2005-08-16 Billy Biggs * test/filter-nearest-offset.c: (draw): Fix the filter-nearest-offset test to actually test CAIRO_FILTER_NEAREST. 2005-08-16 Owen Taylor * src/cairo-region.c (_cairo_region_rectangle_extents) (_cairo_region_create_from_rectangle) src/cairoint.h: Split out a couple of useful utility functions. * src/cairo-clip.c src/cairo-gstate.c: Use them. * src/cairo-surface.c (_cairo_surface_fill_region): Move code to fill a pixman_region16_t to here. * src/cairo-surface.c (_cairo_surface_fill_rectangle) * src/cairo-surface.c (_cairo_surface_fill_rectangles): Document. * src/cairo-gstate.c (_cairo_surface_clip_and_composite_trapezoids): Use _cairo_surface_fill_region(). * src/cairo-surface.c (_cairo_surface_composite_fixup_unbounded): Add a return status, use regions to simplify. * src/cairoint.h * src/cairo-image-surface.c (_cairo_image_surface_composite) * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite) (_show_glyphs_fixup_unbounded): Handle the return value from _cairo_surface_composite_fixup_unbounded(). * src/cairo-surface.c src/cairoint.h (_cairo_surface_composite_shape_fixup_unbounded): Add a variant of _cairo_surface_composite_fixup_unbounded() to avoid creating a dummy cairo_surface_attributes_t. * src/cairo-xlib-surface (_show_glyphs_fixup_unbounded): Use _cairo_surface_composite_shape_fixup_unbounded(). * src/cairo-image-surface.c (_cairo_image_surface_composite_trapezoids) * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite_trapezoids): Call _cairo_surface_composite_shape_fixup_unbounded(), since the source might still be restricted, even though the mask is unbounded. * src/cairo-gstate.c (_cairo_surface_clip_and_composite_trapezoids): Restore the rectangle optizations when drawing with unbounded operators by adding a clear for the extra area after drawing the rectangles. 2005-08-16 Billy Biggs * configure.in: Add a check for the MMX intrinsics used by pixman. gcc >= 3.4 is required. 2005-08-16 Carl Worth * src/cairoint.h (CAIRO_PRINTF_FORMAT): Rename cairo_printf_format to CAIRO_PRINTF_FORMAT. Fix syntax error in the case of an empty definition. (Thanks to Vladimir Vukicevic). 2005-08-14 Kristian Høgsberg * src/cairo-ft-font.c (_cairo_ft_unscaled_font_lock_face): Zero out 'entry', not 'unscaled' when evicting face from cache. 2005-08-13 Kristian Høgsberg * src/cairo-ps-surface.c: (_ps_output_fill_rectangles): Fix a mismatch between printf arguments and format string (thanks to Adrian Johnson). * src/cairoint.h (cairo_printf_format): Add macro to mark printf like functions. 2005-08-13 Owen Taylor * Makefile.am (DIST_SUBDIRS): Change docREEL back to doc. (Found by Kjartan Maraas) 2005-08-13 Carl Worth * NEWS: Fix typo ('internal' should have been 'external'). 2005-08-13 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.9.3 after tagging RELEASE_0_9_2. * Makefile.am (release-publish): Slight rewording of announcement email. 2005-08-13 Carl Worth * NEWS: Added notes for release 0.9.2. * configure.in: Increment CAIRO_VERSION to 0.9.2 and libtool versioning to 3:1:1. * RELEASING: Remove some more 'snapshot' language. Make it more clear that the libtool versioning numbers need to be updated. 2005-08-13 Carl Worth * src/cairo-pattern.c: Fix unterminated comment that eliminated cairo_pattern_add_color_stop_rgba. 2005-08-13 Carl Worth * NEWS: Add missing notes on soname and user-space locking for cairo_set_source() to the 0.9.0 release notes. * src/cairo-pattern.c: Document cairo_pattern_add_color_stop_rgb, cairo_pattern_add_color_stop_rgba, cairo_pattern_set_matrix, and cairo_pattern_get_matrix. * src/cairo.c: Add note on user-space locking to the documentation for cairo_set_source(). 2005-08-13 Carl Worth * src/cairoint.h: Turn the mutex code back on. It looks like the deadlocks have disappeared as of the cairo_scaled_font_map patch from two days ago. * configure.in: Setup an automake conditional for the HAVE_PTHREAD case. * test/Makefile.am: Link all tests with -lpthread if available, so that we can get some testing of cairo with mutexes turned on. 2005-08-13 Carl Worth Minor, cosmetic changes: * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_lock_face): Reowrd comment to be more clear. * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Prefer return of address of base field rather than cast. * src/cairo-ft-font.c: (_cairo_ft_font_face_destroy): Whitespace fix. 2005-08-13 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_create), (_cairo_ft_unscaled_font_init_key), (_cairo_ft_unscaled_font_init), (_cairo_unscaled_font_is_ft), (_cairo_ft_unscaled_font_fini), (_cairo_ft_unscaled_font_keys_equal), (_cairo_ft_unscaled_font_create_from_face), (_cairo_ft_unscaled_font_destroy): Shuffle functions around to put them in a sane order within the file. There should be no functional change here. 2005-08-11 Carl Worth Reviewed by: keithp * src/cairoint.h: Add hash_entry field to cairo_scaled_font_t so that it can be hashed. * src/cairo-font.c: (_cairo_scaled_font_map_lock), (_cairo_scaled_font_map_unlock), (_cairo_scaled_font_map_destroy), (_cairo_scaled_font_init_key), (_cairo_scaled_font_keys_equal), (_cairo_scaled_font_init), (_cairo_scaled_font_fini), (cairo_scaled_font_create), (cairo_scaled_font_reference), (cairo_scaled_font_destroy), (_cairo_font_reset_static_data): Convert the font_face/matrix/ctm/options => cairo_scaled_font_t mapping from a two-layer cairo-cache.c implementation to a single cairo-hash.c implementation backed by a simple array for the secondary cache. 2005-08-13 Behdad Esfahbod * src/cairo-path-data.c (_cairo_path_data_append_to_context): Move checks for invalid number of points before the calls that use the points. 2005-08-13 Behdad Esfahbod * src/cairo-color.c: Fix conversion to short, to get a uniform range even for 0xffff. In other words, a color component of of (1.0 - epsilon) would convert to 0xffff, not 0xfffe. 2005-08-13 Behdad Esfahbod * RELEASING: * Makefile.am: Generate sh1sum instead of md5sum. Use gpg to sign it. You need gpg set up. 2005-08-12 Carl Worth * RELEASING: * Makefile.am: Move tagging from an instruction in RELEASING to an automated step at the end of release-publish. 2005-08-13 Behdad Esfahbod * Makefile.am (release-publish): Check that the micro component of the version number is even. * RELEASING: Fixed the pattern to find all public header files. 2005-08-11 Carl Worth * src/cairo-font.c (_cairo_toy_font_face_fini): Fix inverted sense of assert statement which led to lots of unpleasant crashes. 2005-08-08 Carl Worth Reviewed by: keithp * src/cairoint.h: Add hash_entry field to cairo_font_face_t so that it can (optionally) be hashed. * src/cairo-font.c: (_cairo_toy_font_face_hash_table_lock), (_cairo_toy_font_face_hash_table_unlock), (_cairo_toy_font_face_init_key), (_cairo_toy_font_face_init), (_cairo_toy_font_face_fini), (_cairo_toy_font_face_keys_equal), (_cairo_toy_font_face_create), (_cairo_toy_font_face_destroy), (_cairo_toy_font_face_scaled_font_create), (_cairo_font_reset_static_data): Complete the remainder of the simple -> toy renaming. Convert the family/slant/weight -> cairo_toy_font_face_t mapping to use cairo-hash.c rather than cairo-cache.c. 2005-08-11 Carl Worth Reviewed by: keithp * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_init_key), (_cairo_ft_unscaled_font_keys_equal), (_cairo_ft_unscaled_font_fini), (_cairo_ft_unscaled_font_map_destroy), (_cairo_ft_unscaled_font_map_lock), (_cairo_ft_unscaled_font_map_unlock), (_cairo_ft_unscaled_font_map_create), (_cairo_ft_unscaled_font_create_for_pattern), (_has_unlocked_face), (_cairo_ft_unscaled_font_lock_face), (_cairo_ft_unscaled_font_destroy), (_cairo_ft_scaled_font_create_toy), (cairo_ft_font_face_create_for_pattern), (_cairo_ft_font_reset_static_data): Move implementation of filename/id => cairo_ft_unscaled_font_t from cairo-cache.c to cairo-hash.c, with new cairo_ft_unscaled_font_map. * src/cairoint.h: Add cairo_unscaled_font->hash_entry so that unscaled fonts can live in hash tables. 2005-08-08 Carl Worth Reviewed by: otaylor * src/cairoint.h: Re-order cairo_scaled_font->font_face parameter to maintain the font_face,font_matrix,ctm,options order that prevails throughout the implementation. Add font_face parameter to _cairo_scaled_font_init. * src/cairoint.h: * src/cairo-atsui-font.c: (_cairo_atsui_font_create_toy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_create_toy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create_toy): Remove const qualifier from toy_face parameter to creat_toy, as these functions may reference the font face. Track addition of font_face parameter to _cairo_scaled_font_init. * src/cairo-font.c: (_cairo_inner_font_cache_create_entry), (_cairo_scaled_font_init): Implement font_face parameter to _cairo_scaled_font_init, moving the reference of the font_face from _cairo_inner_font_cache_create_entry. * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Add a font_face parameter in addition to the unscaled_font parameter. * src/cairo-ft-font.c: (_cairo_ft_font_face_scaled_font_create): Track new font_face parameter to _cairo_ft_scaled_font_create. * src/cairo-ft-font.c: (_cairo_ft_font_face_create), (cairo_ft_scaled_font_lock_face): Whitespace touchup. 2005-08-10 Billy Biggs * test/clip-operator-ref.png: Update to match the output from libpixman. 2005-08-10 Carl Worth Thanks to Olivier Andrieu: * NEWS: Add mention of cairo_get_antialias. Fix to mention cairo_surface_flush by its correct name, (rather than the non-existent cairo_flush). 2005-08-10 Carl Worth * doc/public/cairo-docs.xml: Fix id to be cairo rather than libglade. (Thanks to Christian Biesinger). 2005-08-10 Carl Worth * src/cairo.h: * src/cairo.c: (cairo_version), (cairo_version_string): Augment existing CAIRO_VERSION_MAJOR/MINOR/MICRO and CAIRO_VERSION_STRING with CAIRO_VERSION_ENCODE and CAIRO_VERSION. Add functions for run-time access: cairo_version cairo_version_string 2005-08-10 Carl Worth From Travis Spencer : * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite_trapezoids): Fix typo causing a syntax error. 2005-08-10 Keith Packard * test/Makefile.am: Place private include directives before CAIRO_CFLAGS in case pixman remains installed in the system. 2005-08-10 Carl Worth From Keith Packard , Build pixman internally as a private part of cairo, with suitable name changes to avoid any visible pixman symbols in the cairo library: * Makefile.am: Descend into pixman. * cairo.pc.in: Drop libpixman from Requires. * configure.in: Don't check for libpixman. Check version of pkg-config and use Requires.private instead of Requires in cairo.pc if possible. Generate pixman Makefiles. * pixman/Makefile.am: Rip out release-publish target and installation of libpixman.pc. * pixman/src/Makefile.am: Add pixman-remap.h. Drop libpixman.la target. * pixman/src/icint.h: Fix to include "config.h" rather than "../config.h" * pixman/src/pixman-remap.h: This is the cpp magic to rename all pixman functions from the various fb, Fb, INT_pixman, pixman, Render, _Render, or no prefix to _cairo_pixman_ prefixes. * pixman/src/pixman.h: Include pixman-remap.h to get all the cairo-internalized names. * src/Makefile.am: * test/Makefile.am: Add -I$(top_srcdir)pixman/src to get at pixman-remap.h. 2005-08-10 Vladimir Vukicevic * src/cairo-glitz-surface.c: Additional fix for 0-width/0-height glyphs. 2005-08-10 Carl Worth * Makefile.am: * RELEASING: Change release instructions to indicate new odd-micro version for in-progress development, and even-micro for released versions. Do a bit of snapshot->release renaming. 2005-08-10 Carl Worth * configure.in: Change CAIRO_VERSION from 0.9.0-head to 0.9.1. Patch from Behdad Esfahbod : * configure.in: Update to use AC_INIT and AM_INIT_AUTOMAKE in recommended ways. Add support for substituting CAIRO_VERSION_MAJOR/MINOR/MICRO into generated headers. * src/cairo-features.h.in: Add CAIRO_VERSION_MAJOR/MINOR/MICRO and CAIRO_VERSION_STRING which are generated by configure. 2005-08-10 Carl Worth * src/cairo-path-data-private.h: * src/cairoint.h: Add cairo_private to the few pieces of data that were missing it. 2005-08-09 Vladimir Vukicevic * src/cairo-glitz-surface.c: Don't crash on 0-width or 0-height glyphs; also correctly initialize entry->key.base.memory with the image cache image. * src/cairo-xlib-surface.c (_xlib_glyphset_cache_create_entry): Free allocated entry in case of error to avoid leaking memory. 2005-08-09 Carl Worth * src/cairo-arc-private.h: * src/cairo-ft-private.h: * src/cairo-meta-surface-private.h: * src/cairoint.h: Add cairo_private to several function prototypes that were missing it. 2005-08-09 Carl Worth * ROADMAP: Note that sane clipping is done now. Add release versions for previously completed items. * test/.cvsignore: Ignore unantialiased-shapes. 2005-07-29 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_create_toy): Get cairo_toy_font_face_t type right. 2005-08-09 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with RELEASE_0_9_0. 2005-08-08 Carl Worth * NEWS: Added notes for release 0.9.0. * configure.in: Increment CAIRO_VERSION to 0.9.0. Increment LT_CURRENT to 2 to mark the beginning of proper soname management. 2005-08-08 Carl Worth * src/Makefile.am (libcairo_la_SOURCES): Add missing cairo-debug.h which was hold up make distcheck. 2005-08-08 Carl Worth * test/Makefile.am (EXTRA_DIST): Fix typo that was holding up make distcheck from working. 2005-08-08 Billy Biggs * src/cairo-path-data-private.h: Declare _cairo_path_nil as extern. 2005-08-08 Billy Biggs reviewed by: cworth, otaylor * src/cairo.c: (cairo_set_antialias), (cairo_get_antialias): * src/cairo.h: Add a new API for disabling antialiasing of shapes drawn by cairo. This is a hint and is not supported by all backends. * src/cairoint.h: * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_composite_traps_draw_func), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_set_antialias), (_cairo_gstate_get_antialias): Store the antialiasing mode in the gstate and pass it to the backend for trapezoid rendering and for clipping. * src/cairo-clip-private.h: * src/cairo-clip.c: (_cairo_clip_intersect_path), (_cairo_clip_intersect_mask), (_cairo_clip_clip): Pass the antialiasing parameter down to the backend where appropriate. * src/cairo-surface.c: (_fallback_composite_trapezoids), (_cairo_surface_composite_trapezoids), (_cairo_surface_reset_clip), (_cairo_surface_intersect_clip_path), (_cairo_surface_set_clip_path_recursive), (_cairo_surface_set_clip_path): Pass the antialiasing parameter down to the backend where appropriate. * src/cairo-image-surface.c: (_cairo_image_surface_composite_trapezoids): Add support for A1 format trapezoid rendering, and remove the _create_mask_image function, creating a temporary image from memory we allocate and clear. * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite_trapezoids): Support A1 masks to disable antialiasing using the RENDER extension when requested. * src/cairo-xlib-surface.c: (_create_trapezoid_mask), (_cairo_xlib_surface_composite_trapezoids): Support A1 masks to disable antialiasing using the RENDER extension when requested. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_intersect_clip_path), (_cairo_meta_surface_replay): Blindly pass through the antialising parameter. * src/cairo-glitz-surface.c: (_cairo_glitz_surface_composite_trapezoids): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_intersect_clip_path): * src/cairo-ps-surface.c: (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_intersect_clip_path), (_ps_output_composite_trapezoids), (_ps_output_intersect_clip_path): Add the antialiasing parameter but don't support it. * test/Makefile.am: * test/unantialiased-shapes-ref.png: * test/unantialiased-shapes.c: (big_star_path), (draw), (main): Add a test case and a reference image from the latest libpixman. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo.sgml: * doc/public/cairo-sections.txt: Add the new antialiasing disabling API to the docs. * TODO: Update progress on a parameter to disable antialiasing. 2005-08-08 Carl Worth * test/.cvsignore: Ignore clip-operator and unbounded-operator. 2005-08-08 Carl Worth * RELEASING: Fix gnome-announce-list address. 2005-08-08 Owen Taylor * src/cairo-xlib-surface.c (_xlib_glyphset_cache_destroy_entry): Don't free the glyph if the entry doesn't have a glyph. (Maybe #3909, Carlos Garnacho Parro) 2005-08-08 Carl Worth * src/cairo-gstate.c: (_cairo_operator_bounded): Add a return value after ASSERT_NOT_REACHED to quiet an anxious compiler. 2005-08-08 Owen Taylor * src/cairo-gstate.c: (_cairo_surface_clip_and_composite_trapezoids): Fix accidentally committed line. 2005-08-08 Kristian Høgsberg * src/cairo-surface.c (_cairo_surface_set_clip_path): Update doc comment. 2005-08-08 Owen Taylor * src/cairo-gstate.c (_cairo_operator_bounded): Add a function to test whether a cairo_operator_t is bounded (does nothing for 0 src/mask) * src/cairo-surface.c (_cairo_surface_composite_fixup_unbounded) cairoint.h: Add a helper function to take clearing areas that are outside the source/mask but are cleared by unbounded operations. * src/cairo-image-surface.c (_cairo_image_surface_composite) src/cairo-xlib-surface.c (_cairo_xlib_surface_composite): Use _cairo_surface_composite_fixup_unbounded() as needed. * src/cairo-image-surface.c src/cairint.h: Keep track of whether the surface has a clip or not ... we need this for determining when we can bypass an intermediate mask for composite_trapezoids(). * src/cairo-image-surface.c (_cairo_image_surface_composite_trapezoids): Create an intermediate mask of the right size with pixman_add_trapezoids() and composite that. * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite_trapezoids): When rendering with an unbounded operator, create the intermediate mask ourselves and render with ADD to that, then composite the result. * src/cairo-ft-font.c (_cairo_ft_scaled_font_show_glyphs): Create an intermediate surface the size of the extents, render the glyphs to that then composite the results. * src/cairo-xlib-surface.c (glyphset_cache_entry_t): Add the size of the glyph * src/cairo-xlib-surface.c (_show_glyphs_fixup_unbounded): Compute the size of the glyph mask, then use _cairo_surface_composite_fixup_unbounded(). * src/cairo-xlib-surface.c (_cairo_xlib_surface_show_glyphs32): Use the right mask format. (Unrelated bugfix) * src/cairo-gstate.c (_cairo_gstate_clip_and_composite): New function taking a drawing function as a parameter to encapsulate shared logic between compositing trapezoid, glyphs, and masks. * src/cairo-gstate.c (_cairo_gstate_mask, _cairo_surface_clip_and_composite_trapezoids, _cairo_gstate_show_glyphs): Use _cairo_gstate_clip_and_composite(). Also fix extents computations for unbounded operators. * src/cairo-clip.c src/cairo-clip-private.h (_cairo_clip_combine_to_surface): Add the destination as an extra parameter to allow combining to an intermediate surface. * tests/unbounded-operator.c tests/Makefile.am: Add a test for the operation of the 6 unbounded operators against different shapes. * tests/clip-operator.c tests/Makefile.am: Add a test that tests surface clipping with different shapes against all the operators. * test/composite-integer-translate-over-repeat.c (draw): Make use OVER like the name and description. With fixed semantics, SOURCE does something different. 2005-08-06 Carl Worth * BUGS: Remove several bugs that have been fixed. * ROADMAP: Slip group support off of the 1.0 roadmap. Update status of clipping work which otaylor is working on. * TODO: Update for progress on cairo_surface_mark_dirty (committed), non-antialiased rendering (patch), cairo_arc_to (patch), consistent error handling (committed), cairo_content_t (committed). Remove details for some completed items. * src/cairo-gstate.c (_cairo_gstate_set_font_face): Don't crash if font_face is NULL, (this is a documented mechanism for returning to the default font_face). 2005-08-06 Carl Worth * src/cairo.c (cairo_get_font_face): Fix to return &_cairo_font_face_nil instead of NULL on error. 2005-08-06 Jeff Muizelaar * test/a8-mask.c: (main): Give reason for failure. 2005-08-06 Owen Taylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_show_glyphs): Remove a non-sensical XXX that crept in at some point; for a solid color, there is no difference between premultiplied and non-premultiplied colors. 2005-08-06 Carl Worth * src/cairoint.h: Add a hash_entry as the first member of cairo_unscaled_font_t so that in can live in a hash table. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_init_key), (_cairo_ft_unscaled_font_keys_equal), (_cairo_ft_unscaled_font_fini), (_cairo_ft_unscaled_font_map_destroy), (_cairo_ft_unscaled_font_map_lock), (_cairo_ft_unscaled_font_map_unlock), (_cairo_ft_unscaled_font_map_create), (_cairo_ft_unscaled_font_create_for_pattern), (_has_unlocked_face), (_cairo_ft_unscaled_font_lock_face), (_cairo_ft_unscaled_font_destroy), (_cairo_ft_scaled_font_create_toy), (cairo_ft_font_face_create_for_pattern), (_cairo_ft_font_reset_static_data): Rewrite the mapping from filename/id -> cairo_ft_unscaled_font. The new version uses the more appropriate cairo_hash_table_t rather than the awkward cairo_cache_backend_t. 2005-08-06 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create), (_cairo_ft_scaled_font_create_toy), (_cairo_ft_scaled_font_glyph_extents), (_cairo_ft_font_face_scaled_font_create): Fix up some stale comments. Rename _cairo_ft_scaled_font_create_for_unscaled to its proper name of _cairo_ft_scaled_font_create (which is available now that _cairo_ft_scaled_font_create_toy has its correct name). Also prefer 'scaled_font' over 'f' as an identifier. 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_create_from_face), (_cairo_ft_unscaled_font_create_from_filename): Unify initialization for _cairo_ft_unscaled_font_create_from_face and _cairo_ft_unscaled_font_create_from_filename through new _cairo_ft_unscaled_font_init. 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_font_face_create): Rename _ft_font_face_backend to be preoperly namespaced as _cairo_ft_font_face_backend. 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_font_face_destroy), (_cairo_ft_font_face_create): Rename cairo_ft_font_face->next_face to next. 2005-08-05 Carl Worth * src/cairoint.h: Include cairo-hash-private.h. * src/Makefile.am (libcairo_la_SOURCES): Add cairo-hash.c and cairo-hash-private.h since we're actually going to start using them now. 2005-08-05 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_set_font_face): Simplify the implementation by taking advantage of the fact that destroy and reference are safe for NULL, and that reference returns its argument. 2005-08-05 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_translate), (_cairo_gstate_scale), (_cairo_gstate_rotate), (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_identity_matrix), (_cairo_gstate_unset_scaled_font), (_cairo_gstate_set_font_size), (_cairo_gstate_set_font_matrix), (_cairo_gstate_set_font_options), (_cairo_gstate_ensure_scaled_font), (_cairo_gstate_get_font_extents), (_cairo_gstate_text_to_glyphs), (_cairo_gstate_set_font_face), (_cairo_gstate_glyph_extents), (_cairo_gstate_show_glyphs), (_cairo_gstate_glyph_path): Rename two functions: _cairo_gstate_unset_font -> _cairo_gstate_unset_scaled_font _cairo_gstate_ensure_font -> _cairo_gstate_ensure_scaled_font 2005-08-05 Carl Worth * src/cairoint.h: Entagle the cairo_unscaled_font_t typedef. 2005-08-05 Carl Worth * src/cairoint.h: Rename font_face_backend->create_font to scaled_font_create. Group the scaled_font prototypes together. A little more simple -> toy renaming. * src/cairo-font.c: (_cairo_toy_font_face_create_from_cache_key), (_cairo_toy_font_face_destroy), (_cairo_toy_font_face_create): * src/cairo-gstate.c: (_cairo_gstate_select_font_face), (_cairo_gstate_ensure_font_face): A little more simple -> toy renaming. * src/cairo-font.c: (_cairo_toy_font_face_scaled_font_create), (_cairo_inner_font_cache_create_entry): * src/cairo-ft-font.c: (_cairo_ft_font_face_scaled_font_create): * src/cairo-win32-font.c: (_cairo_win32_font_face_scaled_font_create): Track rename of font_face_backend->scaled_font_create. 2005-08-05 Carl Worth * src/cairoint.h: Rather gratuitous (though mostly harmless) whitespace changes for font backend tables. 2005-08-05 Carl Worth * src/cairo.c: Document the implicit closing of sub-paths for cairo_fill and cairo_fill_preserve. 2005-08-05 Carl Worth * src/cairoint.h: Rename parameters to scalend_font_backend from font to scaled_font. 2005-08-05 Carl Worth * src/cairoint.h: Rename scaled_font_backend->destroy to the more accurate fini, (since it frees only the dependent data within the scaled_font and not the scaled_font itself). * src/cairo-atsui-font.c: (_cairo_atsui_font_fini): * src/cairo-font.c: (cairo_scaled_font_destroy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_fini): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_fini): Track rename of scaled_font_backend->fini. 2005-08-05 Carl Worth * src/cairoint.h: Rename scaled_font_backend->create to create_toy. Move declaration of cairo_simple_font_face_t from cairo_font.c to cairoint.h and rename it cairo_toy_font_face_t. Rework create_toy to accept a cairo_toy_font_face_t rather than separate family, slant, and weight. * src/cairo-atsui-font.c: (_cairo_atsui_font_create_toy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create_toy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_create_toy): Track change in create_toy interface. * src/cairo-font.c: (_cairo_toy_font_face_create_from_cache_key), (_cairo_simple_font_cache_create_entry), (_cairo_simple_font_face_destroy), (_cairo_simple_font_face_create_font): Partial rename of simple->toy. It's not complete as this is a step in the process of merging in a large patch of mine which actually removes most of the affected code. 2005-08-05 Carl Worth * test/.cvsignore: ignore a8-mask 2005-08-05 Carl Worth * test/a8-mask.c (draw): Patch memory leaks. 2005-08-05 Jeff Muizelaar * test/Makefile.am: * test/a8-mask-ref.png: * test/a8-mask.c: (draw), (main): Add a test case for CAIRO_FORMAT_A8 masks that fails with libpixman. 2005-08-05 Carl Worth * autogen.sh (automake_min_vers): Bump automake_min_vers up to 1.7 since we clearly don't work with 1.4 anymore. 2005-08-05 Jeff Muizelaar * test/xlib-surface.c: (do_test): use the newly added buffer_diff_noalpha for comparing buffers of CAIRO_FORMAT_RGB24. 2005-08-05 Jeff Muizelaar * test/buffer-diff.c: (buffer_diff_core), (buffer_diff), (buffer_diff_noalpha): * test/buffer-diff.h: rewrite buffer_diff to be endian safe and add a new fuction buffer_diff_noalpha 2005-08-05 Carl Worth * doc/public/cairo-sections.txt: Remove CAIRO_BEGIN_DECLS and CAIRO_END_DECLS which don't belong here. 2005-08-05 Carl Worth * test/surface-finish-twice.c (draw): Remove unused variable. 2005-08-05 Carl Worth * doc/public/Makefile.am: Ignore cairo-clip-private.h. * doc/public/cairo-docs.xml: Drop non-existent cairo-atsui.xml. * src/cairo-font.c: Fix misnamed parameters in comment blocks. * test/cairo-test.c: Include config.h so HAVE_UNISTD_H gets picked up as necessary. 2005-08-05 Carl Worth * doc/public/Makefile.am (IGNORE_HFILES): Ignore cairo-clip-private.h. 2005-08-05 Carl Worth * doc/public/cairo-sections.txt: Add some missing declarations to the appropriate sections. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: churn * src/cairo-path-data-private.h: Rename cairo_path_nil to _cairo_path_nil since it may be exported, and tag it cairo_private to try to avoid exporting it. Qualify it as const well. * src/cairo-path-data.c: (_cairo_path_data_create_real): * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat): Track new name of _cairo_path_nil and cast away the const as required. 2005-08-05 Carl Worth * src/cairo-arc.c: * src/cairo-matrix.c: Remove include of math.h since cairoint.h does it more carefully, (for annoying platforms for which just including math.h without extra defines is not enough). * src/cairo.c: Replace Cairo with cairo. * test/buffer-diff.c: Include config.h so HAVE_UNISTD_H gets picked up as necessary. * test/cairo-test.c: Fix non-UTF-8 copyright symbol. 2005-08-05 Carl Worth Patch from John Ehresman to aid win32 compilation: * src/cairo-output-stream.c: Define snprintf as _snprintf when under the influence of _MSC_VER. * test/read-png.c: (read_png_argb32): * src/cairo-wideint.h: Define int32_t and friends as __int32 and friends when under the influence of _MSC_VER. * test/buffer-diff.c: * test/cairo-test.c: Make include of unistd.h conditional on HAVE_UNISTD_H. 2005-08-05 Kristian Høgsberg Patch from Adrian Johnson * src/cairo-font-subset.c (cairo_pdf_ft_font_write_glyf_table) (cairo_pdf_ft_font_remap_composite_glyph): Remap composite glyps to use subset font glyph indices. 2005-08-05 Kristian Høgsberg Reviewed by: otaylor * src/Makefile.am: * src/cairo-clip-private.h: * src/cairo-clip.c: New files. Move code for manipulating cairo_clip_t out into cairo_clip_* functions and put them in cairo-clip.c. * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rewrite to use new cairo_clip_t functions for manipulating the clip state, change the clip_and_composite_trapezoids call tree to use cairo_clip_t instead of cairo_gstate_t. * src/cairo-meta-surface.c: Use new cairo_clip_t function to maintain clip state while replaying. * src/cairo-path-fill.c: (_cairo_filler_init), (_cairo_filler_curve_to), (_cairo_path_fixed_fill_to_traps): Pass fill rule and tolerance directly, to break gstate dependency. * src/cairo-surface.c: (_cairo_surface_set_clip): New function. Set the clip for a surface as specified by the cairo_clip_t. * src/cairo-traps.c: (_cairo_traps_translate): Move translate_traps() from cairo-gstate.c to here and rename it. 2005-08-04 Kristian Høgsberg * src/cairo-font.c: (cairo_font_face_reference), (_cairo_unscaled_font_reference), (cairo_scaled_font_reference): * src/cairo-gstate.c: (_cairo_clip_path_reference): * src/cairo-pattern.c: (cairo_pattern_reference): * src/cairo-pdf-surface.c: (_cairo_pdf_document_reference): * src/cairo-surface.c: (cairo_surface_reference): * src/cairo.c: (cairo_reference): * src/cairo.h: * src/cairoint.h: Change *_reference() functions to return the object being referenced. 2005-07-29 T Rowley Reviewed by: otaylor * src/cairo-xlib-surface.c ( _categorize_composite_operation): Check for render bug involving repeated patterns with a general transform matrix. 2005-08-04 Carl Worth Originally 2005-07-13 Carl Worth Reviewed by: otaylor * src/cairo-ft-private.h: Export opaque cairo_ft_unscaled_font_t and change _cairo_ft_unscaled_font_[un]lock_face to accept cairo_ft_unscaled_font_t rather than cairo_unscaled_font_t. * src/cairo-font-subset.c: (_cairo_font_subset_create), (cairo_pdf_ft_font_generate): Cast explicitly to cairo_ft_unscaled_font_t to track change in prototype of _cairo_ft_unscaled_font_[un]lock_face. * src/cairo-ft-font.c: Lots of renaming to use consistent namespacing: ft_font_transform_t -> cairo_ft_font_transform_t ft_font_face_t -> cairo_ft_font_face_t ft_unscaled_font_t -> cairo_ft_unscaled_font_t Add missing _cairo prefix to many functions. Disambiguate _ft_scaled_font_create and _cairo_ft_scaled_font_create by renaming the former to _cairo_ft_scaled_font_create_for_unscaled. 2005-08-03 Carl Worth Fix for bug #3951: * configure.in: Add new _CHECK_FUNCS_WITH_FLAGS to abstract out the pain of temporarily setting flags for AC_CHECK_FUNCS. Use this to check for the existence of FcFini. * test/cairo-test.c: (cairo_test_expecting): Make call to FcFini conditional on HAVE_FCFINI. * test/text-cache-crash.c: (main): Remove stale comment about cleaning up memory which is now handled by cairo-test.c. 2005-08-01 Owen Taylor reviewed by: cworth * src/cairo-gstate.c src/cairo-gstate-private.h: Store the inverse CTM at the time of cairo_gstate_set_source() to "lock" the user space matrix. * src/cairo-gstate.c: Move the source pattern transformation to the outside of _cairo_gstate_clip_and_composite_trapezoids() instead of doing it at the leaves. * test/source-surface-scale-paint.c: Change size of output surface for aesthetics. * test/source-surface-scale-paint-ref.png: Updated to correspond to the current definition. * test/Makefile.am (XFAIL_TESTS): Remove source-surface-scale-paint. 2005-08-01 Carl Worth * src/cairo-debug.h: New public header file. * src/cairo-debug.c: (cairo_debug_reset_static_data): New function to reset all static data (eg. caches) to their initial state. * Makefile.am: Fix check-valgrind target to depend on the 'all' target. * configure.in: Add check for a new, proposed, XrmFinalize function. * src/Makefile.am: Add cairo-debug.c. * src/cairo.h: * src/cairo-features.h.in: Move the definition of CAIRO_BEGIN_DECLS to cairo-features.h so that it can be shared between public header files, and so that it doesn't clutter cairo.h * src/cairoint.h: * src/cairo-font.c: (_get_global_simple_cache), (_get_outer_font_cache), (_get_inner_font_cache), (_cairo_unlock_global_image_glyph_cache), (_cairo_font_reset_static_data): * src/cairo-ft-font.c: (_cairo_ft_font_reset_static_data): * src/cairo-xlib-screen.c: (_cairo_xlib_close_display), (_cairo_xlib_screen_info_reset), (_cairo_xlib_screen_reset_static_data): * src/cairo-xlib-surface.c: (_unlock_xlib_glyphset_caches), (_destroy_glyphset_cache_recurse), (_cairo_xlib_surface_reset_static_data): Implement reset_static_data in all modules as required. * test/xlib-surface.c: (main): * test/cairo-test.h: * test/cairo-test.c: (cairo_test_for_target), (cairo_test_expecting): Call cairo_debug_reset_static_data and FcFini so that we can have all tests be valgrind-clean with respect to memory leaks and still-reachable data. 2005-08-01 Owen Taylor * src/cairo.h src/cairoint.h src/cairo-surface.c: Add cairo_mark_dirty[_rectangle]() and cairo_flush() for * src/cairo-win32-surface.c: Implement a cairo_flush() that restores the original clip. Also restore the original flush when a surface is finished. * ROADMAP: Check off the item. 2005-07-31 Billy Biggs reviewed by: keithp * src/cairo-ft-font.c: (_ft_unscaled_font_set_scale): Support versions of freetype without exact FT_Bitmap_Size.x/y_ppem values by using the pixel width and height values instead. * configure.in: Add a check for FT_Bitmap_Size.y_ppem. 2005-07-31 Billy Biggs * src/cairo-quartz-surface.c: (cairo_quartz_surface_create): Cast away the const on the nil surface to avoid a compiler warning. 2005-07-31 Billy Biggs * src/cairo-atsui-font.c: (_cairo_atsui_font_create): Pass the options down to the scaled font object to keep things compiling. 2005-07-30 Keith Packard * src/cairo-wideint.c: (_cairo_int32x32_64_mul), (_cairo_uint64_divrem), (_cairo_uint128_divrem): * src/cairo-wideint.h: Replace wide integer divide algorithms with trivial bit-at-a-time code. Original code was of unclear provenance, this new code is completely different. 2005-07-29 Carl Worth * ROADMAP: Remove completed 0.6 tasks. Add cairo_surface_flush to the cairo_surface_mark_dirty task. 2005-07-29 T Rowley * src/cairo-atsui-font.c ( _cairo_atsui_font_create): src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_dest_image): Minor updates to keep quartz backend limping along. 2005-07-29 Owen Taylor * src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c src/cairoint.h: Move the font options into the base cairo_scaled_font_t object so that we have them available to use when we are removing a scaled font from the cache. (http://bugzilla.gnome.org/show_bug.cgi?id=311299, Ali Akcaagac, Behdad Esfahbod) 2005-07-28 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_mask): Run the mask pattern through the CTM in the same way as the source pattern. This fixes the bug demonstrated by the mask-ctm and mask-surface-ctm tests so they should no longer fail. 2005-07-28 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/mask-ctm-ref.png: * test/mask-ctm.c: (draw), (main): * test/mask-surface-ctm-ref.png: * test/mask-surface-ctm.c: (draw), (main): Add two new tests: mask-ctm mask-surface-ctm demonstrating that masks are not currently being modified by the CTM. 2005-07-28 Carl Worth * RELEASING: CC gnome-announce-list@@gnome.org on cairo release announcements. 2005-07-28 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_6_0. 2005-07-28 Carl Worth * NEWS: Added notes for snapshot 0.6.0 * configure.in: Increment CAIRO_VERSION to 0.6.0 2005-07-28 Carl Worth * src/cairo-ft-font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to): Remove const qualifiers that only make things happy with a from-cvs version of freetype. Now we should be back to being happy with a released version. 2005-07-28 Carl Worth * src/cairo-png.c (read_png): Add missing cast. 2005-07-28 Carl Worth * test/Makefile.am (EXTRA_DIST): Remove text-antialias-subpixel-ref.png from the list since it doesn't exist yet. 2005-07-28 Carl Worth * doc/public/tmpl/cairo.sgml: More doc/public/tmpl churn. 2005-07-28 Carl Worth * test/Makefile.am (EXTRA_DIST): Add text-antialias-{gray|none|subpixel}-ref.png so they get distributed. 2005-07-28 Dave Beckett * test/cairo-test.c (cairo_test_create_surface_from_png): Use cairo_surface_status(image) instead of testing for NULL from cairo_image_surface_create_from_png to enable testing when srcdir != builddir again. 2005-07-28 Carl Worth * ROADMAP: Note that consistent error handling is done now. 2005-07-28 Carl Worth * src/cairo-image-surface.c: (cairo_image_surface_get_width), (cairo_image_surface_get_height): Fix to call _cairo_error and return 0 on surface-type mismatch. 2005-07-28 Owen Taylor * configure.in Makefile.am: Skip tests/ directory if libpng was disabled. (#3423, reported by Steve Chaplin) 2005-07-28 Carl Worth * src/cairo-png.c: (read_png), (cairo_image_surface_create_from_png): Fix so that one of three different error status values will be returned: CAIRO_STATUS_NO_MEMORY CAIRO_STATUS_FILE_NOT_FOUND CAIRO_STATUS_READ_ERROR * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Add new CAIRO_STATUS_FILE_NOT_FOUND. * src/cairoint.h: * src/cairo-surface.c: Add new _cairo_surface_nil_read_error and _cairo_surface_nil_file_not_found. * test/create-from-png.c: (draw): Test the new FILE_NOT_FOUND error. 2005-07-28 Stuart Parmenter * src/cairo-win32-font.c * src/cairo-win32-surface.c Use surface->base.status instead of just surface on cairo_win32_surface_t *s 2005-07-28 Owen Taylor * configure.in: Disable PS surface build if no freetype. 2005-07-28 Owen Taylor * src/cairo-win32-font.c (_draw_glyphs_on_surface): Pass -1 not 1 to RestoreDC to restore to the last SaveDC. (#3905, Stuart Parmenter) 2005-07-16 Owen Taylor Patch from Martin Kretzschmar , #3798 * src/cairo-xlib-surface.c (_get_image_surface): prevent sign-extension of masks.*_mask on 64bit architectures. * src/cairo-xcb-surface.c (_get_image_surface): ditto. 2005-07-28 Owen Taylor * src/cairo-image-surface.c (_cairo_image_surface_acquire_source,dest_image) src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_dest_image) src/cairo-xcb-surface.c (_cairo_xcb_surface_acquire_source,dest_image): src/cairo-xlib-surface.c (_cairo_xlib_surface_acquire_source,dest_image): Set image_extra to NULL to avoid purify warnings. (#3777, Stuart Parmenter) 2005-07-27 Carl Worth * src/cairoint.h: * src/cairo-path-data-private.h: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo-surface.c: Remove all create_in_error functions as they were just muddling up the memory management semantics: _cairo_path_data_create_in_error _cairo_pattern_create_in_error _cairo_surface_create_in_error * src/cairo-gstate.c: (_cairo_gstate_mask), (_composite_traps_intermediate_surface), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_show_glyphs): Don't bother with extra check of other->status to anticipate and try to prevent cairo_surface_create_similar from returning through cairo_surface_create_in_error. * src/cairo-glitz-surface.c: (cairo_glitz_surface_create): * src/cairo-image-surface.c: (cairo_image_surface_create), (cairo_image_surface_create_for_data): * src/cairo-png.c: (cairo_image_surface_create_from_png): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (cairo_surface_create_similar), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_for_dc): * src/cairo-xlib-surface.c: (cairo_xlib_surface_create): * src/cairo.c: (cairo_get_source), (cairo_get_font_face): (cairo_get_target), (cairo_copy_path), (cairo_copy_path_flat): Just return &_cairo_surface|pattern|path_nil rather than _cairo_surface|pattern|path_create_in_error. * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-pattern.c: * src/cairo-ps-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: After checking surface->status from a cairo__surface_create function, just return CAIRO_STATUS_NO_MEMORY since that's the only error we'll get from one of these create functions. * src/cairo-gstate.c: (_cairo_gstate_get_target): Remove unnecessary check for gstate == NULL; * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient): Fix old check for image == NULL instead of image->base.status. * src/cairo-quartz-surface.c: (_cairo_quartz_surface_acquire_source_image): Add missing check of surface->image_base.status after creating surface->image. * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar): Add missing check of surface->base.status after creating surface. 2005-07-27 Owen Taylor * src/cairo-font.c src/cairoint.h: Define _cairo_font_face_nil. (cairo_font_face_reference, cairo_font_face_destroy cairo_font_face_set_user_data): Handle a nil font face. (cairo_font_face_status): New function. * src/cairo-font.c (_cairo_simple_font_face_create) src/cairo-ft-font.c (cairo_ft_font_face_create_for_pattern): src/cairo-ft-font.c (cairo_ft_font_face_create_for_ft_face): src/cairo-win32-font.c (cairo_win32_font_face_create_for_logfontw): Return _cairo_font_face_nil on out-of-memory. * src/cairo-gstate.c (_cairo_gstate_select_font_face) * src/cairo-gstate.c (_cairo_gstate_ensure_font_face): Check return of _cairo_simple_font_face_create(). * src/cairo-gstate.c (_cairo_gstate_set_font_face): Error out if font_face has a status. * src/cairo-surface.c (cairo_surface_set_user_data): Handle a nil surface. 2005-07-27 Owen Taylor * test/Makefile.am (XFAIL_TESTS): Remove text-antialias-none which is now fixed. * test/text-antialias-none.c (main): No longer xfail. 2005-07-27 Owen Taylor * src/cairo-win32-font.c (_win32_scaled_font_create): * src/cairo-ft-font.c (_ft_scaled_font_create): Go back to returning NULL. * src/cairoint.h src/cairo-ft-font.c: Stop exporting _cairo_scaled_font_nil, since we dont' need it publically any more. * src/cairo-surface.c (_cairo_surface_reset_clip): return surface->status not status. (Fixes warning) 2005-07-26 Carl Worth * src/cairo.h: Add CAIRO_STATUS_INVALID_CONTENT, CAIRO_STATUS_INVALID_FORMAT, and CAIRO_STATUS_INVALID_VISUAL. Change functions to return type of void: cairo_scaled_font_extents cairo_surface_finish Add new functions to query object status: cairo_scaled_font_status cairo_surface_status * doc/public/tmpl/cairo.sgml: * src/cairo-array.c: * src/cairo-atsui-font.c: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-meta-surface.c: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairo.c: * src/cairoint.h: Implementation of new error handling scheme for cairo_surface_t and cairo_scaled_font_t. * test/surface-finish-twice.c: Track change in return value of cairo_surface_finish. 2005-07-27 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_get_font_options): Turn off antialiasing for rendering to alpha surfaces. 2005-07-27 Carl Worth * ROADMAP: Note that the XFAIL tests all need to be fixed before 1.0. * test/.cvsignore: * test/Makefile.am: * test/text-antialias-gray-ref.png: * test/text-antialias-gray.c: (draw), (main): * test/text-antialias-none-ref.png: * test/text-antialias-none.c: (draw), (main): * test/text-antialias-subpixel.c: (draw), (main): Add three new tests for testing the various antialiasing options for text rendering. 2005-07-27 Carl Worth * src/cairo-png.c: (cairo_image_surface_create_from_png_stream): Fix typo that caused cairo_image_surface_create_from_png_stream to segfault. Closes bug #3863 (thanks to Steve Chaplin). * test/.cvsignore: * test/Makefile.am: * test/create-from-png-stream-ref.png: * test/create-from-png-stream.c: * test/create-from-png.c: Add a test to actually call cairo_image_surface_create_from_png_stream. 2005-07-27 Owen Taylor * src/cairo-xlib-surface.c (_xlib_glyphset_cache_create_entry): Deal with glyphs with entry->im->image NULL. (This can happen if fonts have size-zero bitmaps for some characters, for example) (http://bugzilla.gnome.org/show_bug.cgi?id=311709, Sangu Kim) 2005-07-27 Owen Taylor * src/cairo-ft-font.c (_get_bitmap_surface): FreeType bitmaps may only be padded out to 8-bit boundaries, not 32-bit boundaries. (_render_glyph_bitmap): Fix sign error in using glyphslot->bitmap_left. 2005-07-27 David Reveman * src/cairo-xlib-surface.c (_cairo_xlib_screen_from_visual): Trivial fix for typo that caused infinite loop when using non-default visuals. 2005-07-25 Carl Worth * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-pdf-surface.c: Replace all occurences of refcount with ref_count. * doc/public/language-bindings.xml: Replace refcounted with reference-counted. 2005-07-25 Owen Taylor reviewed by: cworth * src/cairo.[ch] src/cairo-gstate-private.h src/cairo-gstate.c src/cairoint.c: Add cairo_{get,set}_font_options(). * doc/public/Makefile.am (IGNORE_HFILES): Add cairo-xlib-private.h * doc/public/cairo-sections.txt: Update 2005-07-24 Owen Taylor * src/cairo-ft-font.c (_render_glyph_outline): Fix size of allocated buffer for vertical subpixel rendering. (Reported by Fryderyk Dziarmagowski, http://bugzilla.gnome.org/show_bug.cgi?id=310935) (_get_pattern_load_flags): Fix a problem where we were OR'ing multiple FT_LOAD_* flags together. * src/cairo-xlib-screen.c (_cairo_xlib_init_screen_font_options): Fix reversed check for subpixel or not. 2005-07-23 Malcolm Tredinnick * src/cairo-ft-font.c: * src/cairo.h: Add some missing parameters for API docs. 2005-07-23 Owen Taylor * src/cairo-xlib-private.h src/cairo-xlib-screen.c: Switch to using Screen * not screen number to match surface code. * src/cairo-xlib-screen.c: Get the screen info for the right screen for the surface. 2005-07-22 Owen Taylor * src/cairo-ft-font.c: Protect against division by zero in various places. (http://bugzilla.gnome.org/show_bug.cgi?id=311299, reported by Ali Akcaagac) 2005-07-22 Owen Taylor Patch from Tor Lillqvist * src/cairo-win32-font.c: Define TT_PRIM_CSPLINE if it wasn't in the headers. (_get_system_quality): Add missing variable smoothing_type. 2005-07-22 Carl Worth * src/cairoint.h: Get the case right. It's cairo, not Cairo. 2005-07-22 Carl Worth * ROADMAP: Note that sub-pixel text rendering is done now. 2005-07-21 Owen Taylor * src/cairo-ft-font.c: The FT_LOAD_TARGET_* flags aren't separate bitfields, but rather an embedded subfield, so test with FT_LOAD_TARGET_MODE (val->key.flags) == FT_RENDER_LCD, and similar. 2005-07-21 Keith Packard reviewed by: cworth, otaylor * src/cairo-ft-font.c: (_ft_font_cache_create_entry), (_ft_unscaled_font_set_scale), (_native_byte_order_lsb), (_get_bitmap_surface), (_render_glyph_outline), (_render_glyph_bitmap), (_get_pattern_load_flags), (_get_options_load_flags): * src/cairo-xlib-surface.c: (cairo_xlib_surface_set_size), (_native_byte_order_lsb), (_xlib_glyphset_cache_create_entry), (_xlib_glyphset_cache_destroy_entry), (_get_glyphset_cache), (_select_text_mask_format), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8): * src/cairoint.h: Add ARGB glyph support. Change Bi-level glyph support to use A1 format. Support bit/byte swapping of glyph image data in the Xlib backend. 2005-07-21 Carl Worth * src/cairo-ft.h: * src/cairo-quartz.h: Whitespace fixes. 2005-07-21 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_area_move_out): Check if empty area. 2005-07-21 Keith Packard reviewed by: otaylor, cworth * ROADMAP: * src/cairo-xlib-surface.c: (cairo_xlib_surface_set_drawable): * src/cairo-xlib.h: Add cairo_xlib_surface_set_drawable which changes the target drawable for an xlib cairo_t to another which shares the same format, screen and display. 2005-07-21 Carl Worth * ROADMAP: Note that cairo_font_options_t is done now. 2005-07-13 Owen Taylor reviewed by: cworth * src/cairo-font-options.c src/cairo.h src/cairoint.h src/Makefile.am: Add an opaque cairo_font_options_t structure. * src/cairo-font.c src/cairo.h src/cairoint.h: Add a cairo_font_options_t object to cairo_scaled_font_create(). * src/cairo-surface.c src/cairoint.h: Add virtualized cairo_surface_get_font_options() to get the font options for a surface. * src/cairo-gstate.c: Adapt to cairo_scaled_font_create() change. * src/cairo-pdf-surface.c: Add an implementation of get_font_options() that turns off metrics hinting. * src/cairo-xlib-screen.c src/cairo-xlib-private.h: Add a "screen info" structure that holds (for now) information about the default font options for the screen. * src/cairo-xlib-surface.c: Implement get_font_options() * src/cairo-ft-font.c src/cairo-ft.h: Add functions to apply a cairo_font_options_t to a FcPattern or get the load flags for a cairo_font_options_t. * src/cairo-ft-font.c: Adapt to font options additions. Add support for non-antialiased rendering of scalable fonts. Add support for turning off metrics hinting. * src/cairo-win32-font.c: Adapt to font options additions. * doc/public/Makefile.am doc/public/cairo-sections.txt: Update. 2005-07-21 Carl Worth * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_release_surface), (_cairo_glitz_pattern_acquire_surfaces), (_cairo_glitz_surface_composite), (_cairo_glitz_surface_composite_trapezoids), (_cairo_glitz_surface_show_glyphs): Finally grepped through and fixed up the last remaining calls to cairo_pattern_release_surface. 2005-07-21 Carl Worth * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite), (_cairo_xcb_surface_composite_trapezoids): Fix yet another file that I missed when I made the cairo_pattern_release_surface change. You would think that I would have grepped for all uses of this function by now. 2005-07-21 Carl Worth * ROADMAP: Mark cairo_xlib_surface_create as complete. Move cairo_xlib_surface_set_drawable from 0.6 to 1.0 since it is an API addition, not a change. 2005-07-20 Carl Worth reviewed by: keithp * src/cairo.h (CAIRO_CONTENT_VALID): Fix macro to not consider CAIRO_FORMAT_ARGB32 (==0) as a valid cairo_content_t. 2005-07-20 Keith Packard reviewed by: otaylor * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_same_screen), (_cairo_xlib_surface_clone_similar), (_surfaces_compatible), (_categorize_composite_operation), (_cairo_xlib_surface_create_internal), (_cairo_xlib_screen_from_visual), (cairo_xlib_surface_create), (cairo_xlib_surface_create_for_bitmap), (cairo_xlib_surface_create_with_xrender_format): * src/cairo-xlib-xrender.h: * src/cairo-xlib.h: * test/cairo-test.c: (create_xlib_surface): Add Screen* arguments to: cairo_xlib_surface_create_with_xrender_format cairo_xlib_surface_create_for_bitmap Required to correctly identify when two Xlib surfaces are compatible with Core and Render rendering requests. cairo_xlib_surface_create can determine the screen given the required Visual * 2005-07-20 Carl Worth * ROADMAP: Move all API changes from 1.0 to 0.6. Other 1.0 API issues are strictly additions. 2005-07-18 Carl Worth * test/.valgrind-suppressions: Add valgrind suppressions for libpng/libz use of uninitialized data. There are clearly bugs here that are not cairo's fault as zeroing the buffer before writing the png image actually causes more errors(!). And, notably, setting all the data to random bytes usually makes the errors go away. * test/Makefile.am: Change the check-valgrind target to include the .valgrind-suppresions file and to tee output into valgrind.log. 2005-07-18 Carl Worth * test/.valgrind-suppressions: Add valgrind suppressions for libpng/libz use of uninitialized data. There are clearly bugs here that are not cairo's fault as zeroing the buffer before writing the png image actually causes more errors(!). And, notably, setting all the data to random bytes usually makes the errors go away. * test/Makefile.am: Change the check-valgrind target to include the .valgrind-suppresions file and to tee output into valgrind.log. 2005-07-18 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_2. 2005-07-18 Carl Worth * src/cairo-quartz-surface.c: (_cairo_quartz_surface_acquire_source_image), (_cairo_quartz_surface_set_clip_region): Fix the quartz backend so that it at least compiles again. This change is slipped in before 0.5.2 was pushed out and tagged. 2005-07-18 Carl Worth * NEWS: Added notes for snapshot 0.5.2 * configure.in: Increment CAIRO_VERSION to 0.5.2 2005-07-18 Carl Worth * test/composite-integer-translate-over-repeat.c (draw): Fix leak of pattern. 2005-07-18 Carl Worth * ROADMAP: Note some progress. * test/cairo-test.h: * test/cairo-test.c: (cairo_test_create_surface_from_png), (cairo_test_create_pattern_from_png): New helper function to help create an image surface from a PNG file, while taking the srcdir environment variable into consideration. Rename the pattern creating helper function to match. * test/composite-integer-translate-over.c: (draw): * test/composite-integer-translate-source.c: (draw): Use new cairo_test_create_surface_from_png so that non-srcdir builds work. * test/mask.c: (set_image_pattern): * test/trap-clip.c: (set_image_pattern): Track change in cairo_test_create_pattern_from_png. 2005-07-18 Carl Worth * BUGS: Add note that Xlib caches need to be cleand up on close of display. 2005-07-15 Carl Worth * src/cairo-font.c: * src/cairo-surface.c: Remove cairo_private qualifier from .c files, (we only need it in the .h files). 2005-07-15 Vladimir Vukicevic * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite, _recategorize_composite_repeat): Use XCopyArea when possible, for optimization and bug workaround. * test/composite-integer-translate-{source,over,over-repeat}.c: Exercise XCopyArea, XRenderComposite, and XSetTile/XFillRectangle paths for _cairo_xlib_surface_composite 2005-07-15 Carl Worth * test/Makefile.am: Add new check-valgrind target for running the test suite under the influence of valgrind. * test/buffer-diff.c: (image_diff): Fix memory leak when reference image is not found. 2005-07-15 Carl Worth * test/mask.c: (set_gradient_pattern), (set_image_pattern), (draw): Fix a few memory leaks (missing cairo_pattern_destroy in 3 places). 2005-07-15 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_mask): Fix memory leak, (missing _cairo_pattern_fini). 2005-07-15 Carl Worth * test/cairo-test.c (cairo_test_for_target): Remove errant line of code that was inadvertently committed recently. 2005-07-14 Carl Worth * test/surface-finish-twice.c: (draw): Fix leak of surface. 2005-07-14 Carl Worth * src/cairo-pdf-surface.c: (_cairo_pdf_surface_finish), (_cairo_pdf_document_finish): Call _cairo_array_fini on the several array objects to patch memory leaks. 2005-07-14 Carl Worth * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_show_glyphs): Eek. Yet _more_ fixups for _cairo_pattern_release_surface missed earlier. 2005-08-14 Stuart Parmenter * src/cairo-win32-surface.c: (_cairo_win32_surface_fill_rectangles): blue and green values were swapped in the DO_SOURCE case. 2005-07-14 Carl Worth * test/cairo-test.c: (cairo_test_create_png_pattern): Rewrite to use cairo_image_surface_create_from_png rather than custom read_png_argb32. In addition to being simpler, this eliminates the leak of the image data buffer. * test/trap-clip.c: (set_gradient_pattern), (set_image_pattern): Add calls to cairo_pattern_destroy to close two memory leaks. 2005-07-14 Carl Worth * src/cairo-pattern.c: (_cairo_pattern_acquire_surfaces): Fix up one more call to _cairo_pattern_release_surface missed in the previous commit. 2005-07-14 Carl Worth * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_release_surface): Fix to accept a cairo_pattern_t rather than a cairo_surface_t as the primary argument. * src/cairo-image-surface.c: (_cairo_image_surface_composite), (_cairo_image_surface_composite_trapezoids): Track change in _cairo_pattern_release_surface and also pass the appropriate pattern for each acquired surface. The previous backend mismatch was causing memory leaks. * src/cairo-xlib-surface.c: (_get_image_surface): Remove stale comment. * test/xlib-surface.c: (main): Add missing fclose to keep valgrind happy about memory leaks. 2005-07-14 Carl Worth * test/cairo-test.c: (cairo_test_expecting), (cairo_test_expect_failure), (cairo_test): Make the per-backend test results print XFAIL rather than FAIL for expected failures. 2005-07-14 Carl Worth * test/cairo-test.c: (cairo_test_real): Fix comment describing test result. It's not enough that all tested backends are successful. We also require that at least one backend is actually tested. 2005-07-14 Carl Worth * test/cairo-test.c: (cairo_test_for_target), (cairo_test_real): * test/cairo-test.h: Don't consider a test to fail if it can't create a surface at all (eg. no X server is available). Instead mark this backend as untested and only consider the overall test a success if all tested backend are successful. 2005-07-14 Carl Worth * src/cairo-ps-surface.c: (pattern_is_translucent): Add missing (putatively unreachable) return value. 2005-07-14 Carl Worth * src/cairo-image-surface.c: (_cairo_image_surface_set_clip_region): Remove the copying of the region. This was a workaround for a missing copy bug in libpixman that has since been fixed. So now it was just a memory leak. 2005-07-14 Carl Worth * src/cairo-png.c (read_png): Patch memory leak of png_info object. 2005-07-14 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/create-for-png-ref.png: * test/create-for-png.c: * test/create-from-png.c: (draw): Rename create-for-png test to create-from-png to match the naming of the cairo_image_surface_create_from_png function. 2005-07-14 Carl Worth * test/cairo-test.c: (cleanup_xcb), (cleanup_xlib), (cairo_test_for_target), (cairo_test_real): Patch a few memory leaks. 2005-07-13 Kristian Høgsberg * src/cairo-meta-surface.c: (_cairo_meta_surface_replay): Use the _cairo_surface_*() functions when replaying. * src/cairo-ps-surface.c: Fold the "locate fallbacks" pass into the postscript output pass, and add a simple, first implementation of image fallbacks. 2005-07-13 Carl Worth * src/cairoint.h: * src/cairo-font.c: (_cairo_simple_font_face_create_font): Rename CAIRO_FONT_BACKEND_DEFAULT to the more accurate CAIRO_SCALED_FONT_BACKEND_DEFAULT. 2005-07-13 Carl Worth * src/cairo-ft-private.h: * src/cairo-ft-font.c: (_cairo_unscaled_font_is_ft), (_cairo_scaled_font_is_ft): New predicates to allow checking for cairo_ft derivates of generic font type. * src/cairo-ps-surface.c: (_cairo_ps_surface_get_font), (_cairo_ps_surface_show_glyphs), (_ps_output_show_glyphs): * src/cairo-pdf-surface.c: (_cairo_pdf_document_get_font), (_cairo_pdf_surface_show_glyphs): * src/cairo-font-subset.c: (_cairo_font_subset_create): Add explicit checks for cairo_ft derivatives of generic fonts rather than just blindly assuming that's what we get. 2005-07-12 Carl Worth * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create): Remove destroy notifier. This simplifies the implementation a bit, and no anticipated use of cairo_hash_table_t in cairo needs the destroy notifier. Most uses will be hash-backed object create/destroy functions. (_cairo_hash_table_destroy): Document that it is now a fatal error to call _cairo_hash_table_destroy on a non-empty hash table. (_cairo_hash_table_insert): Document that it is now a fatal error to insert an entry with a key that matches an existing entry. (_cairo_hash_table_random_entry): Add predicate function so that the user can select a random entry satisying the given predicate. (_cairo_hash_table_remove): Change return type to void since failure is really not possible here. 2005-07-11 Carl Worth * ROADMAP: Add cache lock deadlock problem to roadmap for 0.5.2. Fix typo (cairo_ft_options_t -> cairo_font_options_t). Add note that glyph measurement performance needs to improve. * src/cairoint.h: Disable mutex locks, (making the caches non-thread-safe again, just like they were in the last snapshot and before). 2005-07-11 Carl Worth * ROADMAP: Note that the cairo_content_t work is done. Note progress on cairo_meta_surface_t, ARGB text, and group support. Add recent API change proposals (cairo_ft_options_t, cairo_xlib_surface_create needs to be screen aware, and cairo_xlib_surface_set_drawable). * src/cairo-arc.c (_arc_segments_needed): Note that this function is computing an incorrect result. 2005-07-08 Carl Worth * src/cairo.h: Give enum tags an underscore prefix to match the style of the struct tags. Add new cairo_content_t and change cairo_surface_create_similar to accept a cairo_content_t rather than a cairo_format_t. * src/cairoint.h: * src/cairo-glitz-surface.c: (_cairo_glitz_surface_create_similar): * src/cairo-image-surface.c: (_cairo_image_surface_create_similar): * src/cairo-meta-surface.c: (_cairo_meta_surface_create_similar): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_similar): * src/cairo-ps-surface.c: (_cairo_ps_surface_create_similar): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_create_similar): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (cairo_surface_create_similar), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_similar), (_cairo_win32_surface_get_subimage): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_clone_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_clone_similar): Change surface backend create_similar call to accept a cairo_content_t rather than a cairo_format_t. * src/cairo-glitz-surface.c: (_glitz_format_from_content), (_cairo_glitz_surface_clone_similar), (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_surface_fill_rectangles), (_cairo_glitz_surface_composite_trapezoids): * src/cairo-gstate.c: (_cairo_gstate_mask), (_composite_traps_intermediate_surface), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (cairo_image_surface_create), (cairo_image_surface_create_for_data), (_cairo_format_from_content), (_cairo_content_from_format): * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_solid): * src/cairo-ps-surface.c: (emit_image): * test/mask.c: (mask_polygon), (draw): * test/pixman-rotate.c: (draw): * test/source-clip.c: (draw): Fix all calls into create_similar to pass a cairo_content_t rather than a cairo_format_t. 2005-07-07 Carl Worth * CODING_STYLE: Add a missing word. * ROADMAP: Note that the BadMatch bug has been resolved. 2005-07-06 Carl Worth * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Remove CAIRO_STATUS_NO_TARGET_SURFAC and add CAIRO_STATUS_INVALID_STATUS. * src/cairo-gstate.c: (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_copy_page), (_cairo_gstate_show_page): Don't check for gstate->target == NULL anymore as the API now guarantees it never occurs. * src/cairo.c: (cairo_append_path): Check that path->status is a valid status value and cause an INVALID_STATUS error otherwise. * test/path-data.c: (main): Test the new CAIRO_STATUS_INVALID_STATUS error case in cairo_append_path. 2005-07-06 Carl Worth * configure.in: Require libpixman >= 0.1.5, (since 0.1.4 crashes on some X servers). 2005-07-05 Carl Worth * src/cairo-ps-surface.c: Disable the compilation of the _ps_locate_fallbacks code which, inaddition to being broken, appears to not currently be used. 2005-07-04 David Reveman * configure.in: Require glitz >= 0.4.4. * src/cairo-glitz-surface.c: Use frame buffer objects instead of pbuffers for accelerated offscreen drawing. (_cairo_glitz_pattern_acquire_surface): Minor improvement to gradient pattern creation. 2005-07-01 Kristian Høgsberg * src/cairo-ps-surface.c: Rewrite postscript backend to generate more interesting output than the current big-image implementation, using meta surfaces for font subsetting and image fallbacks. * src/cairo-meta-surface.c: Remove obsolete comment. * src/cairoint.h: * src/cairo-output-stream.c: Make a couple of stylistic changes and add _cairo_output_stream_write_hex_string. * src/cairo-surface.c: Add _cairo_surface_intersect_clip_path so we can replay path clipping. 2005-07-01 Kristian Høgsberg * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: Add meta surface implementation. * src/Makefile.am (libcairo_la_SOURCES): Add cairo-meta-surface.c and cairo-meta-surface-private.h 2005-06-29 Carl Worth * src/cairo-hash.c (_cairo_hash_table_resize): Remove debugging printfs. 2005-06-29 Carl Worth * src/cairo-hash-private.h: * src/cairo-hash.c (_cairo_hash_table_random_entry): Add _cairo_hash_table_random_entry. * src/cairo-hash.c: (_destroy_entry): Fix to update live_entries. * src/cairo-hash.c: (_cairo_hash_table_lookup_internal): style changes. * src/cairo-hash.c (_cairo_hash_table_resize): Add code to shrink table as well as to grow it. * src/cairo-hash.c (_cairo_hash_table_insert), (_cairo_hash_table_remove): Call new version of resize so that table will grow or shrink as needed on insert and remove. 2005-06-29 Carl Worth * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create), (_destroy_entry), (_cairo_hash_table_destroy), (_cairo_hash_table_lookup_internal), (_cairo_hash_table_resize), (_cairo_hash_table_lookup), (_cairo_hash_table_insert), (_cairo_hash_table_remove), (_cairo_hash_table_foreach): Rewrite hash table to use a single cairo_hash_entry_t* rather than void *key and void *value. This is slightly more painful to use, but lends itself to a more memory-efficient implementation. Add documentation. 2005-06-29 Carl Worth * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create), (_cairo_hash_table_destroy_entry), (_cairo_hash_table_destroy), (_cairo_hash_table_lookup_internal), (_cairo_hash_table_resize), (_cairo_hash_table_lookup), (_cairo_hash_table_insert), (_cairo_hash_table_remove), (_cairo_hash_table_foreach): Rework the cache code as a hast table with a much simpler interface, (no object derviation is required to use it). * src/cairoint.h: Remove extraneous prototype for non-existent _cairo_cache_reference. 2005-06-28 Kristian Høgsberg * src/cairo-pattern.c (cairo_pattern_create_rgb) (cairo_pattern_create_rgba): New functions to create a cairo_pattern_t corresponding to a solid color and a translucent color respectively. Document a few pattern functions. 2005-06-28 T Rowley reviewed by: otaylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_path): Implement. 2005-06-28 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Also flag older XFree86 servers as buggy-repeat. 2005-06-28 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Prevent crash on empty string. 2005-06-25 Keith Packard reviewed by: cworth * configure.in: * src/cairo-cache.c: (_cairo_cache_shrink_to), (_cairo_cache_lookup): * src/cairo-font.c: (_lock_global_simple_cache), (_unlock_global_simple_cache), (_lock_global_font_cache), (_unlock_global_font_cache), (_cairo_lock_global_image_glyph_cache), (_cairo_unlock_global_image_glyph_cache), (_cairo_get_global_image_glyph_cache): * src/cairo-ft-font.c: (_lock_global_ft_cache), (_unlock_global_ft_cache): * src/cairo-xlib-surface.c: (_xlib_glyphset_cache_create_entry), (_xlib_glyphset_cache_destroy_entry), (_lock_xlib_glyphset_caches), (_unlock_xlib_glyphset_caches), (_get_glyphset_cache), (_cairo_xlib_surface_show_glyphs): * src/cairoint.h: Provide locking macros, implement with pthreads. Add _cairo_cache_shrink_to which reduces cache memory usage to a specified level. Change global glyph and xlib glyphset caches behaviour to only shrink cache on unlock. This is done by telling the cache code to never shrink (max_memory == 0), and then manually shrinking using _cairo_cache_shrink_to from the unlock function. Fix Carl's variable renaming mixing (cache = cache). 2005-06-24 Owen Taylor * src/cairo-ft-font.c (_transform_glyph_bitmap): Add mostly useless (other than perhaps 90-degree rotation) code for transforming bitmap glyphs. 2005-06-25 Carl Worth From: J. Ali Harlow" Reviewed by: Vladimir Vukicevic * test/Makefile.am: * src/cairo-win32-surface.c: (_cairo_win32_surface_create_for_dc), (_cairo_win32_surface_create_similar), (_cairo_win32_surface_create_dib), (_cairo_win32_surface_composite), (categorize_solid_dest_operator), (_cairo_win32_surface_set_clip_region): Update win32 backend to match current API, so it actually builds once again. 2005-06-25 Carl Worth * src/cairo-win32-surface.c: (_cairo_win32_surface_create_for_dc), (_cairo_win32_surface_create_similar), (_cairo_win32_surface_create_dib), (_cairo_win32_surface_composite), (categorize_solid_dest_operator), (_cairo_win32_surface_set_clip_region): * test/Makefile.am: 2005-06-24 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_create_glyph): Remove stray character. 2005-06-24 Carl Worth * src/cairo-xlib-surface.c: (_xlib_glyphset_cache_create_entry), (_glyphset_cache_entry_reference), (_xlib_glyphset_cache_destroy_entry), (_get_glyphset_cache), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs): Prefer descriptive variable names over single-character names. Remove unneeded XGlpyhInfo field from glyphset_cache_entry_t. 2005-06-24 Owen Taylor * src/cairo-ft-font.c (_render_glyph_bitmap): Handle rendering bitmap glyphslots as well as outline glyphslots. * src/cairo-ft-font.c (_ft_unscaled_font_set_scale): When setting the scale for a non-scalable font, use the nearest available size (FreeType won't set the glyph metrics otherwise.) 2005-06-23 Carl Worth * ROADMAP: Add ARGB text to 1.0 roadmap. 2005-05-17 Owen Taylor * src/cairo-png.c (write_png): Only unpremultiply ARGB32 data, do a simpler conversion for RGB24 data (fixes #2297) Call png_write_info() *before* we set up the write conversion... it doesn't work after. 2005-06-23 Carl Worth * ROADMAP: Add workaround for Render's overlapping source/dest bug to the 0.5.2 roadmap. 2005-06-22 Carl Worth * ROADMAP: Update ROADMAP with some comments on 0.5.2. Add link to BadMatch bug. * src/cairo.c: Add documentation for cairo_set_source_surface and fix some typos in other documentation blocks. 2005-06-22 Øyvind Kolås * doc/public/language-bindings.xml: spelling and whitespace fix. 2005-06-21 Kristian Høgsberg * src/cairo-pdf-surface.c: Split out font subsetting code from here, * src/cairo-font-subset-private.h: * src/cairo-font-subset.c: and put it here. 2005-06-21 T Rowley * src/cairo-atsui-font.c: allow building against < 10.3 SDK. 2005-06-20 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_1. 2005-06-20 Carl Worth * Makefile.am: Force distcheck to enable gtk-doc. 2005-06-20 Carl Worth * NEWS: Added notes for snapshot 0.5.1 * configure.in: Increment CAIRO_VERSION to 0.5.1 2005-06-20 Owen Taylor Workaround for https://bugs.freedesktop.org/show_bug.cgi?id=3566 * src/cairo-xlib-surface.c: Detect servers with a bug in repeating surfaces by checking vendor string and version. * src/cairo-xlib-surface.c: For such surfaces either fall back to an implementation with the core protocol or fall back to the image backend. * src/cairo-xlib-surface.c: Save clip rects when setting a clip region on a surface so that we set the right clip for the surface's GC if we create it later. 2005-06-20 Carl Worth * src/cairo-matrix.c: (_cairo_matrix_is_integer_translation): Make out parameters optional. Style cleanup. 2005-06-20 Carl Worth * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_is_opaque_solid): Abstract CAIRO_ALPHA_IS_OPAQUE out for general internal use. * src/cairo.c: (cairo_paint_with_alpha): Optimize to defer to cairo_paint if the alpha value is actually opaque. 2005-06-20 Carl Worth * src/cairo.h: * src/cairo-private.h: * src/cairo.c: (_cairo_error), (cairo_create): Rip out cairo_set_error_notfiy function as it is clear that it is not the right approach. * test/.cvsignore: * test/Makefile.am: * test/error-notify.c: Remove error-notify test. 2005-06-17 Carl Worth * src/cairo-xcb-surface.c (_get_image_surface): Remove references to repeat and matrix fields that no longer exist. 2005-06-17 Owen Taylor * src/cairo-xcb-surface.c (_get_image_surface) * src/cairo-xlib-surface.c (_get_image_surface): Fix width/height typo. 2005-06-17 Kristian Høgsberg * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_image): * src/cairo-pattern.c: (cairo_pattern_create_for_surface): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_pdf): * src/cairo-surface.c: (_cairo_surface_init): * src/cairo-xlib-surface.c: (_get_image_surface): * src/cairoint.h: Remove matrix, filter and repeat from the cairo_surface_t struct. 2005-06-17 Carl Worth * src/cairo.c: (cairo_reference), (cairo_destroy): cairo_reference and cairo_destroy shouldn't behave differently when cr->status indicates an error. Fix this bug that just slipped back in. * src/cairo.c: (cairo_restore): Remove useless conditional return at the end of a void function. * src/cairo.c: (cairo_get_source), (cairo_get_font_face), (cairo_text_extents), (cairo_show_text), (cairo_text_path): Fix so that after calling _cairo_error the most that any cairo entry function ever does is return a previously computed value. 2005-06-17 Kristian Høgsberg * TODO: Remove the path clipping entry from the list. 2005-06-16 Carl Worth * src/cairo-private.h: Reorder fields of cairo_private_t to match initialization order. * src/cairo.c: (_cairo_error): Call error_notify callback if set. (cairo_create): Initialize error_notify callback to NULL. (cairo_set_error_notify): New function to allow the user to set an error notify callback. * src/cairo.h: New cairo_set_error_notify prototye. * test/.cvsignore: * test/Makefile.am: * test/error-notify.c: (toggle_status), (do_test), (main): New test for cairo_set_error_notify. 2005-06-15 Carl Worth * TODO: Add CAIRO_STATUS_DESTROYED to TODO list. * ROADMAP: Note progress on consistent error handling. * src/cairo-surface.c: Fix typo in documentation comment for _cairo_surface_get_current_clip_serial. 2005-06-15 Owen Taylor * doc/public/Makefile.am (MKTMPL_OPTIONS): Remove --only-section-tmpl; it doesn't really work currently :-(. 2005-06-15 Owen Taylor * src/cairo-gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Use a clip region when rendering a non-solid pattern through a rectangular path ... trapezoid rasterization is just too slow to use that path when we aren't forced to do so. 2005-06-15 Carl Worth * test/cairo-test.c: Track removal of cairo_status_string. (cairo_test_for_target): And add missing parenthesis. 2005-06-15 Carl Worth * TODO: Add cairo_finish to TODO list. Note that cairo_satus_string has now been removed. 2005-06-15 Carl Worth * src/cairo.h: * src/cairo.c: Remove cairo_status_string function which can now be replaced by: cairo_status_to_string (cairo_status (cr)); This allows consistent handling of status values for things like cairo_pattern_status where there is now cairo_pattern_status_string function. 2005-06-13 Carl Worth * src/cairo.c: (_cairo_error): Add _cairo_error so we have a single function which all errors can pass through. This allows the user to set a breakpoint on error and will allow us to augment error handling later as necessary. * src/cairo.c: (cairo_create), (cairo_reference), (cairo_destroy), (cairo_save), (cairo_restore), (cairo_set_operator), (cairo_set_source_rgb), (cairo_set_source_rgba), (cairo_set_source_surface), (cairo_set_source), (cairo_get_source), (cairo_set_tolerance), (cairo_set_fill_rule), (cairo_set_line_width), (cairo_set_line_cap), (cairo_set_line_join), (cairo_set_dash), (cairo_set_miter_limit), (cairo_translate), (cairo_scale), (cairo_rotate), (cairo_transform), (cairo_set_matrix), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_new_path), (cairo_move_to), (cairo_line_to), (cairo_curve_to), (cairo_arc), (cairo_arc_negative), (cairo_rel_move_to), (cairo_rel_line_to), (cairo_rel_curve_to), (cairo_rectangle), (cairo_close_path), (cairo_paint), (cairo_paint_with_alpha), (cairo_mask), (cairo_mask_surface), (cairo_stroke_preserve), (cairo_fill_preserve), (cairo_copy_page), (cairo_show_page), (cairo_in_stroke), (cairo_in_fill), (cairo_stroke_extents), (cairo_fill_extents), (cairo_clip_preserve), (cairo_reset_clip), (cairo_select_font_face), (cairo_get_font_face), (cairo_font_extents), (cairo_set_font_face), (cairo_set_font_size), (cairo_set_font_matrix), (cairo_get_font_matrix), (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text), (cairo_show_glyphs), (cairo_text_path), (cairo_glyph_path), (cairo_get_operator), (cairo_get_tolerance), (cairo_get_current_point), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target), (cairo_copy_path), (cairo_copy_path_flat), (cairo_append_path), (cairo_status): Make all assignements to cr->status go through the new _cairo_error function. Remove CAIRO_CHECK_SANITY macro. 2005-06-15 Carl Worth * doc/public/cairo-sections.txt: Remove cairo-atsui section since cairo-atsui.h is currently empty. Add cairo_path_data_type_t and cairo_path_data_t. * test/.cvsignore: Add pdf-clip and pdf-clip.pdf. 2005-06-14 Kristian Høgsberg * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_set_clip), (_composite_trap_region), (_cairo_gstate_fill), (_cairo_gstate_reset_clip), (_cairo_gstate_intersect_clip_path), (_cairo_clip_path_reference), (_cairo_clip_path_destroy), (_cairo_gstate_intersect_clip_region), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_clip): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_document), (_cairo_pdf_path_move_to), (_cairo_pdf_path_line_to), (_cairo_pdf_path_close_path), (_cairo_pdf_surface_fill_path), (_cairo_pdf_surface_intersect_clip_path), (_cairo_pdf_document_add_page): * src/cairo-surface.c: (_cairo_surface_get_clip_mode), (_cairo_surface_fill_path), (_cairo_surface_reset_clip), (_cairo_surface_set_clip_path_recursive), (_cairo_surface_set_clip_path): * src/cairoint.h: Implement path clipping and refactor _cairo_gstate_clip() out in three different functions corresponding to the three different clipping modes. * src/cairo-glitz-surface.c: * src/cairo-ps-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairo-image-surface.c: * src/cairo-quartz-surface.c: Add NULL pointers for intersect_clip_path. * test/Makefile.am: * test/pdf-clip.c: New test case to exercise PDF clipping code. 2005-06-14 Carl Worth * src/cairo-glitz-surface.c: (_cairo_glitz_surface_create_similar), (_cairo_glitz_surface_clone_similar), (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_surface_composite_trapezoids): * src/cairo-image-surface.c: (_cairo_image_surface_create_similar): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_similar): * src/cairo-ps-surface.c: (_cairo_ps_surface_create_similar): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_create_similar): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_similar), (_cairo_win32_surface_get_subimage): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_clone_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_clone_similar): * src/cairoint.h: Remove Boolean 'drawable' parameter from the create_similar surface backend function since nothing anywhere is actually using this parameter. 2005-06-14 T Rowley * src/cairo-win32-font.c: Correct extents for text with a general tranform. 2005-06-14 Carl Worth * src/cairo.h: Remove comment suggesting ambiguity of whether cairo_get_target references the surface, (we decided as part of the API shakeup that cairo functions returning pointers to internal objects do not automatically take a reference). 2005-06-13 Carl Worth * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_create_in_error): Add new _cairo_pattern_create_in_error. * src/cairo.c: (cairo_get_source): Propagate error values from cr->status to pattern->status. 2005-06-13 Carl Worth * src/cairo.c (_cairo_set_source_solid), (cairo_set_source_surface), (cairo_mask_surface): No longer need to check for NULL after creating a pattern. * src/cairo.c (cairo_set_source), (cairo_mask): Propagate status errors from pattern->status to cr->status. Originally 2005-05-08 Owen Taylor : * src/cairo-pattern.c src/cairoint.h: If allocation of pattern objects fails, return special static nil pattern objects. * src/cairo-pattern.c: If adding a color stop fails to allocate memory, set pattern->status. (And fix a memory leak.) Make public functions return when pattern->status is set, (and no longer return a cairo_status_t). * src/cairo-pattern.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_pattern_status() * src/cairo-gstate.c: Check the status of gstate->source and of mask patterns passed in. 2005-06-13 Carl Worth Originally 2005-05-08 Owen Taylor : * src/cairo.c (cairo_create): If cairo_create() fails, return a special static object, cairo_nil. * src/cairo.c (cairo_reference): Don't return early if cr->status is set. cr->status should not affect reference counting. * src/cairo.c: (cairo_reference), (cairo_destroy): Ignore any magic object with a reference count of -1. 2005-06-13 Carl Worth Originally 2005-06-02 Carl Worth : * src/cairo.h: Add a status field to cairo_path_t. * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat): Add documentation for the new approach for handling errors in these functions---always returning a valid pointer with at least a status. (cairo_append_path): Propagate path status errors to the context. Add note to documentation on initializing path->status. * src/cairo-path-data-private.h: Add missing cairo_private qualifier to a couple functions. * src/cairo-path-data.c: (_cairo_path_data_create_real): Track new status field in cairo_path_t. (cairo_path_destroy): Don't destroy cairo_path_nil. Add documentation. (_cairo_path_data_create): (_cairo_path_data_create_flat): (_cairo_path_data_append_to_context): Add documentation. (_cairo_path_data_create_in_error): New function to create a placeholder cairo_path_t just to propagate a cairo_status_t error. 2005-06-11 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_init, _cairo_gstate_init_copy, _cairo_gstate_fini): Make these functions static, which allows slightly less awkward error handling within them. 2005-06-10 Carl Worth * src/cairoint.h: Provide font-backend-specific macros for FONT_FAMILY_DEFAULT. Change CAIRO_FT_FONT_FAMILY_DEFAULT from "serif" to "" to allow the actual default to come from the system/user configuration. 2005-06-10 Carl Worth * src/cairo.h: Pull the enum out from inside cairo_path_data_t and give it a name of cairo_path_data_type_t. This allows C++ programs to see the enum values. It also allows variables to be declared of this type for manually constructing a cairo_path_t. 2005-06-10 Carl Worth * ROADMAP: Add 'consistent error handling' to 1.0 roadmap. (This isn't new, we just forgot to list it here before). * TODO: Big cleanup to remove finished items. Also, split the file up to separate TODO items that affect the API from items that do not. 2005-06-10 Carl Worth Originally: 2005-06-09 Carl Worth * src/cairo-pdf-surface.c: (_cairo_pdf_surface_show_page): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_acquire_source_image), (_cairo_xcb_surface_acquire_dest_image): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_acquire_source_image), (_cairo_xlib_surface_acquire_dest_image): Rework occurrences of 'if (status == CAIRO_STATUS_SUCCESS)' to use 'if (status)' instead where trivial. 2005-06-10 Carl Worth * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Remove STATUS_OK macro which was not being used universally. 2005-06-09 Carl Worth * src/cairo.h: Remove trailing comma from enum values which gcc 4.0 does not want to see (Luis Villa). Closes bug #3502. 2005-06-09 Owen Taylor * test/Makefile.am (INCLUDES): Add -I$(top_builddir)/src for cairo-features.h (Tomasz Cholewo) 2005-06-07 Keith Packard * src/cairo-pdf-surface.c: (_cairo_pdf_surface_show_glyphs): Font matrix was output incorrectly; the implicit mirror-in-y transformation was not computed correctly, missing a negation of the 'xy' component. 2005-06-02 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_clip): When clipping, update the clip surface to a new surface the size of the intersection of the old clip surface and the extents of the new clip path. 2005-06-03 Carl Worth * src/cairo-font.c: (cairo_font_face_reference), (cairo_font_face_destroy), (_cairo_simple_font_face_destroy), (_cairo_unscaled_font_reference), (_cairo_unscaled_font_destroy), (cairo_scaled_font_reference), (cairo_scaled_font_destroy): * src/cairo-ft-font.c: (_ft_font_cache_destroy_cache), (_cairo_ft_unscaled_font_destroy), (_ft_font_face_destroy): * src/cairo-glitz-surface.c: (_cairo_glitz_area_destroy): * src/cairo-path-data.c: (cairo_path_destroy): * src/cairo-pdf-surface.c: (cairo_pdf_font_destroy), (cairo_pdf_ft_font_destroy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_destroy): Allow NULL as a valid value for several objects. That is, calling reference or destroy on these objects will simply do nothing, successfully. * src/cairo-atsui-font.c: (_cairo_atsui_font_destroy_font): Remove extra whitespace. 2005-06-03 Carl Worth * src/cairoint.h: * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_destroy): Remove unused cache->refcount and _cairo_cache_reference(). * src/cairo-cache.c: (_cairo_cache_destroy): Remove gratuitous nesting as recommended in CODING_STYLE. 2005-06-03 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_user_data_array_fini): * src/cairo-font.c: (cairo_font_face_destroy): * src/cairo-surface.c: (cairo_surface_destroy): Fix name of _cairo_user_data_array_destroy to be _cairo_user_data_array_fini. 2005-06-03 Carl Worth * src/cairo-glitz-surface.c: (_cairo_glitz_glyph_cache_create_entry), (_cairo_glitz_glyph_cache_destroy_entry), (_cairo_glitz_glyph_cache_destroy_cache), (_cairo_glitz_surface_show_glyphs): Rename functions to match the naming scheme used by cairo-cache.c and all other users of it. Though it's quite likely that glitz had this right and now everything could be changed to match it instead. I'll save that for some day when we're cleaning up the cache code. 2005-06-03 Carl Worth * CODING_STYLE: Fix spelling errors. 2005-06-03 Carl Worth * CODING_STYLE: Fix Freudian unwrapped line in paragraph describing why long lines should be wrapped. 2005-06-03 Carl Worth * CODING_STYLE: Add CODING_STYLE document to standardize on some style issues. * src/cairo-atsui-font.c: * src/cairo-cache.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-matrix.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-spline.c: * src/cairo-wideint.c: * src/cairo-win32-font.c: * src/cairo-xlib-surface.c: Standardize brace handling around all else clauses according to new CODING_STYLE guidelines. 2005-06-03 Kristian Høgsberg Patch from Tomasz Cholewo : * src/cairo-pdf-surface.c: (cairo_pdf_ft_font_write_head_table), (cairo_pdf_ft_font_generate): Store the index of the checksum instead of a pointer to the location. 2005-06-03 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: * src/cairo.c: (_cairo_set_source_solid), (cairo_set_source_rgb), (cairo_set_source_rgba): Move internal convenience up from _cairo_gstate_set_source_solid to _cairo_set_source_solid so that all set_source functions flow through cairo_set_source. 2005-06-01 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init): Remove obsolete _cairo_gstate_set_target_surface, folding its contents into _cairo_gstate_init, most of which disappears due to constant folding. Ensure that gstate->next is initialized even if _cairo_pattern_create_solid fails. * src/cairo-xcb-surface.c: Remove unused _cairo_xcb_surface_set_clip_region. 2005-06-01 Carl Worth * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Rename CAIRO_OK to STATUS_OK. No intended changes in functionality. 2005-06-01 Carl Worth * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rename gstate->surface to gstate->target. No intended changes in functionality. 2005-06-01 Carl Worth * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init): Remove unused fields from cairo_gstate_t, (font_family, font_slant, font_weight). Reorder fields to match between declaration and initialization and to put the most problematic fields (surface and source) at the end. No intended changes in functionality. 2005-06-01 Carl Worth * test/Makefile.am (XFAIL_TESTS): Add self-intersecting to the list of expected failures. 2005-06-01 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/self-intersecting-ref.png: * test/self-intersecting.c: (draw), (main): Add self-intersecting test which demonstrates the long-standing bug with stroking self-intersecting paths. 2005-06-01 Carl Worth * src/cairo-gstate.c (_cairo_gstate_get_clip_extents): Fix bug in converting box to rectangle that left clip_rect.height uninitialized, (leading to unpredictable, intermittent test failures). 2005-05-31 Carl Worth * src/cairo.h: * src/cairo.c: (cairo_status_to_string), (cairo_status_string): Add new function cairo_status_to_string an reimplement cairo_status_string in terms of the new function. 2005-05-27 Olivier Andrieu * src/cairo-path-data.c (_cpdc_curve_to_flatten), (_cpdp_curve_to_flatten) : Fix memory leak 2005-05-26 Keith Packard reviewed by: krh, otaylor, cworth Replace nesting-only surface clipping with gstate contained serial-number tracked clipping sets that are loaded into the surface on demand just before each rendering operation. This permits multiple cairo_t contexts to reference a surface without regard to ordering of operations among the contexts. Also in this patch is a change to the xlib surface that creates two separate Pictures, one for source and one for destination operands which separates the source clipping from destination clipping. Cairo now specifies that sources are never clipped by any clipping applied to them as destinations. * src/cairoint.h: * src/cairo-gstate-private.h: Move cairo_clip_t (renamed from cairo_clip_rec_t) from cairoint.h to cairo-gstate-private.h. Eliminate stack of clip state from surfaces. Add new surface clipping API. * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_has_surface_clip), (_cairo_gstate_set_clip), (_cairo_gstate_get_clip_extents), (_cairo_gstate_set_target_surface), (_cairo_gstate_paint), (_cairo_gstate_combine_clip_surface), (_cairo_gstate_intersect_clip), (_get_mask_extents), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_clip_and_compute_extents_arbitrary), (_composite_trap_region), (_cairo_gstate_fill), (_cairo_gstate_reset_clip), (_cairo_gstate_clip), (_cairo_gstate_show_glyphs): Manage clip objects entirely within the gstate, loading the whole thing into the surface just before drawing. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient), (_cairo_pattern_acquire_surface_for_solid), (_cairo_pattern_acquire_surface_for_surface), (_cairo_pattern_acquire_surface), (_cairo_pattern_release_surface): Source surfaces need not have clipping modified as the surface interface now specifies that source surfaces are always unclipped. * src/cairo-surface.c: (_cairo_surface_init), (cairo_surface_finish), (_cairo_surface_clone_similar), (_cairo_surface_get_current_clip_serial), (_cairo_surface_allocate_clip_serial), (_cairo_surface_reset_clip), (_cairo_surface_can_clip_region), (_cairo_surface_set_clip_region), (_cairo_surface_can_clip_path), (_cairo_surface_clip_path), (_cairo_surface_get_extents): Eliminate nested clipping contexts, leaving clip management entirely to the gstate. Create new clip API for the gstate which uses per-surface serial numbers to match gstate clipping against current surface clipping values. Surfaces no longer track clipping regions at all, so the old _cairo_surface_get_clip_extents has been replaced with _cairo_surface_get_extents. For PDF/PS surfaces, this function is expected to return a rectangle covering the entire fixed point coordinate space to leave rendering unclipped by the surface. * src/cairo-xcb-surface.c: Region clipping capability is now signalled by a non-NULL function pointer in set_clip_region. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_finish), (_cairo_xlib_surface_ensure_src_picture), (_cairo_xlib_surface_ensure_dst_picture), (_cairo_xlib_surface_set_matrix), (_cairo_xlib_surface_set_filter), (_cairo_xlib_surface_set_repeat), (_cairo_xlib_surface_set_attributes), (_cairo_xlib_surface_composite), (_cairo_xlib_surface_fill_rectangles), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_set_clip_region), (_cairo_xlib_surface_create_internal), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs): Each surface now contains two Pictures, one for source and one for destination operands so that source operands are never clipped by destination clipping. * src/cairo.h: * src/cairo.c: (cairo_status_string): CAIRO_STATUS_BAD_NESTING removed * test/Makefile.am: * test/self-copy.c: (main): self-copy now passes (Xlib only, until libpixman changes land) 2005-05-26 Olivier Andrieu * src/cairo.c: trivial doc fixes. 2005-05-24 Carl Worth * gtk-doc.make: Re-synch with latest from gtk-doc CVS tree. * doc/public/Makefile.am (MKTMPL_OPTIONS): Add --only-section-tmpl option so that changes to inline documentation does not lead to churn in the .sgml template files. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Commit new templates now that gtk-doc has ripped all the inline portions out. * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xlib-xrender.sgml: New template files added for new sections. * doc/public/cairo-sections.txt: Update to match current API. * src/cairo-xcb.h: Make parameter names match those in the .c file and its documentation. 2005-05-22 Carl Worth * src/cairo.c (cairo_create): Protect less-than and greater-than symbols in documentation string. * TODO: Not that a patch has been submitted for consistent error handling. * src/cairo.c: Fix documentation string for cairo_create so that it might actualyl appear in the manual. 2005-05-18 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_0. 2005-05-17 Carl Worth * PORTING_GUIDE: Added porting guide to help with transition to cairo 0.5 API. * NEWS: Added notes for snapshot 0.5.0 * configure.in: Increment CAIRO_VERSION to 0.5.0 2005-05-17 Carl Worth * src/cairo-xcb-surface.c: (_get_image_surface), (_cairo_xcb_surface_create_internal): Bring up to date with Keith's latest improvements to cairo-xlib-surface.c: Add some comments about how and why masks are computed. Generalize overflow detection in mask computation. Expand on pixman format conversion comment. Fix the broken visual->format case. 2005-05-17 Carl Worth Two fixes from Kristian Høgsberg: * src/cairo-output-stream.c: (_cairo_output_stream_create), (_cairo_output_stream_destroy), (_cairo_output_stream_create_for_file): Fix to close the file if we opened it. * src/cairo-pdf-surface.c: (_cairo_pdf_document_finish): Grab the status from out of the stream _before_ we destroy the stream. 2005-05-17 Keith Packard * src/cairo-xlib-surface.c: (_get_image_surface): Add some comments about how and why masks are computed. Generalize overflow detection in mask computation. Expand on pixman format conversion comment. 2005-05-17 Carl Worth * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Fix documentation to not mention set_size for the _for_bitmap functions. 2005-05-17 Carl Worth * util/cairo-api-update: Remove #ifdef munging since we once again support either #if or #ifdef. 2005-05-17 Carl Worth * RELEASING: Update instructions to match output of 'make distcheck' * src/Makefile.am: * test/Makefile.am: Add private headers and flesh out CLEANFILES so that 'make distcheck' actually passes. 2005-05-17 Carl Worth * src/cairo.h: Add a few more REPLACED_BY and DEPRECATED_BY definitions. * util/cairo-api-update: Add some helpful warnings. 2005-05-17 Carl Worth * src/Makefile.am (libcairo_xlib_headers): Add cairo-xlib-xrender.h which was missed from an earlier commit. 2005-05-17 Carl Worth * src/Makefile.am: * src/cairo-xcb.h: * src/cairo-xcb-xrender.h: * src/cairo-xcb-surface.c: (cairo_xcb_surface_create), (cairo_xcb_surface_create_for_bitmap), (cairo_xcb_surface_create_with_xrender_format): Update cairo-xcb.h to provide the same style of interface as cairo-xlib.h. * test/cairo-test.c: Update to match new cairo_xcb_surface_t create functions. 2005-05-17 Carl Worth * src/cairo-xlib-surface.c (_get_image_surface): Avoid shifting 32-bit quanity by 32 bits, which is undefined behavior. 2005-05-17 Carl Worth Rework of cairo_xlib_surface create functions by Keith Packard: * src/cairo-xlib-xrender.h: Add cairo_xlib_surface_create_with_render_format. * src/cairo-xlib.h: * src/cairo-xlib-surface.c: (cairo_xlib_surface_create), (cairo_xlib_surface_create_for_bitmap): Reduce Xlib constructors down to two simple forms. Add width, height to constructors and eliminate any synchronous size queries from the implementation. * test/cairo-test.c: (create_xlib_surface): * test/xlib-surface.c: (do_test): Update to match new cairo_xlib_surface_t create functions. 2005-05-17 Carl Worth * src/cairoint.h: * src/cairo-output-stream.c: Remove destroy_closure from cairo_output_stream_t interface. * src/cairo-pdf.h: * src/cairo-pdf-surface.c: Remove destroy_closure argument from cairo_pdf_surface_create_for_stream. Rename width,height to width_in_points, height_in_points for better clarity. * src/cairo-ps.h: * src/cairo-ps-surface.c: Brush a bunch of dust off of the PS backend and bring it up to date with the latest API conventions from the PDF backend. These include: accepting a filename rather than a FILE in the primary constructor, providing a stream-based interface for more flexibility, and accepting a surface size in device-space units (points) rather than inches. * test/pdf-surface.c: (main): Make it a little more clear that the width and height being passed around are in units of points. * test/ps-surface.c: (main): Update to the latest cairo-ps.h changes as described above. Notice how much more sane things become now that the surface size is described in device-space units. 2005-05-17 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/ps-surface.c: (draw), (main): Add simple test for ps surface backend (modeled after pdf-surface.c). * test/pdf-surface.c: (main): Add print message telling user to examine resulting file. 2005-05-17 Carl Worth * test/pdf-surface.c: (draw), (main): Update PDF test case to make sure we're actually getting the right paper size, image scaling etc. And it should now be easier to see if cairo is happy by manually viewing the resulting PDF file. 2005-05-17 Carl Worth * src/cairo-xlib-test.h: Fix to include cairo-xlib.h, (which also fixes test/xlib-surface.c). 2005-05-17 Carl Worth * test/pdf-surface.c: (main): Update to the latest PDF surface API changes: use filename not FILE* and use surface dimension in points, not inches. 2005-05-16 Keith Packard * src/cairo-pattern.c: (_cairo_pattern_shader_init): Initialize op->stops[0].scale = 0. This scale value is used only when computing gradient values before the defined range, in which case stop 0 is used for both ends of the interpolation, making the value of 'scale' not actually matter, except that valgrind notices we're using an undefined value. 2005-05-16 Carl Worth * test/.cvsignore: * test/Makefile.am: Remove quarter-over test name accidentally added to Makefile. 2005-05-16 Kristian Høgsberg * src/cairo-pdf-surface.c (cairo_pdf_surface_create): * src/cairo-output-stream.c (_cairo_output_stream_create_for_file): Take a filename instead of a FILE pointer. 2005-05-14 Carl Worth * src/cairo-xcb.h: * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_finish), (_cairo_xcb_surface_get_size), (_bits_per_pixel), (_bytes_per_line), (_get_image_surface), (_draw_image_surface), (_cairo_xcb_surface_get_extents), (_cairo_surface_is_xcb), (_cairo_xcb_surface_create_internal), (cairo_xcb_surface_create_for_pixmap), (cairo_xcb_surface_create_for_pixmap_with_visual), (cairo_xcb_surface_create_for_window_with_visual), (cairo_xcb_surface_set_size): Brush the dust off the XCB backend and get it compiling and working again. This patch makes the XCB surface API match that of the Xlib surface API as of yesterday. But, it's already stale as the Xlib API changed again. So we'll need one more revision of the XCB backend before the next snapshot. * test/.cvsignore: * test/Makefile.am: * test/cairo-test.c: (create_xcb_surface), (cleanup_xcb): * test/cairo-test.h: Add support for testing of the xcb backend as well. 2005-05-14 Carl Worth * test/cairo-test.c: (cairo_test_real): * test/pdf-surface.c: (main): * test/xlib-surface.c: (do_test), (main): Cleanup output a bit, move verbose messages to test-specific log file. 2005-05-14 Carl Worth * src/cairo-xlib-surface.c: (cairo_xlib_surface_create_with_visual): Fix the last commit so it actually compiles now. 2005-05-14 Carl Worth * src/cairo-xlib-surface.c: (cairo_test_xlib_disable_render), (cairo_xlib_surface_create_with_visual) * test/.cvsignore: Fix a few documentation typos in the recent xlib surface rework. 2005-05-14 Carl Worth * src/cairo-atsui.h: * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: Add an #error if cairo-foo.h is included when cairo was compiled without support for the foo backend. 2005-05-14 Carl Worth * test/pdf-surface.c (main): Update for change in cairo_pdf_surface_create which no longer accepts DPI values. 2005-05-13 Owen Taylor * src/cairo-xlib-surface.c src/cairo-xlib.h doc/public/cairo-sections.txt: Drop the _for_pixmap() and _for_window() out of the create functions and use some lazy cleverness to sniff the information out as needed. * src/cairo-xlib-surface.c src/cairo-xlib-test.h Makefile.am: add cairo_test_xlib_disable_render() to turn off RENDER for tests. * test/xlib-surface.c: Test various different types of Xlib surface creation. * src/cairo-xlib.h: Remove left-over include of Xrender.h. 2005-05-13 Kristian Høgsberg * src/cairo-pdf-surface.c (_cairo_pdf_document_open_stream): Make this a varg function and use the new _cairo_output_stream_vprintf() function to format extra dict contents. * src/cairo-output-stream.c (_cairo_output_stream_vprintf): Reimplement the printf logic so we can special case formatting of doubles to be locale independent and trim trailing zeros. * src/cairo-pdf-surface.c: Rename cairo_pdf_surface_create_for_callback() to cairo_pdf_surface_create_for_stream(), and change PDF constructors to take width and height as points and move PPI setting to cairo_pdf_surface_set_ppi() 2005-05-13 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Fix misplaced goto. 2005-05-12 Carl Worth * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_create_with_masks): Fix image->data to be unsigned * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_image): * src/cairo-image-surface.c: (_cairo_image_surface_create_for_pixman_image), * src/cairo-xlib-surface.c: (_get_image_surface), (_draw_image_surface), (_xlib_glyphset_cache_create_entry): Track change in signedness of data member/parameter. 2005-05-12 Carl Worth Update xcb backend to compile after recent API changes: * src/cairo-xcb-surface.c: (_cairo_xcb_surface_finish): Fix missing return value. (_cairo_xcb_surface_acquire_source_image): Remove calls to non-existent cairo_surface functions. (_cairo_xcb_surface_set_matrix): Update for new matrix member names. (_cairo_xcb_surface_get_extents): Fix typo. 2005-05-12 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/paint-with-alpha-ref.png: * test/paint-with-alpha.c: (draw), (main): Add new test for bug in cairo_paint_with_alpha not transforming the source. * src/cairo-gstate.c: (_cairo_gstate_mask): Use a transformed copy of the source just like we do in all the other calls to cairo_surface_composite. Fixes the bug tested by test/paint-with-alpha. 2005-05-12 Keith Packard reviewed by: otaylor * src/cairo-gstate.c: (_get_mask_extents): _get_mask_extents creates a pixman region but neglects to destroy it. 2005-05-11 Owen Taylor * src/cairo-win32-surface.c (categorize_solid_dest_operator): Handle more cases by assuming no-super-luminescent colors. 2005-05-11 T Rowley * src/cairo-atsui-font.c: * src/cairo-atsui.h: * src/cairo-quartz-surface.c: Revive quartz backend. 2005-05-11 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_surface_fill_rectangles): Set fill type repeat on source surface. (_cairo_glitz_surface_show_glyphs): Add missing cairo operator to glitz operator conversion. (_cairo_glitz_surface_show_glyphs): Only render glyphs with non zero size. 2005-05-11 Owen Taylor * src/cairo-surface.c (_fallback_fill_rectangles): Fix bounding box computation. * src/cairo-win32-surface.c: Patch from Tor Lillqvist to make things compile and work again. * test/cairo-test.c (create_win32_surface): Don't #error because there is no win32 test, it isn't useful. Just skip it. * src/cairo-win32-font.c: Fix up matrix constness. * test/Makefile.am (TESTS): Skip the pdf-surface test if we don't have the PDF backend. * src/cairo-win32-surface.c (categorize_solid_dest_operator): Optimize fill_rectangles for all cases where the destination ends up a solid color. 2005-05-11 Owen Taylor * src/cairo-xlib-surface.c src/cairo-xlib.h: Remove leftover cairo_xlib_surface_create(). 2005-05-10 Owen Taylor * src/cairo.c src/cairo-path-data.c src/cairo-path-data-private.h: Pass the gstate to _cairo_path_data_create[_flat] and use _cairo_gstate_backend_to_user() so as to properly handle the surface device offset. 2005-05-10 Carl Worth * src/cairo-arc.c (_cairo_arc_path_negative): Don't use return when calling a void function (thanks to Damien Carbery ). Closes bug #3134. 2005-05-10 Carl Worth * test/cairo-test.c: * test/cairo-test.h: Removing mucking around with stderr and add a cairo_test_log function instead. * test/buffer-diff.c: * test/create-for-png.c: * test/pdf-surface.c: * test/read-png.c: * test/trap-clip.c: * test/xmalloc.c: Switch all error messages from fprintf(stderr,...) to cairo_test_log(...). 2005-05-10 Carl Worth * configure.in: Fix URLs for glitz and xlibs, (thanks to Jason Dorje Short ). 2005-05-10 Carl Worth * configure.in: Update to current canonical URL for XCB. 2005-05-10 Carl Worth * src/cairo-wideint.h: Don't guess and make our own definitions for uint8_t, etc. Just error out if we can't find a suitable header file. * src/cairo-png.c: (unpremultiply_data), (premultiply_data): * test/read-png.c: (premultiply_data): Fix to use fixed-size type so that this code works when sizeof(unsigned long) != 32. Thanks to Manish Singh. 2005-05-10 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_get_font_matrix): * src/cairo.c: (cairo_get_font_matrix): * src/cairo.h: * src/cairoint.h: Fix cairo_get_font_matrix to actually use its out-parameter. And change the return type to void. 2005-05-09 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_unscaled_font_create_glyph): Get the glyphslot point *after* we get the FT_Face. (Robert O'Callahan) 2005-05-09 Carl Worth * src/cairo.h (cairo_current_target_surface): Fix deprecation macro to point to the right function, (thanks to John Ellson). 2005-05-09 Carl Worth * src/cairo-font.c: (_cairo_simple_font_face_create_font), (cairo_scaled_font_create), (_cairo_scaled_font_init): * src/cairo-ft-font.c: (_ft_scaled_font_create), (_cairo_ft_scaled_font_create), (_ft_font_face_create_font): * src/cairo-gstate.c: (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_set_font_matrix): * src/cairo-image-surface.c: (_cairo_image_surface_set_matrix): * src/cairo-matrix.c: (_cairo_matrix_get_affine), (cairo_matrix_transform_distance), (cairo_matrix_transform_point), (_cairo_matrix_transform_bounding_box), (_cairo_matrix_compute_determinant), (_cairo_matrix_compute_eigen_values), (_cairo_matrix_compute_scale_factors), (_cairo_matrix_is_integer_translation): * src/cairo-pattern.c: (cairo_pattern_set_matrix), (_cairo_pattern_transform): * src/cairo.c: (cairo_transform), (cairo_set_matrix), (cairo_set_font_matrix): * src/cairo.h: * src/cairoint.h: Push cairo_matrix_t const-correctness down through the entire implmentation, (expanding on preliminary work by Robert O'Callahan ) 2005-05-09 Carl Worth * configure.in: * src/cairo-features.h.in: Change cairo-features again so that either #if or #ifdef will work to test any feature. 2005-05-07 Owen Taylor * doc/public/language-bindings.xml doc/public/cairo-doc.xml doc/public/Makefile.am: Document suggested conventions and techniques for many aspects of creating a language binding for Cairo. 2005-05-07 Owen Taylor * doc/public/cairo-sections.txt: Update. 2005-05-07 Carl Worth * src/cairo.h (cairo_set_alpha): Point to both cairo_set_source_rgba and cairo_paint_with_alpha in deprecation of cairo_set_alpha. 2005-05-07 Carl Worth * util/cairo-api-update: Make idempotent substitutions that extend old names: cairo_select_font -> cairo_select_font_face cairo_pattern_add_color_stop -> cairo_pattern_add_color_stop_rgba by only substituting if the old name is not immediately followed by an underscore. Tweak the substitution slightly to allow the script to be run on the cairo source itself, (eg. avoid changing the REPLACED_BY and DEPRECATED_BY macros that must mention the old names). 2005-05-07 Carl Worth * configure.in: * src/cairo-features.h.in: Change definitions of everything in cairo-features.h to prefer #if over #ifdef. * src/cairo-atsui.h: * src/cairo-cache.c: * src/cairo-ft-private.h: * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: * src/cairo.c: * src/cairo.h: * src/cairoint.h: * test/cairo-test.c: Track #ifdef -> #if changes. * util/cairo-api-update: Add support to automatically change all #ifdef CAIRO_HAS to #if CAIRO_HAS. 2005-05-07 Carl Worth * src/cairo-gstate.c: * src/cairo-pattern.c: * src/cairo.c: * src/cairo.h: * src/cairoint.h: Remove deprecated cairo_get_rgb_color that was accidentally missed in the recent purge of deprecated functions. 2005-05-07 Carl Worth * src/cairo-xcb-surface.c (_render_operator): * src/cairo-win32-surface.c (_cairo_win32_surface_composite) (_cairo_win32_surface_fill_rectangles): Update to track new CAIRO_OPERATOR names. * test/select-font-no-show-text.c: * src/cairo-surface.c (cairo_surface_set_user_data): Fix documentation to refer to functions by their current names. * src/cairo-gstate.c (_cairo_gstate_begin_group): Update to track latest API (in currently unused function). 2005-05-06 Carl Worth * src/cairo-glitz-surface.c (_cairo_glitz_surface_show_glyphs): Fix return type from cairo_status_t to cairo_int_status_t. 2005-05-06 Carl Worth * ROADMAP: Note that cairo_mask, and "just eliminate a bunch of functions are now done". * TODO: Note that all backwards-compatible and backwards-incompatible cahnges for the API Shakeup are now done. Sort "new functionality" of API Shakeup into its own category. 2005-05-06 Carl Worth * src/cairo.c: * src/cairo.h: Eliminate the following deprecated functions from cairo's interface: cairo_copy cairo_get_path cairo_get_path_flat cairo_matrix_create cairo_matrix_destroy cairo_matrix_copy cairo_matrix_get_affine cairo_surface_set_repeat cairo_surface_set_matrix cairo_surface_get_matrix cairo_surface_set_filter cairo_surface_get_filter Also, eliminate all support for compiling against, or running with old, deprecated names for functions. * src/cairo-ft-font.c: (_compute_transform): * src/cairo-gstate.c: * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-matrix.c: (_cairo_matrix_get_affine), (_cairo_matrix_compute_adjoint), (_cairo_matrix_is_integer_translation): * src/cairo-pattern.c: (cairo_pattern_add_color_stop_rgba), (cairo_pattern_set_matrix), (cairo_pattern_get_matrix), (_cairo_image_data_set_linear), (_cairo_linear_pattern_classify), (_cairo_image_data_set_radial): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_image), (_cairo_pdf_surface_composite_pdf), (emit_surface_pattern), (emit_linear_pattern), (emit_radial_pattern): * src/cairo-surface.c: * src/cairo-xlib-surface.c: (_cairo_xlib_surface_acquire_source_image), (cairo_xlib_surface_create): * src/cairo.c: (cairo_set_source_rgba), (cairo_set_source), (cairo_get_source), (cairo_transform), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_reset_clip), (cairo_select_font_face), (cairo_font_extents), (cairo_set_font_size), (cairo_get_operator), (cairo_get_rgb_color), (cairo_get_tolerance), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target), (cairo_status), (cairo_status_string): * src/cairoint.h: * test/cairo-test.c: (cairo_test_create_png_pattern): * test/gradient-alpha.c: (draw): * test/mask.c: (set_gradient_pattern), (set_image_pattern): * test/move-to-show-surface.c: (draw): * test/select-font-no-show-text.c: (draw): * test/set-source.c: (draw): * test/text-cache-crash.c: (draw): * test/text-rotate.c: (draw): * test/transforms.c: (draw_L_shape): * test/translate-show-surface.c: (draw): * test/trap-clip.c: (set_gradient_pattern), (set_image_pattern): * util/cairo-api-update: Deal with all of the removals. 2005-05-06 Carl Worth * src/cairo-glitz-surface.c: (_glitz_operator), (_cairo_glitz_surface_fill_rectangles): * src/cairo-gstate.c: (_cairo_gstate_mask): * src/cairo-image-surface.c: (_pixman_operator), (_cairo_image_surface_composite_trapezoids): * src/cairo-ps-surface.c: (_cairo_ps_surface_erase), (_cairo_ps_surface_copy_page): * src/cairo-surface.c: (_cairo_surface_create_similar_solid): * src/cairo-xlib-surface.c: (_render_operator): * src/cairo.h: * test/cairo-test.c: (cairo_test_for_target): * test/mask.c: (mask_polygon), (draw): Rename and re-order the cairo_operator_t enum to names that abbreviate less and are easier to understand, (eg. CAIRO_OPERATOR_DEST_OVER instead of CAIRO_OPEERATOR_OVER_REVERSE). 2005-05-06 Carl Worth * src/cairo.c: (cairo_create), (cairo_save), (cairo_get_target): * src/cairo.h: * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_create), (_cairo_gstate_init), (_cairo_gstate_get_target): * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz-surface.c: * src/cairo-quartz.h: * src/cairo-surface.c: (_cairo_surface_begin): * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: Remove cairo_set_target_surface and all other backend-specific cairo_set_target functions. Require a cairo_surface_t* to call cairo_create. * test/cairo-test.c: (create_image_surface), (cleanup_image), (create_glitz_surface), (cleanup_glitz), (create_quartz_surface), (cleanup_quartz), (create_win32_surface), (cleanup_win32), (create_xcb_surface), (cleanup_xcb), (create_xlib_surface), (cleanup_xlib), (cairo_test_for_target), (cairo_test_real): Port to use new cairo_create interface. * test/clip-nesting.c: (draw): * test/mask.c: (mask_polygon), (draw): * test/path-data.c: (main): * test/pdf-surface.c: (main): * test/pixman-rotate.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/self-copy.c: (draw): * test/source-clip.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/surface-pattern.c: (draw): Rewrite all tests that were using cairo_set_target_surface to instead create a temporary cairo_t, (eventually to be replaced with cairo_begin_group). 2005-05-05 Owen Taylor * src/cairo.[ch] doc/public/cairo-sections.txt: Add cairo_paint_with_alpha(). * src/cairo-pattern.c (_cairo_pattern_acquire_surfaces): Fix segfault when mask == NULL. * test/mask.c test/mask-ref.png: Add testing of cairo_paint_with_alpha(). * test/coverage.c test/coverage-ref.png: Remove ... it's not testing anything that mask doesn't test better. 2005-05-04 David Reveman * src/cairo-glitz-surface.c: Add glyph caching to glitz backend. 2005-05-03 Kristian Høgsberg Fills as paths patch originally by Owen Taylor. * src/cairo-path.c: (_cairo_path_fixed_rel_move_to), (_cairo_path_fixed_line_to), (_cairo_path_fixed_rel_line_to), (_cairo_path_fixed_curve_to), (_cairo_path_fixed_rel_curve_to): Make sure we have a current point for the relative path operators. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_fill): * src/cairo-surface.c: (_cairo_surface_fill_path): Add fill_path backend method. * src/cairo-pdf-surface.c: (_cairo_pdf_document_close_stream), (emit_image_data), (emit_surface_pattern), (_cairo_pdf_path_move_to), (_cairo_pdf_path_line_to), (_cairo_pdf_path_curve_to), (_cairo_pdf_path_close_path), (_cairo_pdf_surface_fill_path): Implement fill_path in the PDF backend. 2005-05-03 Carl Worth Originally 2005-04-20 Carl Worth * src/cairo.h: * src/cairo.c: Remove cairo_show_surface. Add new cairo_set_source_surface. * src/cairo-gstate.c: Remove _cairo_gstate_show_surface. * test/create-for-png.c: (draw): * test/pixman-rotate.c: (draw): * test/move-to-show-surface.c: (draw): * test/translate-show-surface.c: (draw): Replace calls to cairo_show_surface with cairo_set_source_surface; cairo_paint. * test/cairo-test.c: (cairo_test_real): Fix messages to prefer - over _. * src/cairo-png.c: (cairo_surface_write_to_png): Fix documentation. * test/filter-nearest-offset-ref.png: * test/filter-nearest-offset.c: * test/scale-source-surface-paint-ref.png: * test/scale-source-surface-paint.c: * test/source-surface-scale-paint-ref.png: * test/source-surface-scale-paint.c: Three new tests to exercise set_source_surface more completely, (two of these are expected failures dues to outstanding bugs). 2005-05-03 Carl Worth * TODO: Add suggestion for copy-on-write regions to fix clip region problems. * src/Makefile.am (install-data-local): Fix check for old headers to respect DESTDIR, (to work better when cross-compiling, etc.). Thanks to Luke-Jr . 2005-05-02 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_scaled_font_font_extents): Changes the sign of extents->descent to match win32 backend and the conventional convention. * src/cairo.h: Document cairo_font_extents_t. 2005-04-28 Owen Taylor * src/cairo-surface.c src/cairoint.h: Add _cairo_surface_begin/end to save and restore the clip state of a surface. Copy and store clip regions set on a surface so that we can save and restore them. * src/cairo.[ch]: Add a CAIRO_STATUS_BAD_NESTING error for interleaved use of two cairo_t's on the same surface. Also, add a skeleton doc comment for cairo_status_t. * src/cairo.c src/cairo-gstate.c src/cairoint.h: Use _cairo_surface_begin/end to replace _cairo_gstate_restore_external_state. * src/cairo-gstate.c: Use _cairo_surface_begin/end to save the state of a surface when we start drawing at it and restore it at the end. Check that the save level of the surface is what we expect on drawing operations and fail with CAIRO_STATUS_BAD_NESTING otherwise. * src/cairo-pattern.c src/cairoint.h (_cairo_pattern_acquire_surface_for_surface) (_cairo_pattern_release_surface): Surround use of pattern->surface with _cairo_surface->begin/end so we don't clip surfaces used as sources. * test/clip-nesting.c test/Makefile.am: Test of destinatin clipping with the nested creation of cairo_t's for the same context. * test/source-clip.c test/Makefile.am: Test that clipping on a source as a destination doesn't affect use of it as a source. * test/self-copy.c: XFAIL test for copying from a surface as a source to itself as a destination with a clip. 2005-05-02 Keith Packard reviewed by: cworth * src/cairo-path.c: (_cairo_path_fixed_rel_curve_to): Use correct arguments to compute absolute positions. * test/Makefile.am: * test/rel-path-ref.png: * test/rel-path.c: (draw), (main): Test cairo_rel_move_to, cairo_rel_line_to and cairo_rel_curve_to 2005-05-02 Owen Taylor * test/Makefile.am (EXTRA_DIST): mask-ref.png, not mask.png. (Pointed out by Carl) 2005-05-02 Owen Taylor * src/cairo.[ch] src/cairo-gstate.c: Add cairo_mask() and cairo_mask_surface(). * test/maks.c tests/Makefile.am tests/mask-ref.png: Add a comprehensive tests for cairo_mask(). * docs/public/cairo-sections.txt: Updated 2005-05-02 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_glyph_path): Also call _cairo_gstate_ensure_font() for this function. 2005-04-28 Owen Taylor * TODO, ROADMAP: Add a item about reworking cairo_format_t. 2005-04-28 Carl Worth * test/.cvsignore: * test/cairo-test.c: (cairo_test_for_target): Replace annoying _ in output image filenames with - for better consistency. 2005-04-27 Carl Worth * test/cairo-test.c: (set_xlib_target), (cleanup_xlib_target): Use 1 instead of 0 for width and height to avoid BadValue errors from XCreatePixmap. 2005-04-27 Carl Worth * test/.cvsignore: * test/buffer-diff.c: (xunlink), (buffer_diff), (image_diff): * test/buffer-diff.h: * test/cairo-test.c: (set_image_target), (cleanup_image_target), (set_glitz_target), (cleanup_glitz_target), (set_quartz_target), (cleanup_quartz_target), (set_win32_target), (cleanup_win32_target), (set_xcb_target), (cleanup_xcb_target), (set_xlib_target), (cleanup_xlib_target), (cairo_test_for_target), (cairo_test_real), (cairo_test_expect_failure), (cairo_test): * test/cairo-test.h: * test/read-png.c: (read_png_argb32): * test/xmalloc.h: Add support for testing multiple backends, courtesy of cairo_surface_write_to_png. Currently, only image and xlib backends are fullk hooked-up, but other backends should be quite easy to add for anyone skilled in the appropriate art. 2005-04-27 Owen Taylor * src/cairo-traps.c src/cairoint.h (_cairo_traps_init_box): New function to create a single trapezoid box. * src/cairo.c src/cairo-gstate.c src/cairoint.h: Move the implementation of cairo_paint() into cairo-gstate.c for a better fix for the problem with backend/user coordinate confusion. Also no longer clear the current path on cairo_paint(). 2005-04-26 Carl Worth * src/cairo.c (cairo_paint): Build rectangle with an identity matrix in place so that the entire target surface will be filled even when there is a transformation in place. 2005-04-26 Owen Taylor * doc/public/cairo-sections.txt: Updated. * src/cairo-png.c src/cairo.h: Fix up some doc build issues. 2005-04-26 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/paint-ref.png: * test/paint.c: (draw), (main): Add test to demonstrate bug in cairo_paint when under a non-identity transformation. 2005-04-26 Carl Worth * ROADMAP: * TODO: Note that cairo_paint and cairo_clip/fill/stroke_preserve are all done now. 2005-04-26 Carl Worth Originally: 2005-04-19 Carl Worth * src/cairo.h: Add cairo_stroke_preserve, cairo_fill_preserve, and cairo_clip_preserve. * src/cairoint.h: * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rip the path out of cairo_gstate_t. * src/cairo-private.h: Add path to cairo_t. * src/cairo.c: Bring in most of the path code that used to live in cairo-gstate.c * src/Makefile.am: * src/cairo-arc-private.h: * src/cairo-arc.c: Move arc generation code into its own file. * src/cairo-path-data-private.h: * src/cairo-path-data.c: Accept path+ctm_inverse+tolerance instead of gstate. Absorb flattening and device space->user space conversion that used to be in _cairo_gstate_intepret_path. * src/cairo-path.c: Prefer cairo_fixed_t parameters over ciaro_point_t for cross-file interfaces. * src/cairo-ft-font.c: Track changes in _cairo_path_fixed interfaces. * test/fill-and-stroke.c: (draw): Port to use cairo_fill_preserve rather than cairo_save/cairo_restore which no longer work for saving the path. * test/get-and-set.c: (settings_set), (settings_get), (settings_equal): Remove get and set of current point since it is no longer affected by cairo_save and cairo_restore. Add get and set testing for cairo_matrix_t. 2005-04-26 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/cairo-test.h: * test/pdf-surface.c: (main): Add very simple test to generate PDF output, (no automated verification yet). * test/cairo-test.c: (cairo_test): * test/create-for-png.c: (draw): * test/pixman-rotate.c: Track PNG interface changes, (no more include of cairo-png.h, cairo_surface_write_png renamed to cairo_surface_write_to_png). 2005-04-26 Kristian Høgsberg * src/cairo-png.h: Prototypes moved to cairo.h, this file removed. * src/cairo-png.c (cairo_surface_write_to_png_stream): Renamed from cairo_surface_write_png_to_stream() for consistency. (cairo_surface_write_to_png): Renamed from cairo_surface_write_png() for consistency. 2005-04-25 Kristian Høgsberg * src/cairo-png.c (cairo_surface_write_png): Factor out bulk of the code into a new callback based function, write_png(). Call it with a stdio write callback. (cairo_surface_write_png_to_stream): New function to write a surface to a PNG stream. (cairo_image_surface_create_from_png): Likewise, move most of the code to read_png(), clean up error handling and reduce this function to calling read_png() with a stdio based read function. (cairo_image_surface_create_from_png_stream): New function to create an image surface from a PNG stream. * src/cairo-image-surface.c (cairo_image_surface_get_width) (cairo_image_surface_get_height): New functions to get widht and height of an image surface. * src/cairo.h: Add new prototype and error codes. * test/create-for-png.c (draw): Adjust to new PNG API. 2005-04-25 Owen Taylor * src/cairo-win32-surface.c (cairo_win32_surface_create): Initialize the saved_dc_bitmap field here as well ... not strictly needed, but cleaner. (Reported by Peter Arsoff) 2005-04-23 Kristian Høgsberg * src/cairo-gstate.c (_composite_trap_region): Finalize the correct pattern. 2005-04-22 Kristian Høgsberg * src/cairo-png.c (cairo_image_surface_create_for_png): Only check PNG signature if we read all the bytes. Don't fclose() the FILE argument (Steve Chaplin ). Rename to cairo_image_surface_create_for_png() to cairo_image_surface_create_from_png() and change FILE arguments for this function and cairo_surface_write_png() to be a filename argument instead. 2005-04-21 Kristian Høgsberg * src/cairo-surface.c (_cairo_surface_set_clip_region): Handle backends that don't have a set_clip_region implementation (PDF). 2005-04-19 Carl Worth * src/cairo.c: (cairo_paint): * src/cairo.h: Add new cairo_paint function. * src/cairoint.h: Add new get_extents function to the surface backend interface. * src/cairo-gstate.c: (_cairo_gstate_get_clip_extents): Add function to query current clip_extents. * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_extents): * src/cairo-image-surface.c: (_cairo_image_surface_get_extents), (_cairo_image_abstract_surface_get_extents): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_get_extents): * src/cairo-ps-surface.c: (_cairo_ps_surface_get_extents): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_get_extents): * src/cairo-win32-surface.c: (_cairo_win32_get_extents): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_get_extents): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_extents): Implement the new get_extents function for each backend. * src/cairo-surface.c: (_cairo_surface_init), (_cairo_surface_set_clip_region), (_cairo_surface_get_clip_extents): Save the clip extents from set_clip_region and implement _cairo_surface_get_clip_extents. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_size), (_get_image_surface): Abstract away the evil XGetGeometry roundtrip in _cairo_xlib_surface_get_size. * test/gradient-alpha.c: (draw): * test/linear-gradient.c: (draw): Rewrite a couple of tests to call cairo_paint. 2005-04-19 Carl Worth * TODO: Update API Shakeup chart to indicate that cairo_paint and cairo_fill_preserve patches have been sent. 2005-04-19 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/surface-pattern-ref.png: * test/surface-pattern.c: (draw), (main): Add a test of a repeating surface pattern. 2005-04-18 Carl Worth * ROADMAP: Mark a couple of items that are now complete. * test/.cvsignore: * test/Makefile.am: * test/fill-and-stroke-ref.png: * test/fill-and-stroke.c: (draw), (main): Add test case that fills and strokes the same shapes, (in preparation for testing cairo_fill_preserve patch). 2005-04-14 Carl Worth * TODO: Update API Shakeup chart to indicate that cairo_set_source is done. 2005-04-14 Carl Worth * src/cairo.h: * src/cairo.c: Rename, add, and delete: cairo_set_pattern -> cairo_set_source cairo_get_pattern -> cairo_get_source cairo_set_rgb_color -> cairo_set_source_rgb -> cairo_set_source_rgba cairo_set_alpha -> cairo_get_alpha -> Note that we'll likely want to add cairo_set_source_surface. * src/cairo-color.c: Add _cairo_stock_color helper function. Improve some interfaces: _cairo_color_init _cairo_color_init_rgb _cairo_color_set_rgb -> _cairo_color_init_rgba _cairo_color_set_alpha _cairo_color_multiply_alpha _cairo_color_get_rgb -> _cairo_color_get_rbga _cairo_color_get_rgba_premultiplied * src/cairoint.h: Add cairo_stock_t and some helper macros: CAIRO_COLOR_WHITE CAIRO_COLOR_BLACK CAIRO_COLOR_TRANSPARENT Fix cairo_pattern_t by eliminating pattern->alpha. Fix cairo_solid_pattern_t to use cairo_color_t rather than three doubles. * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_pattern_acquire_surfaces), (_cairo_glitz_surface_composite_trapezoids): Track removal of pattern->alpha, simplifying the code considerably * src/cairo-gstate-private.h: * src/cairo-gstate.c: Track _cairo_color interface changes. Remove gstate->alpha. Propagate down set_source renamings. * src/cairo.h: * src/cairo-pattern.c: Rename: cairo_pattern_add_color_stop -> cairo_pattern_add_color_stop_rgba and add: cairo_pattern_add_color_stop_rgb Remove pattern->alpha, simplifying the code considerably. * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: Track pattern and color interface changes. * src/cairo-surface.c: Add const where appropriate on cairo_color_t*. * src/cairo-xlib-surface.c: (_cairo_surface_is_xlib): Add private type inspection predicate. (cairo_xlib_surface_set_size): Add check for surface type mismatch, (no useful error reporting yet, though). * test/Makefile.am: Note coverage as en expected failure. * test/cairo-test.c: (cairo_test_expect_failure): Improve line wrap on expected failure messages. * test/clip-twice.c: * test/coverage.c: * test/fill-rule.c: * test/line-width.c: * test/linear-gradient.c: * test/pixman-rotate.c: * test/set-source.c: * test/text-rotate.c: * test/trap-clip.c: Port all tests to new cairo_set_source interfaces. 2005-04-14 Carl Worth * test/gradient-alpha-ref.png: * test/gradient-alpha.c: (draw): Make gradient change color in addition to just changing alpha in order to highlight distinction between interpolating in premultiplied vs. non-premultiplied space. 2005-04-14 Carl Worth * test/Makefile.am: Improve instructions for when to add a test to the XFAIL list. * test/cairo-test.c: (cairo_test_expect_failure): * test/cairo-test.h: * test/pixman-rotate.c: (main): * test/text-rotate.c: (main): Print explanations for expected failures. 2005-04-14 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/gradient-alpha-ref.png: * test/gradient-alpha.c: (draw), (main): Add gradient-alpha test in preparation for upcoming cairo_set_source patch. 2005-04-14 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/set-source-ref.png: * test/set-source.c: (draw), (main): Add set-source test in preparation for upcoming cairo_set_source patch. 2005-04-14 Owen Taylor * src/cairo-font.c (_cairo_simple_font_face_destroy): Remove a stray free() (#3029, Carl Worth) * test/select-font-no-show-text.c: Note that the bug is fixed. 2005-04-13 Carl Worth * src/cairo-image-surface.c: (_cairo_image_abstract_surface_finish): Set freed pointer to NULL. * src/cairo-surface.c: (cairo_surface_finish): Fix to actually set surface->finished when done. Closes bug #2950 as documented in test/surface-finish-twice.c. * test/surface-finish-twice.c: Note that this bug is fixed. 2005-04-13 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/surface-finish-twice.c: (draw), (main): Add new test to exercise crash when calling cairo_surface_finish twice on the same surface. 2005-04-13 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/select-font-no-show-text.c: (draw), (main): Add new set-surface-no-show-text test. * test/cairo-test.c: (cairo_test): Be sure to call cairo_destroy even if the image size is 0,0 so that we can test bugs triggered during cleanup. 2005-04-13 Carl Worth * test/coverage-ref.png: * test/coverage.c: (draw_funcs), (draw): Temporarily remove all text from this test case until we come up with an approach for drawing the same text with different freetype configurations. 2005-04-13 Owen Taylor * src/cairo-traps.c (_cairo_traps_extract_region): Work around a pair of bugs elsewhere (denegerate trapezoids from tesellator, pixman_region_union_rect() failing on width/height zero rectangles) 2005-04-13 Owen Taylor * src/cairoint.h src/cairo-traps.c: Add _cairo_traps_extract_region for converting trapezoids into a pixman region. * src/cairo-gstate.c (cairo_clip): Represent all rectangular pixel-aligned regions as regions, not just single rectangles. * src/cairo-gstate.c (_cairo_gstate_clip_and_composite_trapezoid): Split into manageable pieces, optimize rectangular pixel- aligned regions by using _cairo_surface_fill_rectangles() or _cairo_surface_set_clip_region() as appropriate. * tests/trap-clip.c tests/trap-clip-ref.png tests/Makefile.am: Add a test for trapezoids clipping. * doc/public/cairo-docs.xml: Add an index. 2005-04-12 Carl Worth * test/translate-show-surface.c: Note that bug is now fixed. 2005-04-12 Carl Worth * autogen.sh: Replace errant use of aclocal with $ACLOCAL, as reported by Martin Hedenfalk. Closes bug #3000. 2005-04-12 Carl Worth * src/cairo-pattern.c: * src/cairo-surface.c: (_cairo_surface_init): Default to CAIRO_FILTER_GOOD rather than CAIRO_FILTER_BEST. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_surface): Optimize to use CAIRO_FILTER_NEAREST when the pattern matrix is an integer translation. 2005-04-12 Carl Worth * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_surface): * src/cairo-surface.c: (_cairo_surface_init): Use CAIRO_FILTER_BEST by default rather than CAIRO_FILTER_NEAREST. 2005-04-12 Carl Worth * src/cairo-gstate.c (_cairo_gstate_show_surface): Offset the src pattern by (0,0)->CTM. This fixes test/translate-show-surface. * src/cairo-glitz-surface.c (_cairo_glitz_surface_composite_trapezoids): Use unsigned cahr* to match new prototype for cairo_image_surface_create_for_data. 2005-04-11 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/translate-show-surface-ref.png: * test/translate-show-surface.c: (draw), (main): Add new test demonstrating bug in the sequence: cairo_translate; cairo_show_surface. 2005-04-11 Carl Worth * src/cairo.c (cairo_select_font_face): Add deprecation alias from cairo_scale_font to cairo_set_font_size. 2005-04-11 Carl Worth * src/cairo.c (cairo_select_font_face): Add deprecation alias from cairo_select_font to cairo_select_font_face. 2005-04-11 Owen Taylor * src/cairo.h doc/public/cairo-sections.txt src/cairo-matrix.c: Update. * doc/public/cairo-docs.xml: Include cairo-font.xml 2005-04-08 Carl Worth * src/cairoint.h: * src/cairo.h: Move include of pixman.h from cairo.h to cairoint.h since libpixman isn't part of cairo's public interface. * test/move-to-show-surface.c (draw): Use unsigned long rather than uint32_t since we no longer have pixman.h setting that type up for us. * src/cairo-font.c (cairo_font_face_destroy): Remove unused variable user_data_copy. 2005-04-08 Owen Taylor * src/cairo.h src/cairo-font.c src/cairoint.h doc/public/cairo-sections.txt: Add cairo_font_face_set/get_user_data(). * src/cairo-array.c src/cairoint.h src/cairo-surface.c: Refactor user data code from cairo-surface.c into cairo_user_data_array_t. * src/cairo-font.c (cairo_font_face_destroy, (cairo_scaled_font_destroy, _cairo_unscaled_font_destroy): Switch these types to be like cairo_surface_t where the generic code frees the wrapper object. * src/cairo-atsui-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Fix up for the above changes. * src/cairo-ft-font.c (_cairo_ft_unscaled_font_destroy, _ft_font_face_destroy): Implement a complicated mutual-referencing scheme to make sure that a face from cairo_ft_font_face_create_for_ft_face() is freed only when the FT_Face is no longer needed. * src/cairo-ft-font.c (cairo_ft_font_face_create_for_ft_face): Update the docs to describe how to figure out when the FT_Face can be freed. * src/cairo-ft-font.c: Fix refcount leaks when creating fonts. * src/cairo-pdf-surface.c (cairo_pdf_ft_font_create): Remove excess call to _cairo_unscaled_font_reference(). * src/cairo-gstate.c (_cairo_gstate_set_font_face): Remove stray initialization of font matrix to the identity. * src/cairo-array.c (_cairo_user_data_array_set_data) test/user-data.c: Fix a bug when setting/unsetting a key with a free key slot before it, add that to the test case. * src/cairo-array.c (_cairo_user_data_array_set_data): Don't append an element when user_data is NULL. 2005-04-08 Dave Beckett * src/cairo-glitz-surface.c (_cairo_glitz_surface_set_matrix): Update to track changes to cairo_matrix_t interface. 2005-04-08 Carl Worth * ROADMAP: Add ROADMAP file with an initial stab at 1.0 items. 2005-04-08 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_interpret_path): Eliminate internal use of deprecated cairo_matrix_copy. * src/cairo-gstate.c: (_cairo_gstate_get_matrix), * src/cairo-matrix.c: (cairo_matrix_copy): * src/cairo.c: (cairo_get_matrix): * src/cairo.h: * src/cairoint.h: Change cairo_get_matrix to accept a pointer to the return value cairo_matrix_t rather than returning the value directly. 2005-04-08 Carl Worth * src/cairo-matrix.c (cairo_matrix_init_identity): Don't try to return a value (even a void value) from a void function. Closes bug #2931. 2005-04-07 Carl Worth * src/cairo-wideint.h: Remove broken code for defining uint64_t. 2005-04-07 Carl Worth * src/cairo-surface.c: (_cairo_surface_release_source_image), (_cairo_surface_release_dest_image), (_cairo_surface_clone_similar), (_cairo_surface_composite), (_cairo_surface_fill_rectangles), (_cairo_surface_composite_trapezoids), (_cairo_surface_copy_page), (_cairo_surface_show_page), (_cairo_surface_show_glyphs): Change to allow NULL backend function pointers to indicate unsupported functions. * src/cairo-glitz-surface.c: * src/cairo-image-surface.c: * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Eliminate stub functions and replace with NULL in surface backend table. 2005-04-07 Owen Taylor * src/cairo.[ch] src/cairoint.h src/cairo-gstate.c docs/public/cairo-sections.txt: cairo_select_font() => cairo_select_font_face() cairo_scale_font() => cairo_set_font_size() cairo_transform_font() => cairo_set_font_matrix() Add cairo_get_font_matrix(). Make cairo_set_font_face() not reset the font matrix. Default the font matrix to SCALE(10). Document cairo_select_font_face(). * test/coverage.c (draw) test/text-cache-crash.c (draw) test/text-rotate.c (draw): Use cairo_set_font_size(). * src/cairo-font.c src/cairo.h: Fix up some parameter names for docs. 2005-04-07 Owen Taylor * src/cairo-win32-font.c: Fix various compilation errors. 2005-04-07 Carl Worth * src/cairo-gstate.c: * src/cairo-png.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-win32.h: * src/cairoint.h: Minor changes to header file inclusion recommended by Oleg Smolsky for better portability to MSVC. 2005-04-07 Carl Worth * src/cairo-png.c (PNG_SIG_SIZE): Use a preprocessor macro to get a literal value in the array size declaration, (for better portability to lame compilers that can't deal with a const int variable for the array size). Reported by Oleg Smolsky. (PNG_SIG_SIZE): Fix typo. 2005-04-07 Carl Worth * configure.in: * src/cairo-wideint.h: * src/cairoint.h: Use configure-time checks for stdint.h vs. inttypes.h vs. sys/int_types.h rather than ad-hoc system-specific macros. Also define these types manually none of these header are available. (Thanks to Jason Dorje Short ). 2005-04-07 Carl Worth * test/imagediff.c (main): Fix to return non-zero status on error. 2005-04-06 Owen Taylor * src/cairo.h src/cairo-gstate.c src/cairo-font.c: Add a cairo_font_face_t type to hold a description of a font face. Replace cairo_set_font() with cairo_set_font_face(). * src/cairoint.h src/cairo-font.c src/cairo-gstate.c: Add "cairo_simple_font_face" for family/weight/slant and use it to implement font naming for the toy API. * src/cairo-ft.h src/cairo-ft-font.c cairo-win32.h cairo-win32-font.c: Switch the FreeType and Win32 backends over to using cairo_font_face_t. * src/cairo.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Pass in font matrix and CTM separately rather than as a composite scale when creating fonts; allows removing font_matrix argument to metrics functions. * src/cairoint.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Remove cairo_font_scale_t type, just use cairo_matrix_t and ignore translations. * src/cairo-ft.h src/cairo-ft-font.c: Remove cairo_ft_font_get_pattern() -- it can't work for all FreeType backend fonts and doesn't seem particularly useful. * src/cairo.[ch]: Rename cairo_font_get_extents() to cairo_font_extents() * doc/public/cairo-sections.txt: Update, split font functions into a separate section. * src/cairo-ft-font.c (_ft_unscaled_font_get_for_pattern): Fix locking order problem. * src/cairo-font.c: Add caches for simple font faces and from cairo_font_face_t to cairo_scaled_font_t. * src/cairo.h src/cairoint.h src/cairo-font.c src/cairo-win32-font.c src/cairo-ft-font.c src/cairo-gstate.c src/cairo-gstate-private.h: Rename cairo_font_t to cairo_scaled_font_t. 2005-04-06 Carl Worth * src/cairo.h: Rework the cairo_matrix_t interface in several ways. Expose a struct for cairo_matrix_t. Add new function to return current matrix: cairo_get_matrix Deprecate the following functions (in documentation): cairo_matrix_create cairo_matrix_destroy cairo_matrix_get_affine Rename: cairo_matrix_set_affine -> cairo_matrix_init cairo_matrix_set_identity -> cairo_matrix_init_identity Add other new matrix initialization functions: cairo_matrix_init_translate cairo_matrix_init_scale cairo_matrix_init_rotate Change return type of almost all cairo_matrix functions from cairo_status_t to void. * src/cairo-atsui-font.c: * src/cairo-ft-font.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-matrix.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-pen.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-xlib-surface.c: * src/cairo.c: * src/cairoint.h: Track changes to cairo_matrix_t interface. * test/.cvsignore: * test/Makefile.am: * test/transforms-ref.png: * test/transforms.c: Add a test case showing the same path drawn under various transforms, (including skews set directly by initializing a cairo_matrix_t). 2005-04-06 Carl Worth * src/cairo.h: Make handling of unsigned char* vs. char* consistent. Change all parameters that are actual string data from unsigned char* to char* (cairo_text_extents, cairo_show_text, cairo_text_path). Change all data buffers from char* to unsigned char* (cairo_write_func_t). * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs): * src/cairo-ft-font.c: (_cairo_ft_font_text_to_glyphs): * src/cairo-font.c: (_cairo_font_text_to_glyphs): * src/cairo-atsui-font.c: (_cairo_atsui_font_text_to_glyphs): * src/cairoint.h: * src/cairo.c: (cairo_text_extents), (cairo_show_text), (cairo_text_path): Track changes from unsigned char* to char*. Convert to unsigned only at the internal interface to unicode processing. * test/move-to-show-surface.c: (draw): * src/cairo-output-stream.c: (_cairo_output_stream_printf), (stdio_write): Track change from char* to unsigned char*. 2005-04-06 Carl Worth * src/cairo-cache.c (_cairo_cache_init): Fix reversed arguments in call to calloc. 2005-04-04 Carl Worth * src/cairo.h (cairo_set_target_image, cairo_image_surface_create_for_data): * src/cairo.c: (cairo_set_target_image): Change type of data parameter from char* to unsigned char*. * src/cairo-ft-font.c: (_cairo_ft_font_create_glyph): * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient): * test/buffer-diff.c: (buffer_diff): * test/buffer-diff.h: * test/write-png.c: (write_png_argb32): * test/write-png.h: Propagate the unsigned char* change down the stack. * src/cairo-xlib-surface.c: (_get_image_surface): Add cast since XImage uses char* rather than unsigned char*. * src/cairo-png.c: (cairo_image_surface_create_for_png): Fix memory leak of image data. * test/cairo-test.c: (cairo_test), (cairo_test_create_png_pattern): * test/cairo-test.h: Switch to use cairo_surface_write_png rather than a custom write_png_argb32. * test/.cvsignore: * test/Makefile.am: * test/create-for-png-ref.png: * test/create-for-png.c: (draw), (main): Add test to exercise the cairo_image_surface_create_for_png function. 2005-04-04 Carl Worth * TODO: Remove items for PNG backend removal and trapezoid reasterization re-implementation since they have been completed. 2005-04-04 Carl Worth * src/cairo.c: * src/cairo.h: Drop cairo_default_matrix since it is now always identical to cairo_identity_matrix. * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_set_target_surface): Remove gstate->pixels_per inch. Change default matrix to always be the identity matrix. * src/cairo-glitz-surface.c: * src/cairo-image-surface.c: * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairoint.h: Drop pixels_per_inch function from surface backend interface as it is no longer needed. 2005-04-02 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_show_surface): Use the current point to offset just the destination, not the source and destination. With this fix, cairo_show_surface should work with the current point at places other than the origin. * test/Makefile.am: Move move-to-show-surface off the expected failure list. * test/move-to-show-surface.c: Add comment indicating that bug is resolved. * test/testsvg: Don't use diff to compare images, just imagediff. 2005-04-02 Carl Worth * src/cairo.h: * src/cairo.c: (cairo_set_target_image), (cairo_text_extents), (cairo_show_text), (cairo_text_path): * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs): * src/cairo-font.c: (_cairo_font_create): Style and indentation fixes. * src/cairo-ft-font.c: (_cairo_ft_font_create): Add (unsigned char*) cast to quiet new gcc-4 warnings. * src/cairo-ft-font.c: (_cairo_ft_font_glyph_extents): Initialize variables to quiet new gcc-4 warnings. * src/cairo-pdf-surface.c: (cairo_pdf_ft_font_write_generic_table), (cairo_pdf_ft_font_write_glyf_table): * src/cairo-png.c: (cairo_surface_write_png), (cairo_image_surface_create_for_png): * src/cairo-xlib-surface.c: (_get_image_surface): * src/cairo-ps-surface.c: (_cairo_ps_surface_copy_page): Use unsigned char* as expected by freetype, libpng, Xlib, and zlib. * src/cairoint.h: * src/cairo-unicode.c: (_utf8_get_char), (_utf8_get_char_extended), (_cairo_utf8_to_ucs4), (_cairo_utf8_to_utf16): Propagate unsigned char* down from cairo_text_extents. 2005-04-01 Carl Worth * TODO: Update API shakeup chart. * src/cairo.h: * src/cairo.c: (cairo_set_target_image_no_data): Add a standin for the function that should be cairo_set_target_image which should then have some other name. We can straighten that mess out when we eliminate the set_target functions. Add deprecation alias for cairo_current_pattern. * src/cairoint.h: * src/cairo-image-surface.c: * src/cairo-surface.c: Deprecate cairo_surface_create_for_image in favor of cairo_image_surface_create_for_data. 2005-03-31 Kristian Høgsberg * src/cairo.c (cairo_set_target_png): Remove this function now that the PNG backend is gone. 2005-03-30 Carl Worth * configure.in: Fix typo I had introduced into Jason's patch that made configure fail. 2005-03-30 Carl Worth A few fixes courtesy of Jason Dorje Short : * configure.in: Disable PS backend if zlib is not found. * src/cairo-win32-font.c: (_cairo_win32_font_glyph_path): Fix mistyped parameter. * src/cairo-win32-surface.c: (_cairo_win32_surface_finish): Fix missing return value. 2005-03-30 T Rowley * src/cairo-gstate.c (_cairo_gstate_stroke_extents): call _cairo_pen_init so that the result takes into account the caps. 2005-03-29 T Rowley * src/cairo-xlib.h: include Xlib.h to fix solaris build bustage. 2005-03-29 T Rowley * src/cairo-wideint.h: add preprocessor tests for stdint.h/inttypes.h * src/cairoint.h: add preprocessor tests for stdint.h/inttypes.h 2005-03-29 T Rowley * configure.in: re-enable quartz backend * src/cairo-quartz-surface.c: update to compilable/workable version * src/cairo-atsui-font.c: update to compilable/workable version 2005-03-29 Carl Worth * test/Makefile.am: * test/*_*.c: More _/- renames in the test directory. 2005-03-28 Carl Worth * src/Makefile.am: * src/cairo_*.c: Renamed a bunch of files to use - rather than _ as a separator. Copy happened in the master repository to preserve history, so this is just a big remove. 2005-03-28 Carl Worth * TODO: Sorted API shakeup chart. 2005-03-28 Kristian Høgsberg * src/cairo-png.c (cairo_image_surface_write_png) (cairo_image_surface_create_from_png): New PNG utility functions. * src/cairo_pdf_surface.c, src/cairo-pdf.h: Reverse the naming of the pdf constructors so the callback based ones have the long names. 2005-03-25 Jamey Sharp * src/cairo-xcb.h: * src/cairo_xcb_surface.c: Fix "implicit declaration" warning in cairo.c by moving cairo_xcb_surface_create prototype into cairo-xcb.h. 2005-03-23 Carl Worth * src/cairo-path-fixed-private.h: * src/cairo_path.c: Clean up names of cairo_path internals. 2005-03-23 Carl Worth * src/cairo_path_fill.c: * src/cairo_path_stroke.c: Remove unneeded includes of cairo-path-fixed-private.h. * src/cairo_ft_font.c (_cairo_ft_font_glyph_path): Fix indentation. 2005-03-23 Carl Worth * TODO: More updates to the API Shakeup chart. 2005-03-23 Carl Worth * src/cairo_path.c: (_cairo_path_fixed_init), (_cairo_path_fixed_init_copy), (_cairo_path_fixed_fini), (_cairo_path_fixed_move_to), (_cairo_path_fixed_rel_move_to), (_cairo_path_fixed_line_to), (_cairo_path_fixed_rel_line_to), (_cairo_path_fixed_curve_to), (_cairo_path_fixed_rel_curve_to), (_cairo_path_fixed_close_path), (_cairo_path_fixed_get_current_point), (_cairo_path_add), (_cairo_path_add_op_buf), (_cairo_path_new_op_buf), (_cairo_path_add_arg_buf), (_cairo_path_new_arg_buf), (_cairo_path_fixed_interpret): * src/cairo_path_bounds.c: (_cairo_path_fixed_bounds): * src/cairo_path_fill.c: (_cairo_path_fixed_fill_to_traps): * src/cairo_path_stroke.c: (_cairo_path_fixed_stroke_to_traps): * src/cairoint.h: Rename cairo_path_real_t to cairo_path_fixed_t and fix all _cairo_path functions to be named as _cairo_path_fixed functions. * src/cairo-gstate-private.h: * src/cairo-path-fixed-private.h: * src/cairo_font.c: (_cairo_font_glyph_path): * src/cairo_ft_font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to), (_cairo_ft_font_glyph_path): * src/cairo_gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_new_path), (_cairo_gstate_move_to), (_cairo_gstate_line_to), (_cairo_gstate_curve_to), (_cairo_gstate_rel_move_to), (_cairo_gstate_rel_line_to), (_cairo_gstate_rel_curve_to), (_cairo_gstate_close_path), (_cairo_gstate_get_current_point), (_cairo_gstate_interpret_path), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_fill), (_cairo_gstate_in_fill), (_cairo_gstate_stroke_extents), (_cairo_gstate_fill_extents), (_cairo_gstate_clip), (_cairo_gstate_text_to_glyphs): Track name change of cairo_path_real_t and _cairo_path_fixed functions. 2005-03-23 Carl Worth * src/cairo-path-data-private.h: Remove CAIRO_BEGIN_DECLS and CAIRO_END_DECLS as they are not needed for private headers. * src/cairoint.h: Add ASSERT_NOT_REACHED macro. * src/cairo.c: (cairo_get_path), (cairo_get_path_flat): Rewrite in terms of cairo_copt_path and cairo_copy_path_flat in preparation for removing cairo_gstate_interpret_path. 2005-03-23 Carl Worth * src/cairo-gstate-private.h: * src/cairo-path-fixed-private.h: * src/cairo-private.h: * src/cairoint.h: Begin the process of breaking up cairoint.h, moving structure definitions of cairo_t, cairo_gstate_t, and cairo_path_real_t into their own header files. * src/cairo.c: * src/cairo_gstate.c: * src/cairo_path.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: Track changes to header files, reaching into the new private headers where necessary. 2005-03-23 Carl Worth * src/cairo.c: (cairo_set_target_glitz), (cairo_set_target_pdf), (cairo_set_target_pdf_as_file), (cairo_set_target_png), (cairo_set_target_ps), (cairo_set_target_win32), (cairo_set_target_xcb), (cairo_set_target_drawable): Move surface-specific cairo_t functions to cairo.c. * src/cairo_glitz_surface.c: * src/cairo_pdf_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: * src/cairo_win32_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: Remove functions that have now moved to cairo.c. * test/.cvsignore: A few new files to ignore now with new compilation mode using a libtool helper library. 2005-03-23 Carl Worth * src/cairo.h: Add backwards-compatibility for recently renamed functions. 2005-03-21 Carl Worth * src/cairo.c: * src/cairo_gstate.c: (_cairo_gstate_transform), (_cairo_gstate_user_to_device), (_cairo_gstate_user_to_device_distance), (_cairo_gstate_device_to_user), (_cairo_gstate_device_to_user_distance), (_cairo_gstate_reset_clip): * src/cairo_matrix.c: * src/cairoint.h: * src/cairo.h: Rename functions to eliminate abbreviations: cairo_concat_matrix -> cairo_transform cairo_transform_point -> cairo_user_to_device cairo_transform_distance -> cairo_user_to_device_distance cairo_inverse_transform_point -> cairo_device_to_user cairo_inverse_transform_distance-> cairo_device_to_user_distance cairo_init_clip -> cairo_reset_clip 2005-03-18 Carl Worth * TODO: Update API shakeup chart. 2005-03-18 Carl Worth * src/cairo-path-data-private.h: * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat), (cairo_append_path): Rename cairo_copy_path_data, cairop_copy_path_data_flat, and cairo_append_path_data to cairo_copy_path, cairo_copy_path_flat, and cairo_append_path. * src/cairo.h: Add new cairo_path_t, containing a cairo_path_data_t array and an explicit length. Remove CAIRO_PATH_END_PATH terminator from cairo_path_data_t. * src/cairo_atsui_font.c: (_cairo_atsui_font_glyph_path): * src/cairo_font.c: (_cairo_font_glyph_path): * src/cairo_ft_font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to), (_cairo_ft_font_glyph_path): * src/cairo_gstate.c: (_cairo_gstate_interpret_path): * src/cairo_path.c: (_cairo_path_init), (_cairo_path_init_copy), (_cairo_path_fini), (_cairo_path_move_to), (_cairo_path_rel_move_to), (_cairo_path_line_to), (_cairo_path_rel_line_to), (_cairo_path_curve_to), (_cairo_path_rel_curve_to), (_cairo_path_close_path), (_cairo_path_get_current_point), (_cairo_path_add), (_cairo_path_add_op_buf), (_cairo_path_new_op_buf), (_cairo_path_add_arg_buf), (_cairo_path_new_arg_buf), (_cairo_path_interpret): * src/cairo_path_bounds.c: (_cairo_path_bounds): * src/cairo_path_data.c: (_cairo_path_data_count), (_cairo_path_data_populate), (_cairo_path_data_create_real), (cairo_path_destroy), (_cairo_path_data_append_to_context): * src/cairo_path_fill.c: (_cairo_path_fill_to_traps): * src/cairo_path_stroke.c: (_cairo_path_stroke_to_traps): * src/cairoint.h: * test/path_data.c: (munge_and_set_path), (draw), (main): Rename the internal path object from cairo_path_t to cairo_path_real_t. 2005-03-18 Kristian Høgsberg * src/cairo_pdf_surface.c (cairo_set_target_pdf_as_file) (cairo_set_target_pdf): Remove return statements from these functions (bug #2137). 2005-03-18 Carl Worth * src/Makefile.am (libcairo_la_SOURCES): Remove unused libcairo_freetype_sources (thanks to Damien Carbery). Closes bug #2673. 2005-03-17 Owen Taylor * src/cairo_matrix.c (cairo_matrix_rotate): doc fix - 90 degrees is MI_PI/2 radians. * src/cairo.c src/cairo_matrix.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_quartz_surface.c src/cairo_win32_font.c src/cairo_win32_surface.c src/cairo_xlib_surface.c: Cairo is only capitalized at the beginning of sentences. 2005-03-17 Kristian Høgsberg From Tor Lillqvist : * test/cairo_test.c (cairo_test): Open output PNG files in binary mode. 2005-03-17 Owen Taylor * src/cairo.h src/cairo_surface.c src/cairo-xlib.h src/cairo_xlib_surface.c: Move cairo_xlib_surface_set_device_offset() to a generic cairo_surface_set_device_offset(). * src/cairo_gstate.c: Take the surface's device offset into account. * doc/public/cairo-sections.txt: Update. 2005-03-17 Owen Taylor * src/cairo_matrix.c: Fix the docs to to correctly describe the order of transformation for muliply/scale/rotate/translate. (cairo_matrix_translate): Fix translate/rotate typo in the parameter descriptions. 2005-03-17 Kristian Høgsberg * src/cairo_output_stream.c: Forgot to add this file. 2005-03-16 Kristian Høgsberg * src/cairo_surface.c (_destroy_user_data) (cairo_surface_set_user_data): Dont call user data destroy function if it's NULL. * test/user_data.c: (main): Add test case for user data with NULL destroy function. 2005-03-16 Kristian Høgsberg * src/Makefile.am: Add cairo_output_stream.c * src/cairo.h: Add new errors, CAIRO_STATUS_WRITE_ERROR and CAIRO_STATUS_SURFACE_FINISHED, add cairo_surface_finish() prototype, add cairo_write_func_t. * src/cairo.c: Add strings for new errors, documentation fix. * src/cairo_win32_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: * src/cairo_image_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: Rename surface destroy functions to finish and change them to not free the surface. * src/cairo-pdf.h: * src/cairo_pdf_surface.c: Change PDF surface constructors to take a write function in the general case and add stdio convenience constructors. Change destroy function to finish for cairo_pdf_surface. Change implementation to use cairo_output_stream_t functions for output. * src/cairo_font.c: (_cairo_font_show_glyphs): Use _cairo_surface_show_glyphs instead of calling function pointer directly. * src/cairoint.h: Add prototypes for cairo output stream functions, rename destroy to finish in cairo_surface_backend_t and add finished flag to cairo_surface_t. * src/cairo_surface.c: Add cairo_surface_finish() and call it from cairo_surface_destroy(). Check the finished flag in cairo_surface_t in functions that change the surface. 2005-03-15 Owen Taylor * src/cairo-xlib.h src/cairo_xlib_surface.c: Rework set of contructors for XLib surfaces. Add cairo_xlib_surface_set_size(). * src/cairo-xlib.h src/cairo_xlib_surface.c: Add cairo_xlib_surface_set_device_offset(). * src/cairo_xlib_surface.c (cairo_xlib_surface_set_clip_region): Rewrite for clarity and efficiency. * src/cairo_xlib_surface.c (_get_image_surface): Use a temporary pixmap to avoid possible BadMatch when fetch from windows. * src/cairo.[ch] src/cairo-xlib.h: Fix some parameter names for the docs. * doc/public/cairo-sections.txt: Update 2005-03-14 Carl Worth * test/path_data-ref.png: Add reference image. 2005-03-14 Carl Worth * test/Makefile.am: Fixes to force tests to run against locally compiled version (thanks to Manish Singh). 2005-03-11 Carl Worth * doc/public/cairo-sections.txt: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo.sgml: Added some documentation, so we get some churn here. * src/cairo.c: * src/cairo.h: New functions: cairo_copy_path_data, cairo_copy_path_data_flat, and cairo_append_path_data. * src/Makefile.am: * src/cairo-path-data-private.h: * src/cairo_path_data.c: Add new implementation for cairo_copy_path_data and cairo_append_path_data. * test/Makefile.am: * test/path_data.c: New test for new path_data functions. 2005-03-10 Kristian Høgsberg * src/cairo_surface.c (_destroy_user_data): Add this function and call it on surface destruction. 2005-03-10 Kristian Høgsberg * test/user_data.c (main): Fix assert()'s using = instead of ==. * test/cairo_test.c (cairo_test): Move xunlink call below the xasprintf that builds the filename to unlink. 2005-03-10 Carl Worth * TODO: API Shakeup status update. 2005-03-10 Carl Worth Originally: 2005-02-24 Carl Worth * src/cairo_surface.c (cairo_surface_set_user_data) (cairo_surface_get_user_data): * src/cairo.h: Add const qualifier to cairo_user_data_key_t arguments. Originally: 2005-02-15 Kristian Høgsberg * src/cairo_surface.c (cairo_surface_get_data, cairo_surface_set_data): Add these two functions to set and get user data on an surface. * src/cairo.h: Function prototypes for new functions. * test/user_data.c: Test case for user data functions. 2005-03-09 Carl Worth * test/cairo_test.c (cairo_test): Move filename initialization up to before first use. * test/get_and_set.c: * test/Makefile.am: Add test for the most trivial cairo_get and cairo_set functions. 2005-03-09 Carl Worth * test/cairo_test.c: (cairo_test): * test/cairo_test.h: * test/clip_twice.c: (draw): * test/coverage.c: (draw): * test/fill_rule.c: (draw): * test/leaky_polygon.c: (draw): * test/line_width.c: (draw): * test/linear_gradient.c: (draw): * test/move_to_show_surface.c: (draw): * test/pixman_rotate.c: (draw): * test/text_cache_crash.c: (draw): * test/text_rotate.c: (draw): Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image. 2005-03-09 Carl Worth * TODO: Update API Shakeup planning chart. fix typos. 2005-03-09 Carl Worth * doc/public/cairo-sections.txt: * src/cairo.c: (cairo_get_pattern), (cairo_get_font), (cairo_get_font_extents), (cairo_get_operator), (cairo_get_rgb_color), (cairo_get_alpha), (cairo_get_tolerance), (cairo_get_current_point), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target_surface), (cairo_get_path), (cairo_get_path_flat): * src/cairo.h: * src/cairo_ft_font.c: (_conic_to): * src/cairo_gstate.c: (_cairo_gstate_get_target_surface), (_cairo_gstate_get_pattern), (_cairo_gstate_get_operator), (_cairo_gstate_get_rgb_color), (_cairo_gstate_get_tolerance), (_cairo_gstate_get_alpha), (_cairo_gstate_get_fill_rule), (_cairo_gstate_get_line_width), (_cairo_gstate_get_line_cap), (_cairo_gstate_get_line_join), (_cairo_gstate_get_miter_limit), (_cairo_gstate_get_matrix), (_cairo_gstate_get_current_point), (_cairo_gstate_show_surface), (_cairo_gstate_get_font), (_cairo_gstate_get_font_transform), (_cairo_gstate_get_font_scale), (_cairo_gstate_ensure_font), (_cairo_gstate_get_font_extents), (_cairo_gstate_text_to_glyphs): * src/cairo_path.c: (_cairo_path_get_current_point): * src/cairoint.h: * test/pixman_rotate.c: (draw):Rename all the cairo_current functions to cairo_get functions instead. Add documentation for all of these functions (and a few others as well). Add support so that old binarys should still run and old source should still compile, (though we'll rip that out again on the API Shakeup flag day). 2005-03-08 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_4_0. 2005-03-08 Carl Worth * gtk-doc.make (dist-check-gtkdoc): Commit workaround to prevent make distcheck from making bogus complaints that gtk-doc is not enabled. * test/cairo_test.c (cairo_test_create_png_pattern): Look for png images in ${srcdir}/filename as well, so that make distcheck can still find them. * test/Makefile.am (EXTRA_DIST): Add romedalen.png to EXTRA_DIST so the tests can pass from the tar file. * doc/public/cairo-sections.txt: Fix typo: cairo-win3 -> cairo-win32. * doc/public/cairo-docs.xml: Add cairo-win32.xml to the list, so it gets generated as well. * NEWS (http): Add pointer to new win32 documentation. * configure.in: Increment CAIRO_VERSION to 0.4.0 * NEWS: Added notes for snapshot 0.4.0 2005-03-08 Carl Worth * test/cairo_test.c (xunlink): Shared function for checking unlink errrors. (cairo_test): Move all error messages to test-specific log files for quieter test output. * test/Makefile.am (XFAIL_TESTS): Make pixman_rotate an expected failure. * configure.in: Require libpixman >= 0.1.4. 2005-03-08 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_composite): Return CAIRO_STATUS_SUCCESS even if we don't implement masks yet, so we don't set cr->status to CAIRO_INT_STATUS_UNSUPPORTED. 2005-03-07 Carl Worth * src/cairo_traps.c: Disable the "new" intersection code so that the incorrect fill problems (test/fill_rule) go away. * configure.in: Make configure fail if no font backend is available. Point the user at freetype and fontconfig. 2005-03-06 Owen Taylor * src/cairo_pattern.c (_cairo_image_data_set_linear): Comment and clean up the gradient computation. (_cairo_linear_pattern_classify): Determine if a linear gradient is horizontal or vertical. (_cairo_pattern_acquire_surface_for_gradient): Optimize horizontal/vertical gradients with a repeating surface. * test/linear_gradient.c: Test case for linear gradients at angles and with a rotated pattern matrix. 2005-03-06 David Reveman * src/cairo_glitz_surface.c (_cairo_glitz_pattern_acquire_surface): Do not allow acceleration of gradients when color stops have different alpha. Add note about the current state of glitz's gradient acceleration. CAIRO_FILTER_GOOD and CAIRO_FILTER_BEST is ok. (_cairo_glitz_surface_composite_trapezoids): Use unsigned short for alpha. 2005-03-04 Owen Taylor * src/cairo_win32_font.c src/cairo_win32_surface.c: Update for recent backend interface changes. * configure.in: Reenable win32 backend by default. 2005-03-04 Carl Worth * src/cairo_glitz_surface.c (_cairo_glitz_pattern_acquire_surface): Fix accidental reversal of condition in previous patch. 2005-03-04 Owen Taylor * src/cairoint.h src/cairo_pattern.c src/cairo_glitz_surface.c: Add _cairo_pattern_is_opaque, use it rather than pattern->alpha == 1.0. 2005-03-04 David Reveman * configure.in: Enable xcb backend. * src/cairo_xcb_surface.c: Update xcb backend. * configure.in: Fixed variable assignments. * src/cairo_glitz_surface.c: Add overall alpha acceleration to a few cases not covered by _cairo_pattern_acquire_surfaces but possible to accelerate by glitz. * src/cairo_pattern.c: (_cairo_pattern_acquire_surfaces): Add overall alpha acceleration using mask surface. * src/cairoint.h: Add convenience function _cairo_pattern_acquire_surfaces. * src/cairo_xlib_surface.c: * src/cairo_surface.c: * src/cairo_ps_surface.c: * src/cairo_png_surface.c: * src/cairo_pdf_surface.c: * src/cairo_pattern.c: * src/cairo_image_surface.c: * src/cairo_gstate.c: * src/cairo_glitz_surface.c: * src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Mask to composite operation is now passed as a pattern. * src/cairoint.h: * src/cairo_xlib_surface.c: (_cairo_xlib_surface_set_matrix): Setting identity transform should always be successful. * src/cairo_surface.c: * src/cairo_ps_surface.c: * src/cairo_png_surface.c: * src/cairo_pdf_surface.c: * src/cairo_image_surface.c: * src/cairo_glitz_surface.c: Removed surface backend functions set_matrix, set_filter, set_repeat. * configure.in: Enabled glitz backend. * src/cairo_glitz_surface.c: Major update to glitz backend. The output quality should now be just as good as the image and xlib backends. * configure.in: Disabled win32 and quartz backends as they are now temporarily out of sync. * src/cairoint.h: Replaced old cairo_pattern_t struct with new cairo_surface_t like structure of cairo_pattern_t. Added new function prototypes for acquiring a source surface from a pattern. * src/cairo_xlib_surface.c: (_cairo_xlib_surface_composite): Removed fast path that used XCopyArea. * src/cairo_ps_surface.c: * src/cairo_pdf_surface.c: * src/cairo_image_surface.c: * src/cairo_gstate.c: Switched to cairo_surface_t like structure of cairo_pattern_t and new interface for acquiring a source surface from a pattern. * src/cairo_pattern.c: New implementations of many functions. This was necessary because of switch to cairo_surface_t like structure of cairo_pattern_t. Includes new interface for acquiring a source surface for a pattern. Things that didn't belong in cairoint.h have been moved here. * src/cairo_gstate.c (_cairo_gstate_show_surface): Inherit surface attributes while surface attribute functions still exist. 2005-03-01 Carl Worth * TODO: Note that cairo_output_stream_t patch has been reviewed. 2005-03-01 Carl Worth * src/cairo_gstate.c (_cairo_gstate_show_surface): Fix uninitialized value for status, (reported by Manish Singh). 2005-02-27 Kristian Høgsberg * src/cairo_gstate.c (_cairo_rectangle_intersect): Fix this function again. Problem with signed/unsigned types reported by Jeff Muizelaar . 2005-02-27 Kristian Høgsberg * src/cairo.h (cairo_fill_rule_t): Remove newline in comment which was confusing gtk-doc. * src/cairo_image_surface.c (cairo_image_surface_create_for_data) (cairo_image_surface_create): Document these functions. 2005-02-25 Carl Worth * TODO: Note that "user data" and "setters and getters" patches have been reviewed. Remove a few more TODO notes: cleanup cairo_snippets: DONE cairo_surface_finish: Now in API Shakeup snapping code: Decided against this 2005-02-25 Carl Worth From David Reveman: * src/cairo_matrix.c (_cairo_matrix_is_integer_translation): Rewrite to use cairo_bool_t for legibility. 2005-02-25 Carl Worth From David Reveman: * src/cairo_gstate.c (_cairo_gstate_show_surface): Simplify code to eliminate a goto. 2005-02-25 Carl Worth From David Reveman: * src/cairo_gstate.c (_cairo_gstate_pattern_init_copy): (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_show_surface, _cairo_gstate_show_glyphs) (_cairo_gstate_show_glyphs): Clean up the mess that was the misnamed _cairo_gstate_create_pattern. 2005-02-25 Carl Worth * src/cairo_pattern.c (_cairo_pattern_shader_init): Don't put an off-by-one n_stops into cairo_shader_op_t. (_cairo_shader_op_find_color_stops): Put search for two color stops containing a given offset into its own function. Handle the case of before first and after last stop by returning the nearest stop twice. (_cairo_pattern_calc_color_at_pixel): Handle case of no color stops by returning a transparent pixel. 2005-02-24 Owen Taylor * src/cairo_win32_surface.c: Remove a left-over debug printf. 2005-02-24 Carl Worth * src/cairo_pattern.c (cairo_pattern_add_color_stop): Fix memory leak when realloc fails due to out-of-memory. 2005-02-24 Owen Taylor * src/cairo_win32_surface.[ch]: Instead of counting on ordering deletion to work (apparently it didn't on older Windows), save the initial bitmap created with the DC and reselect that into the DC. (Based on a patch by Hans Breuer) 2005-02-24 Carl Worth * test/.cvsignore: Add pixman_rotate to ignore list. 2005-02-24 Carl Worth Fixes from David Reveman with minor cleanups by Carl Worth: * src/cairo_gstate.c (_cairo_gstate_create): Handle new failure possibility of _cairo_gstate_init. (_cairo_gstate_init): Handle possible failure of _cairo_pattern_create_solid. (_cairo_gstate_set_pattern): Reference new pattern before destroying existing pattern to handle the case where they are the same. (_cairo_gstate_set_rgb_color): Handle possible failure of _cairo_pattern_create_solid. 2005-02-24 Carl Worth * src/cairo.h: Fix typo (pointed out by Kristian Høgsberg). 2005-02-24 Owen Taylor * src/cairo_win32_surface.c (_cairo_win32_surface_destroy): When we created a DC/bitmap pair, delete the DC before the Bitmap so that the Bitmap will be released from the DC and can be destroyed. (Reported by Hans Breuer) * configure.in cairo.pc.in: Only require fontconfig if building FreeType font backend. * configure.in: Fix output when reporting Win32 font backend. 2005-02-24 Carl Worth c * TODO: Remove many TODO items that have now been absorbed by the API shakeup. Remove comparison with PostScript as there's nothing interesting there left unimplemented, (and cairo is already establishing its own conventions in naming and behavior that deviate from PostScript). * src/cairoint.h: Fix typo (pointed out by Mike Emmel) 2005-02-23 Carl Worth * TODO: Add entries from API Shakeup. 2005-02-22 Carl Worth * README: * src/cairo-features.h.in: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-png.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-xcb.h: * src/cairo-xlib.h: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_png_surface.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_traps.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Switch from broken cworth@@isi.edu address to canonical cworth@@cworth.org address. 2005-02-22 Carl Worth * test/write_png.c: * src/cairo-atsui.h: * src/cairo_atsui_font.c: Convert to utf-8 encoding. 2005-02-22 Carl Worth * configure.in: Temporarily disable XCB backend by default. 2005-02-21 Carl Worth * src/cairo_pattern.c (cairo_pattern_reference): * src/cairo.h: Revert accidental commit. 2005-02-21 Carl Worth * src/cairo_surface.c (_fallback_composite_trapezoids): Fix y offset to use dst_y instead of dst_x, (caught by David Reveman). 2005-02-20 Owen Taylor * src/cairo-win32.h: Fix line endings (reported by Hans Breuer) 2005-02-16 Kristian Høgsberg Patches from Mike Owens : * src/cairo_png_surface.c (_cairo_png_surface_copy_page): Free rows if we fail early in this function. * src/cairo_path.c (_cairo_path_init_copy): Clean up path if we run out of memory. 2005-02-13 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_create_for_document): Initialize array element size correctly. 2005-02-10 Kristian Høgsberg Patches from Owen Taylor: * src/cairo_pdf_surface.c (_cairo_pdf_surface_show_glyphs): Emit text as octal escapes, to avoid problems with \, \r, ), etc. (_cairo_pdf_document_write_fonts): Change /Flags to be 4 (symbolic), not 32 (non-symbolic), otherwise acroread gets confuse. (cairo_pdf_ft_font_write_cmap_table): Use a 1,0 cmap subtable, not a 0,0, to conform to the PDF spec. 2005-02-13 Carl Worth * autogen.sh (LC_NUMERIC): Use LC_NUMERIC=C so that decimal separator works in version checks. 2005-02-12 Owen Taylor * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Fix x2/x1 typo. 2005-02-12 Carl Worth * src/cairo.c (cairo_text_extents): Return all-zero extents if string is NULL. 2005-02-12 Kristian Høgsberg * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Make clipping fast path fast. When we have a clipping region set, intersect it against the drawing extents to determine the bounding box for the visible drawing. 2005-02-10 Carl Worth * BUGS: Add bug for cairo_show_surface under non-default CTM. 2005-02-07 Kristian Høgsberg * test/pixman_rotate.c, test/pixman_rotate-ref.png: New test case which exposes off-by-one rotation error in pixman. 2005-02-06 Owen Taylor * src/cairo_gstate.c src/cairo.c: Allow cairo_set_font (cr, NULL) to unset the current font and return the cairo_t to the the "use the font from cairo_select_font() state". 2005-02-06 Owen Taylor * src/cairo_win32_font.c (_cairo_win32_font_text_to_glyphs): Return the right status. (Reported by Hans Breuer.) 2005-02-06 Owen Taylor * src/cairo_win32_font.c (_cairo_win32_font_text_to_glyphs): Free glyph_indices, not glyphs. (Reported by Hans Breuer.) 2005-02-05 Carl Worth * configure.in: Add message stating why glitz backend is disabled. 2005-02-05 Owen Taylor * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs): Don't free *glyphs when succeeding! (Reported by Øyvind Kolås) * configure.in: Temporarily disable glitz by default. 2005-02-04 Carl Worth * src/Makefile.am: Generate an error during make install if old cairo headers are found in includedir, (rather than includedir/cairo where the new ones are going). 2005-02-03 Owen Taylor * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs, _cairo_ft_font_create_glyph): Fix missing cairo_ft_font_unlock_face(). * src/cairo_cache.c (_cairo_cache_random_entry): Fix problem when no entry could be found. 2005-02-03 Owen Taylor * src/cairo_font.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_font_extents(). * src/cairo_win32_font.c src/cairo-win32.h doc/public/cairo-sections.txt: Rename cairo_font_create_for_logfont() into cairo_font_create_for_logfontw() to make clear what it takes. Don't add cairo_font_create_for_logfonta() for now. 2005-02-02 Owen Taylor * src/cairo_win32_font.c doc/public/cairo-sections.txt doc/public/Makefile.am: Add windows functions to the docs. 2005-02-02 Owen Taylor * src/cairo_win32_font.c (cairo_win32_font_select_font, cairo_win32_release_font, cairo_win32_font_get_scale_factor): Add some functions to select the font into a device context with the intention to enable callers to use, e.g, Uniscribe. * src/cairo_win32_font.c: Use 'hdc' not 'dc' for param/variable name. 2005-02-02 Owen Taylor * src/cairo_win32_font.c (cairo_win32_font_select_font, cairo_win32_release_font, cairo_win32_font_get_scale_factor): Add some functions to select the font into a device context with the intention to enable callers to use, e.g, Uniscribe. * src/cairo_win32_font.c: Use 'hdc' not 'dc' for param/variable name. * src/cairo_win32_font.c (_cairo_win32_font_show_glyphs): Return immediately if height or width is 0. 2005-02-02 Owen Taylor * src/cairo_win32_font.c: Mostly-functioning Win32 font backend; no glyph paths yet. * configure.in: Turn on building of the Win32 font backend. * src/cairo-win32-private.h src/Makefile.am: Private header for the Win32 backend. * src/cairo-win32-private.h src/cairo_win32_surface.c: Internally export _cairo_win32_print_gdi_error() for use in the font code. * src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_win32_surface_create_dib to create a DIB surface. src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_surface_is_win32() * configure.in: Check for vasnprintf. * test/cairo_test.c (xasprintf): Add a simple fixed-buffer size snprintf fallback in the absence of vasnprintf. 2005-02-01 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_composite): Pretend we support compositing of solid color or gradient patterns to prevent image fallback. (emit_pattern): New function, code factored out from _cairo_pdf_surface_composite_trapezoids. (_cairo_pdf_surface_show_glyphs): Use emit_pattern here so we get pattern support for text. * src/cairo_ft_font.c (_cairo_ft_font_get_unscaled_font): Fix typo. 2005-02-01 Owen Taylor * src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib. * src/cairo.[ch]: Add CAIRO_STATUS_INVALID_STRING * src/cairo_ft_font.c: Use _cairo_utf8_to_ucs4(). * src/cairo.h: Add cairo_bool_t * src/cairoint.h: Add TRUE/FALSE definitions. * src/cairo.[ch] src/cairoint.h src/cairo_gstate.c: switch cairo_in_stroke/cairo_in_fill and all the functions used to implement them over to cairo_bool_t. 2005-01-31 Owen Taylor * configure.in src/cairo-features.h.in: Add a check for the Windows platform and --enable-win32. Also add some (currently always off) stubs for native Win32 fonts. * configure.in: Make building the PDF backend conditional on having FreeType. * src/Makefile.am src/cairo_win32_surface.c src/cairo_win32_font.c src/cairo-win32.h: Add a Win32 backend using GDI and software fallbacks Font code is not yet there yet, but it works with the fontconfig backend. * src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend. * src/cairoint.h: Prefer platform-specific font backends to the fontconfig backend. 2005-01-31 Owen Taylor * src/cairoint.h src/cairo_image_surface.c src/cairo_pdf_surface.c src/cairo_png_surface.c src/cairo_surface.c src/cairo_xlib_surface.c: Replace the get_image()/set_image() backend operations with a more specific {acquire,release}_{source,dest}_image() and clone_similar(). * src/cairoint.h src/cairo_pattern.c: Replace _cairo_pattern_get_surface() with a _cairo_pattern_begin_draw()/_cairo_pattern_end_draw() pair. * src/cairo_image_surface.c: Save the format for which an image is created so we can access it later. (Needed for the _cairo_xlib_surface_clone_similar()) * src/cairoint.h src/cairo_image_surface.c: Add _cairo_surface_is_image(). * src/cairoint.h: Add CAIRO_OK(status) to check for CAIRO_STATUS_SUCCESS. * src/cairo_xlib_surface.c: In the absence of of RENDER, make cairo_xlib_surface_create_similar() return an image surface. * src/cairo_xlib_surface.c: Don't try to use RENDER to composite glyphs in the absence of the RENDER extension. 2005-01-30 Owen Taylor * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Update composite-over-white code to use a pattern, not a surface. (to match _cairo_surface_composite API change.) 2005-01-30 Owen Taylor Fixes from David Reveman: * src/cairo_pattern.c (_cairo_pattern_save/restore_surface): Don't save to surface part of the union when the pattern isn't a surface pattern. (_cairo_pattern_get_surface): Create the new surface at the width and height of the source. * src/Makefile.am (libcairo_ft_sources): Add cairo-ft-private.h 2005-01-28 Kristian Høgsberg * src/cairo_png_surface.c (_cairo_png_surface_composite): Update prototype to eliminate warning. * src/cairo_pattern.c (_cairo_pattern_init_copy): Remember to reference surfaces when copying patterns. * src/cairo_gstate.c: (_cairo_rectangle_intersect), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_show_glyphs): Don't call _gstate_create_pattern for internally created patterns. (_cairo_gstate_show_surface): Don't change the surface matrix here, it's done later when we set it up as a pattern. * test/Makefile.am: Correct clip_twice-ref.png filename. * src/cairoint.h (MIN, MAX): Add these. * src/cairo_gstate.c (_cairo_rectangle_intersect): Fix broken intersection code. 2005-01-27 Kristian Høgsberg * src/cairo_pattern.c (_cairo_pattern_get_surface): Make sure we always return a surface similar to dst in the gradient case. * src/cairo_pattern.c (_cairo_pattern_get_surface): Fold _cairo_pattern_get_image into _cairo_pattern_get_surface and make sure we always return a surface of the same type as dest. * src/cairo_glitz_surface.c (_cairo_glitz_composite), (_cairo_glitz_surface_composite_trapezoids): Use _cairo_pattern_get_surface instead of _cairo_pattern_get_image. * src/cairo_xlib_surface.c (_cairo_xlib_surface_show_glyphs), (_cairo_xlib_surface_composite) (_cairo_xlib_surface_composite_trapezoids): Remove use of _cairo_xlib_surface_clone_similar since _cairo_pattern_get_surface always gives us an xlib surface for the pattern. Clean up error handling code in _cairo_xlib_surface_show_glyphs. * src/cairo_image_surface.c (_cairo_image_surface_composite): (_cairo_image_surface_composite_trapezoids): Add missing cairo_surface_destroy and tidy up offset calculations as suggested by Owen. * src/cairoint.h (cairo_clip_rect_t): * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_clip, _cairo_gstate_show_glyphs): Simplify code for computing the extents of clipping area, by introducing a couple of cairo_rectangle_t functions. 2005-01-27 Owen Taylor * src/cairo.[ch] src/cairo_font.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_xlib_surface.c: Move docs from docs/reference, with a fair bit of addition and rewriting. * doc/reference/: Remove old-format docs. * configure.in: Add a AC_PREREQ(2.54) (Jason Dorje Short) 2005-01-27 Kristian Høgsberg * test/coverage-ref.png: * test/clip_twice-ref.png: Update these two once again, this time generated using libpixman-0.1.3 without leaky circles. 2005-01-27 Owen Taylor * configure.in Makefile.am docs/Makefile.am docs/public/*: Add framework for doing docs via gtk-doc. * src/cairo.[ch] src/cairo-matrix.c: Add some inline docs for arcs and matrices. * gtk-doc.m4 acinclude.m4: Check in files from gtk-doc to make the dependency on gtk-doc optional. * autogen.sh (LANG): Add --enable-gtk-doc to the default args. 2005-01-27 Kristian Høgsberg * test/write_png.c (unpremultiply_data): * test/read_png.c (premultiply_data): Fix missing rounding in these two functions. * test/coverage-ref.png: * test/clip_twice-ref.png: Update these to versions with properly rounded alpha values. * test/Makefile.am: Move clip_twice out of XFAIL now that rounding works. * test/.cvsignore: Add new test cases. 2005-01-27 Kristian Høgsberg The overall idea of this rewrite is that we want to pass the source pattern all the way down into the backends. The motivation for this is that not all backends want a surface for the source operand, and by passing the pattern down, backends can choose to convert it to a surface if they need that. The patch removes the create_surface function pointer from the surface vtable and moves much of that code into a couple of helper functions. The composite, compsite_trapezoids, and show_glyphs backend functions are updated to take a cairo_pattern_t instead of a surface as the source. * src/cairo_font.c: (_cairo_font_show_glyphs): * src/cairo_gstate.c: (_cairo_gstate_create_pattern), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Change these functions to not create a surface for the pattern and just pass the pattern down to the backend functions. * src/cairo_gstate.c: (translate_traps): New function to translate a set of trapezoids. * src/cairo_pattern.c: (_cairo_pattern_init), (_cairo_pattern_init_copy), (_cairo_pattern_prepare_surface), (_cairo_pattern_restore_surface): Break out the code to adjust and restore surface transformation and repeat settings into _cairo_pattern_prepare_surface and _cairo_pattern_restore_surface. * src/cairo_pattern.c: (_cairo_pattern_fini), (_cairo_pattern_init_for_surface), (cairo_pattern_create_for_surface): Split cairo_pattern_create_for_surface into an init function and a create function. * src/cairo_pattern.c: (_cairo_pattern_get_image), (_cairo_pattern_get_surface): Utility functions to create a surface from a pattern. * src/cairo_ft_font.c: * src/cairo_image_surface.c: * src/cairo_pdf_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: Update these backends to work with the new pattern API. Glitz work by David Reveman. * src/cairo_surface.c: (_cairo_surface_composite), (_cairo_surface_composite_trapezoids), (_cairo_surface_set_clip_region): Update these to pass through the new set of args. * test/coverage-ref.png: Update this reference image as we now render it correctly. 2005-01-26 Kristian Høgsberg * test/clip_twice.c, test/clip_twice-ref.png: New test case to verify that the clip surface is correctly updated when extending an existing clip path. * test/coverage.c (draw): Set alpha to 1 before setting clip mask. * test/coverage-ref.png: Added the right reference PNG. Running test against stock 0.3.0 gives the expected results. * test/Makefile.am, test/coverage.c, test/coverage-ref.png: New test case, covering various combinations of pattern types, drawing operations and clipping. Currently fails, for some combinations, coverage-ref.png is just a placeholder. * test/romedalen.png: Added this PNG from cairo-snippets to use for pattern fills. * test/cairo_test.c, test/cairo_test.h: expose PNG loading to test cases. 2005-01-26 Alexander Larsson * src/cairo_ft_font.c: (_ft_unscaled_font_set_scale): Fix access to uninitialized data * src/cairo_xlib_surface.c: key must be first element in cache entry 2005-01-25 David Reveman * AUTHORS: Update mail address. * src/cairo_glitz_surface.c: Update mail address. * configure.in: Require version 0.4.0 of glitz. * src/cairo_glitz_surface.c: Track changes to glitz. * src/cairo_xcb_surface.c: Add missing include directive so xcb backend compile again. 2005-01-25 Carl Worth * test/imagediff.c * test/testsvg: Add new testsvg script and accompanying imagediff program, (for interim SVG-based test suites while we wait for the standard cairo test suite to mature). * test/buffer_diff.c: * test/cairo_test.c: Split buffer_diff out into its own file for the purpose of imagediff. * src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Fixed rounding of glyph positioning. 2005-01-25 Owen Taylor * src/cairo_pdf_surface.c (_cairo_pdf_document_get_font): Chec pdf_font for NULL, not font. 2005-01-25 Alexander Larsson * src/Makefile.am: Fix typo that made cairo-ft.h not get installed 2005-01-24 Carl Worth * AUTHORS: Add Shawn T. Amundson, Calum Robinson, and Owen Taylor. * src/Makefile.am: Conditionally install header files only for backends that are compiled. Thanks to Shawn T. Amundson . * src/cairoint.h: * src/cairo_color.c (_cairo_color_get_rgb): Qualify color argument as const. Closes bug #2336. 2005-01-23 Dave Beckett * src/cairo_ft_font.c (_get_load_flags): Protect switch on hintstyle with #ifdef FC_HINT_STYLE. 2005-01-23 Carl Worth * RELEASING: Add instructions for handling the new "-head" suffix of CAIRO_VERSION at release-time. * configure.in: Append "-head" to CAIRO_VERSION to indicate state between snapshots. * src/cairo_gstate.c: Add missing prototype for _cairo_gstate_ensure_font. (_cairo_gstate_current_font): Add missing declaration so things compile again. 2005-01-21 Owen Taylor * Call _cairo_gstate_ensure_font(). Don't reference the returned font. 2005-01-21 Owen Taylor * src/cairo_ft_font.c (_get_load_flags): Make dependence on FC_HINT_STYLE conditional. (reported by Abraham Egnor) * src/cairo_ft_font.c: Use FT_LOAD_MONOCHROME if FT_LOAD_TARGET_MONO isn't defined for compatibility with older FreeType. 2005-01-16 Owen Taylor Change cairo_font_t to refer to a font scaled to a particular output device resolution. * src/cairoint.h src/cairo_font.c src/cairo_ft_font.c src/cairo_xlib_surface.c src/cairo_pdf_surface.c src/cairo_gstate.c src/cairo.c: Switch many internal methods from handling cairo_unscaled_font_t and cairo_font_scale_t pairs to handling cairo_font_t. * src/cairo-ft-private.h src/cairo_ft_fontc: Add some internal interfaces for use by the FreeType backend. * src/cairo_gstate.c: Clear the gstate's current font when the transform or target surface changes. * src/cairo.h src/cairo_ft_font.c: Rename cairo_ft_font_pattern to cairo_ft_font_get_pattern(). * src/cairo.h src/cairo_ft_font.c: Make cairo_ft_font_create() and cairo_ft_font_create_for_ft_face() take a font scale; make the latter take load_flags for FT_Load_Glyph() as well. Change cairo_ft_font_face() to Xft-style cairo_ft_font_lock_face, cairo_ft_font_unlock_face. * src/cairo_font.c: Remove the name/slant/weight=>unscaled font cache, it didn't work with the new cairo_font_t setup. If it turns out to be needed, it can be added back in some other form. * src/cairoint.h src/cairo_font.c: Add a 'flags' field to cairo_glyph_cache_key_t, we use it for load flags with freetype backend. * src/cairo_ft_font.c: Switch the caching to be from resolved fontconfig pattern => file; keep only a fixed number of FT_Face objects open at once, similar to FreeType. * src/cairo_font.c (cairo_font_glyph_extents) src/cairo_gstate.c src/cairoint.h: Add public cairo_font_glyph_extents, use it to implement _cairo_gstate_glyph_extents(). * src/cairo_xlib_surface.c (_glyphset_cache_entry_reference): Add refcounting for glyph cache elements; there was an bug where elements got ejected from the cache and freed before they could be used. * src/cairoint.h src/cairo_cache.c (_cairo_cache_random_entry()) New function to return a random entry in the cache matching a predicate; reuse the internals for the previous _random_live_entry(). * src/cairoint.h src/cairo_cache.c (_cairo_cache_lookup()): Add an optional created_entry return value. * src/cairo_ft_font.c src/cairo_xlib_surface.c: Adapt to _cairo_cache_lookup() change. * src/cairo_cache.c (_cairo_cache_lookup()): Support max_memory == 0 to indicate an unbounded cache. * src/cairoint.h src/cairo_cache.c (_cairo_cache_remove()): Add a function to manually remove entries from the cache. * doc/reference: Update for changes, document cairo_matrix_t, cairo_glyph_t, etc. * src/cairo.h src/cairo-atsui.h src/cairo-ft.h src/cairo-glitz.h src/cairo-pdf.h src/cairo-png.h src/cairo-ps.h src/cairo-quartz.h src/cairo-xcb.h src/cairo-xlib.h: Add CAIRO_BEGIN/END_DECLS for extern "C", use it on all public headers. Move header guards outermost. * src/cairo_quartz_surface.c: Fix encoding. 2005-01-21 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.3.0 * NEWS: Add notes for snapshot 0.3.0 * test/fill_rule-ref.png: * test/leaky_polygon-ref.png: * test/line_width-ref.png: Update reference images for new rasterization in libpixman 0.1.3. * Makefile.am (RELEASE_UPLOAD_DIR): Update since directory changed after server compromise. 2005-01-20 Carl Worth * test/cairo_test.c: Add a bunch of missing include directives, (now that cairo.h has been cleaned up). 2005-01-20 Carl Worth * src/cairo-atsui.h: Created new public header cairo-atsui.h. Build fixes for Quartz backend courtesy of Geoff Norton : * configure.in: Fix check for atsui font backend. * src/Makefile.am: Add conditional compilation for cairo_atsui_font.c and cairo_ft_font.c. * src/cairo_quartz_surface.c: Add missing include of cairo-quartz.h. * src/cairo-quartz.h: Add include of Carbon/Carbon.h. * src/cairo-features.h.in: Advertise availability of Quartz surface. * src/Makefile.am: Install cairo-quartz.h, and conditionally compile cairo_quartz_surface.c. * configure.in: Add autofoo checks to detect quartz backend. 2005-01-20 Carl Worth * src/cairoint.h: Track various renamings. * src/cairo_xlib_surface.c: * src/cairo_ps_surface.c: * src/cairo_png_surface.c: * src/cairo_pdf_surface.c: * src/cairo_glitz_surface.c: * src/cairo_ft_font.c: Insert new includes for backend-specific header files. * src/cairo_gdip_surface.cpp: * src/cairo_gdip_font.cpp: Remove redundant include of cairo-features.h. * src/cairo.h (CAIRO_H): Rename header-exclusion macro from _CAIRO_H_ to CAIRO_H. Remove platform-specific grubbing for cairo-features.h and pixman.h in odd places. Remove all backend-specific prototypes, (as they are now in their own header files). * src/cairo.c (cairo_sane_state): Remove printf. * src/cairo-features.h.in: Convert to utf-8. Use the proper name for multiple-header exclusion (CAIRO_FEATURES_H). Track rename of FREETYPE_FONT_FEATURE to FT_FONT_FEATURE. * src/Makefile.am (cairoinclude_HEADERS): Split cairo.h up into cairo.h, cairo-ft.h, cairo-glitz.h, cairo-pdf.h, cairo-png.h, cairo-ps.h, cairo-xcb.h, cairo-xlib.h. Update for rename of cairo_wideint.h to cairo-wideint.h. * configure.in: Rename CAIRO_HAS_FREETYPE_FONT to CAIRO_HAS_FT_FONT, (to match cairo_ft_font functions and cairo-ft.h). * cairo.pc.in (Cflags): Update for public header files now in ${includedir}/cairo. 2005-01-19 Carl Worth * src/cairo_matrix.c (cairo_matrix_get_affine): * src/cairo_gstate.c (_cairo_gstate_current_point): * src/cairo_color.c (_cairo_color_get_rgb): Allow NULL values for return pointers so that the user can easily get partial results from cairo_matrix_get_affine, cairo_current_point, and cairo_current_color_rgb as needed. * src/cairo_ft_font.c (_utf8_to_ucs4): Fix int* vs. size_t* confusion, (currently in favor of int* but only because that's easier to implement). Thanks to John Ellson . Closes bug #2328. 2005-01-19 Kristian Høgsberg * src/cairo_pdf_surface.c: Add byteswap macros missing for bigendian architectures. 2005-01-19 Carl Worth * test/Makefile.am (XFAIL_TESTS): Remove fill_rule and leaky_polygon from expected failures list. Both of these bugs have fixes, (fill_rule is fixed by reverting cairo_traps.c to 1.16, and leaky_polygon is fixed in a newer libpixman). * src/cairo_wideint.h: Remove const qualifiers from the header file as well. * src/cairo_wideint.c: Remove useless const qualifier from functions returning simple values, (quiets the warning in gcc4). Thanks to John Ellson . Closes bug #2299. * BUGS: Add bugs on cairo_surface_create_for_image, bad names for cairo_font_set_transform and cairo_font_current_transform, segfault on AMD64. 2005-01-17 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_document_get_font): Fix double free in error path. (cairo_pdf_ft_font_create): Reference the unscaled font to keep the FT_Face around. (cairo_pdf_ft_font_generate): Initialize end to avoid compiler warning; bail out if table write fails. Fixes from Owen. 2005-01-17 Kristian Høgsberg * src/cairo_pdf_surface.c: Add preliminary text support, including support for truetype font subsetting. * src/cairoint.h: Change type of 'surface' argument in show_glyphs to void * as it is for all other surface virtual functions. * src/cairo_xlib_surface.c (_cairo_xlib_surface_show_glyphs): Update accordingly. * configure.in: Add check for endianess. * src/cairo_array.c (_cairo_array_grow_by): Fix bug in array growing loop. (_cairo_array_append): Accept NULL for elements argument, in which case we just allocate space in the array. 2005-01-17 Kristian Høgsberg * test/Makefile.am (EXTRA_DIST): Take image_rotate-ref.png out of EXTRA_DIST until we can actually render it correctly. (XFAIL_TESTS): Update with new known bugs. * src/cairo-features.h.in: * src/cairo.h: * src/cairoint.h: * configure.in: Add font backend selection options. 2005-01-15 John Ellson reviewed by: Keith Packard * src/cairo_gstate.c: (_cairo_gstate_glyph_extents): Was using the wrong extents variable. 2005-01-13 David Reveman * src/cairo_xcb_surface.c: Replace struct cairo_surface_backend with cairo_surface_backend_t. 2005-01-13 Carl Worth * test/leaky_polygon.c: * test/Makefile.am * test/.cvsignore: Add leaky_polygon test for trapezoid rasterization corner case. * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: * src/cairo_ft_font.c: * src/cairo_font.c: * src/cairoint.h: * src/cairo.h: Replace all structure tags to have _ prefix. struct cairo_foo -> struct _cairo_foo Also, prefer cairo_foo_t over struct _cairo_foo in .c files. 2005-01-12 Carl Worth * test/fill_rule.c: Add big_star_path which shows we still have fill bugs, (even now that little_star_path is working). * src/cairo.c (cairo_sane_state): A NULL cairo_t * is not sane. * cairo.pc.in (Libs,Cflags): Add freetype flags so that things work with freetype in a non-standard location, (a little extra work here since freetype doesn't use pkg-config). * TODO: Add several items culled from recent mailing list discussions. * BUGS: Add bugs on cache locking and surface pattern scaling. 2005-01-11 Keith Packard * src/cairo_matrix.c: (_cairo_matrix_compute_scale_factors): Scale factors shouldn't include mirroring. * src/cairo_wideint.c: (_cairo_int32x32_64_mul), (_cairo_int64x64_128_mul): * src/cairo_wideint.h: int32x32_64_mul and int64x64_128_mul are different from their unsigned compatriots 2005-01-11 Øyvind Kolås * src/cairo_color.c: renamed CAIRO_COLOR_DEFAULT to CAIRO_COLOR_WHITE, and made it white again. 2005-01-11 Øyvind Kolås * src/cairo_xlib_surface.c: (_cairo_xlib_surface_composite): removed accidental addition of debug printf in previous commit. 2005-01-11 Øyvind Kolås * src/cairo_color.c: * src/cairo_gstate.c: (_cairo_gstate_init): Changed default paint color from opaque white to opaque black. 2005-01-11 Keith Packard * cairo.pc.in: * configure.in: * src/Makefile.am: Fix math library detection to use autotools helper * src/cairo_cache.c: (_cache_sane_state), (_cairo_cache_lookup): Remove cache memory usage assertions as single objects can be larger than the cache size * src/cairo_ft_font.c: (_cairo_ft_font_compute_transform), (_cairo_ft_font_install_transform), (_install_font_scale), (_cairo_ft_font_font_extents), (_cairo_ft_font_glyph_extents), (_cairo_ft_font_create_glyph): Decompose font matrix transformations into a couple of helper routines. Return all metrics in font space. * src/cairo_glitz_surface.c: (_glitz_format): Eliminate compiler warning * src/cairo_gstate.c: (_cairo_gstate_current_font_extents), (_cairo_gstate_text_to_glyphs), (_cairo_gstate_glyph_extents): Expect glyph metrics to be in font space. Compute text extents by fetching one glyph metric at a time, transforming to user space and computing the overall bounding box. * src/cairo_matrix.c: (_cairo_matrix_set_rotate), (_cairo_matrix_compute_scale_factors): use 'sincos' where available. Scale factors now ensure the non-scale transform is area preserving. Scale factors requires another parameter to mark the fixed axis. * src/cairo_wideint.c: * src/cairo_wideint.h: Change license to LGPL Mark int32x32_64_mul as broken (which it still is) * src/cairo_xlib_surface.c: (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8): Ensure each glyph is located as close to the specified position as possible * src/cairoint.h: interface change to _cairo_matrix_compute_scale_factors 2005-01-07 Kristian Høgsberg * configure.in: Add -lz to CAIRO_LIBS when compiling the PDF backend. * src/cairo_pdf_surface.c (emit_image_data): Don't use compressBound, since it's only available in zlib 1.2 and newer. 2005-01-07 Carl Worth * TODO: Add Owen's new equation to fix clipping: ((src Op dest) In clip) Add (dest Out clip) 2005-01-06 Carl Worth * TODO: Added some TODO items from mailing list traffic. Added cairo_show_surface_mask and note about clipping problems. 2005-01-05 Kristian Høgsberg * src/cairo_pdf_surface.c: (emit_image_data): Implement image compression (taken from cairo_ps_surface.c). * src/cairo_pdf_surface.c: New PDF backend. * src/cairo.h: Add PDF surface constructors. * src/cairo_array.c: New file - generic array implementation. * src/cairoint.h: Add cairo_array prototypes. * src/Makefile.am (libcairo_la_SOURCES): Add cairo_array.c and cairo_pdf_surface.c. 2004-12-23 Carl Worth * src/cairo_traps.c: Remove unused CAIRO_TRAPS_GROWTH_INC. * src/cairo_spline.c (_cairo_spline_add_point): * src/cairo_polygon.c (_cairo_polygon_add_edge): Resize arrays by doubling rather than by linear increments. * BUGS: Add new bug exposed centi_unfinished.svg. 2004-12-21 Carl Worth * src/cairoint.h: * src/cairo_wideint.h: Rename __internal_linkage to cairo_private and move it to the beginning of the line for function declarations. Also, drop unneeded "extern" from function declarations. 2004-12-21 Carl Worth With thanks to Kristian Høgsberg : * src/cairoint.h: * src/cairo_wideint.h: Tag a few private functions/data that were missing __internal_linkage. * src/cairo_xlib_surface.c: * src/cairo_ft_font.c: * src/cairo_font.c: Mark cache backends as static. 2004-12-20 Carl Worth * autogen.sh (LANG): Change "head -1" to more standard "head -n 1". 2004-12-20 Alexander Larsson * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size): Fix bug in earlier change. 2004-12-20 Carl Worth * src/cairoint.h: Re-enabled __internal_linkage for all internal functions. Now avoid the warning by moving the * from the return type after the __internal_linkage macro. It looks awaful, but it keeps the compiler quiet. 2004-12-20 Alexander Larsson * src/cairoint.h: Add _cairo_gstate_restore_external_state, _cairo_fixed_integer_floor and _cairo_fixed_integer_ceil. * src/cairo.c: (cairo_restore): Call _cairo_gstate_restore_external_state on restore. * src/cairo_cache.c: (_cache_lookup): Fix cache-misses. * src/cairo_fixed.c: (_cairo_fixed_integer_floor), (_cairo_fixed_integer_ceil): Implement floor and ceil * src/cairo_gstate.c: (_cairo_gstate_restore_external_state): Restore surface clip region on restroe. (_calculate_region_for_intermediate_clip_surface), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Create intermediate clip surfaces of the minimal required size. 2004-12-20 Carl Worth * AUTHORS: Add Alexander Larsson to AUTHORS list. * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size): Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. Thanks to Alexander Larsson . * test/text_cache_crash.c (draw): Disabled test that was killing my machine for some reason. Scary. 2004-12-20 Carl Worth * src/cairo_image_surface.c (_cairo_image_abstract_surface_create_pattern): Change return value from cairo_status_t to cairo_int_status_t to match definition in cairo_surface_backend_t. * BUGS: Add bug about gcc 3.4 warning: '__visibility__' attribute ignored on non-class types. * src/cairoint.h: Remove __internal_linkage macro from all functions returning pointers to shut up warning from gcc 3.4. 2004-12-17 Carl Worth * test/cairo_test.c (cairo_test): Fix to find reference images in local directory when run directly, (rather than by "make check"). * BUGS: Add bug about invalidating font caches. 2004-12-02 David Reveman * src/cairo_gstate.c (_cairo_gstate_clip): Revert the "return early" change so that rectangular clipping works with backends that don't support clipping regions. 2004-11-29 Carl Worth * COPYING: Fix typo: LPGL->LGPL. * src/cairo_ps_surface.c (cairo_ps_surface_create): Remove unintentional copyright statement from user-generated output image. 2004-11-23 Carl Worth * test/Makefile.am (XFAIL_TESTS): Note that text_cache_crash is expected to fail. * test/text_cache_crash.c (draw): Add test to demonstrate bug when item is too big for cache. * src/cairo_cache.c (_cache_sane_state): Really remove that refcount assertion this time. * test/text_cache_crash.c: Add note that bug has been fixed. (main): Instrumentation code for testing cache destruction. * test/cairo_test.c (cairo_test): Support tests that produce no output, (don't check image if (width,height) == (0,0)). * src/cairoint.h: Add #include here rather than in multiple .c files. * src/cairo_cache.c: Add const qualifier to static cache_arrangements table. (_cache_sane_state): Remove refcount assertion as it it false during the cairo_cache_destroy. (_cache_sane_state): #include moved up to cairoint.h (_entry_destroy): Fix bug in assertion (used_memory >= entry->memory), not >. (_cairo_cache_destroy): Fix timing of refcount decrement so that the destroy function actually works. 2004-11-14 Carl Worth * src/cairo_gstate.c (_cairo_gstate_select_font): Don't destroy a NULL font. 2004-11-13 Carl Worth * src/cairo_gstate.c (_cairo_gstate_select_font): Unconditionally destroy the old font, (otherwise, if the same font was selected twice in a row, a reference was lost to it, leading to assertion failures). 2004-11-12 Stuart Parmenter * src/cairo_gdip_font.cpp: * src/cairo_gdip_surface.cpp: Added GDI+ backend to Cairo. 2004-11-12 Carl Worth * src/cairo_font.c (_font_cache_hash, _font_cache_create_entry): * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs): Move declarations above statements to satisfy pre-C99 compilers. Thanks to Michael Johnson . 2004-11-09 Carl Worth * test/text_rotate.c (NUM_TEXT): Increase size and increase number of different angles drawn. (draw): Fix broken usage of extents (missing bearings), add stroked bounding box (shifted out by 0.5 units to just abut the text), and increase position adjustments to make room for this larger box. (draw): Move x_off, y_off calculation outside of loop to emphasize loop-independence. 2004-11-08 Dave Beckett * configure.in: require libpixman 0.1.2 since src/cairo_glitz_surface.c depends on two new functions of 0.1.2 - pixman_format_get_masks and pixman_image_get_format 2004-11-05 Graydon Hoare * src/cairo_ft_font.c: Change the signs of a variety of metrics, which were backwards. * src/cairo_gstate.c (_cairo_gstate_clip): Return early if we found a rectangular clip at all, not just in error case. * src/cairo_xlib_surface.c (_xlib_glyphset_cache_create_entry): Give render glyphset entry the negative bbox offsets it wants, not the bearings. 2004-11-04 Carl Worth * test/text_cache_crash.c: Add new test demonstrating assertion failure in cairo_cache_lookup. * test/text_rotate.c: Add new test showing problems with rotated text. 2004-11-04 David Reveman * src/cairo_glitz_surface.c (cairo_set_target_glitz): cairo_glitz_surface_create now takes a reference to the glitz surface, so it shouldn't be done here anymore. Removed feature_mask from cairo_glitz_surface_t. Removed support for CAIRO_OPERATOR_SATURATE. (cairo_glitz_surface_create): Take a reference to the glitz surface and no need to get surface features anymore. Tracking changes to glitz. * configure.in: Require version 0.3.0 of glitz. * src/cairo_gstate.c (_cairo_gstate_clip): Fixed return status. 2004-11-01 Olivier Andrieu * src/cairo.h: remove cairo_ft_font_destroy() prototype. 2004-10-28 Carl Worth * Makefile.am (release-verify-newer): Abort release-publish if there's already a published tar file with the current version. (release-publish): Add code to update the LATEST-package-version file. 2004-10-27 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.2.0. * NEWS: Add notes for snapshot 0.2.0. Add note on reverted tessellation regression bugs. * RELEASING: Update release instructions for new release-publish target. * Makefile.am: Add release-check and release-publish targets copied from libpixman. * test/Makefile.am (AM_LDFLAGS): Fix to always link tests against locally built library, not installed version. * test/fill_rule.c: Add new test for cairo_set_fill_rule. Also demonstrate some of the current tessellation bugs with the version of the code that is in CVS. 2004-10-26 Carl Worth * test/cairo_test.c (cairo_test): Find reference images in ${srcdir} so that make distcheck will work. * test/Makefile.am (cairo_test_lib): Add header files so that make distcheck is happy. (INCLUDES): Add -D_GNU_SOURCE for asprintf. Someone motivated may want to find a more portable approach. (EXTRA_DIST): Add reference images for the sake of make distcheck. * configure.in: Shell doesn't like whitespace around assignment operator. * test/README: Add paragraph on new features. * test/.cvsignore: * test/Makefile.am: * test/README: * test/cairo_test.c: * test/cairo_test.h: * test/line_width-ref.png: * test/line_width.c: * test/move_to_show_surface-ref.png: * test/move_to_show_surface.c: * test/read_png.c: * test/read_png.h: * test/write_png.c: * test/write_png.h: * test/xmalloc.c: * test/xmalloc.h: Add initial regression test suite. * configure.in: Don't AC_SUBST a dozen different FOO_CFLAGS and FOO_LIBS. Instead, incrementally build up just CAIRO_CFLAGS and CAIRO_LIBS. * cairo.pc.in (Libs): Don't list flags that should get picked up via dependency information through Requires. * BUGS (font-size): Add description of move_to_show_surface. 2004-10-21 Carl Worth * src/cairo_png_surface.c: * src/cairo.c: * src/cairo.h: * src/cairo_cache.c: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_ft_font.c: * src/cairo_glitz_surface.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pattern.c: * src/cairo_pen.c: * src/cairo_png_surface.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_traps.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Convert all files to utf-8. Add copyright information to cairo_png_surface.c. * src/cairo_hull.c (_cairo_hull_vertex_compare): Fix comparison so that it results in a stable sort. This should fix some rendering bugs due to broken pens. * TODO: Add items on custom caps and getting access to hidden image data * Makefile.am (EXTRA_DIST): Add COPYING-LGPL-2.1 and COPYING-MPL-1.1 to the distribution. 2004-10-13 Carl Worth * autogen.sh: automake 1.4 seems to be sufficient. Don't require 1.6. 2004-10-12 Keith Packard * src/cairo_traps.c: (_cairo_traps_init), (_cairo_traps_add_trap), (_cairo_traps_extents): * src/cairoint.h: Compute extents of cairo_traps_t on the fly using approximate method which is correct given the way cairo generates trapezoids. * src/cairo_xlib_surface.c: (_cairo_xlib_surface_create_similar): Avoid zero-dimensioned pixmaps 2004-10-12 Carl Worth * src/cairo_pen.c: Fix a few typos in pen vertex math description. 2004-10-12 Keith Packard reviewed by: Carl Worth * src/cairo_pen.c: (_cairo_pen_init), (_cairo_pen_vertices_needed): Adapt function from Walter Brisken to compute pen ellipse major axis length and use that to compute the required number of pen vertices. 2004-10-07 Graydon Hoare * src/Makefile.am (libcairo_la_SOURCES): Add cairo_cache.c * src/cairo.c (cairo_text_extents) (cairo_show_text) (cairo_text_path): Rewrite using temporary glyph arrays * src/cairo_cache.c: New file. * src/cairo_font.c (_cairo_glyph_cache_create) (_cairo_glyph_cache_destroy) (_cairo_glyph_cache_reference) (_cairo_glyph_cache_pop_last) (_cairo_glyph_surface_init) (_cairo_font_lookup_glyph): Remove old glyph cache code. (_cairo_font_scale) (_cairo_font_transform): Remove font-transforming code. (_cairo_font_text_extents) (_cairo_font_text_bbox) (_cairo_font_show_text) (_cairo_font_text_path): Remove text-API code. (_cairo_font_cache_key_t): New structure type. (_font_cache_hash) (_font_cache_keys_equal) (_font_cache_create_entry) (_font_cache_destroy_entry) (_font_cache_destroy_cache): New font cache code. (_global_font_cache) (_lock_global_font_cache) (_unlock_global_font_cache) (_get_global_font_cache): New global font cache. (_cairo_font_text_to_glyphs) (_cairo_glyph_cache_hash) (_cairo_glyph_cache_keys_equal) (_image_glyph_cache_create_entry) (_image_glyph_cache_destroy_entry) (_image_glyph_cache_destroy_cache): New glyph cache code. (_global_image_glyph_cache) (_cairo_lock_global_image_glyph_cache) (_cairo_unlock_global_image_glyph_cache) (_cairo_get_global_image_glyph_cache): New global glyph cache. (_cairo_font_cache_backend): New structure. (_cairo_image_cache_backend): Likewise. (_cairo_font_create): Reimplement in terms of font cache. (_cairo_font_init): Remove matrix and glyph cache related code. (_cairo_font_copy): Likewise. (_cairo_font_show_glyphs): Delegate to surface when possible. (_cairo_font_glyph_extents) (_cairo_font_glyph_bbox) (_cairo_font_glyph_path) (_cairo_font_font_extents) (_cairo_font_show_glyphs): Rename to as cairo_unscaled_font_XXX, and add scale parameter. * src/cairo_ft_font.c (ft_cache_t) (ft_font_val_t) (cairo_ft_cache_key_t) (cairo_ft_cache_entry_t): New structure types. (_create_from_face) (_reference_font_val) (_destroy_font_val) (_create_from_library_and_pattern): New functions. (_ft_font_cache_hash) (_ft_font_cache_keys_equal) (_ft_font_cache_create_entry) (_ft_font_cache_destroy_entry) (_ft_font_cache_destroy_cache): New ft font cache code. (_global_ft_cache) (_lock_global_ft_cache) (_unlock_global_ft_cache) (_get_global_ft_cache): New global ft font cache. (_ft_font_cache_backend): New structure. (_cairo_ft_font_create): Rewrite to use cache. (_cairo_ft_font_destroy): Likewise. (_cairo_ft_font_copy): Remove. (_install_font_matrix): Rename as _install_font_scale. (_utf8_to_glyphs): Rename as _cairo_ft_font_text_to_glyphs. (_cairo_ft_font_text_to_glyphs): Use cache for metrics. (_cairo_ft_font_extents): Accept size, use scaled metrics. (_cairo_ft_font_glyph_extents) (_cairo_ft_font_glyph_bbox) (_cairo_ft_font_show_glyphs) (_cairo_ft_font_glyph_path): Modify to use size, cache. (_cairo_ft_font_text_extents) (_cairo_ft_font_text_bbox) (_cairo_ft_font_show_text) (_cairo_ft_font_text_path): Remove text-API code. (cairo_ft_font_create) (cairo_ft_font_create_for_ft_face) (cairo_ft_font_face) (cairo_ft_font_pattern): Rewrite using ft_font_val_t. * src/cairo_gstate.c (cairo_gstate_init_copy): Just reference font. (_cairo_gstate_fini): Finalize font matrix. (_cairo_gstate_default_matrix): Initialize font matrix. (_cairo_gstate_clip): Re-enable clipping rectangle. (_cairo_gstate_select_font) (_cairo_gstate_set_font): Set font matrix to identity. (_cairo_gstate_scale_font): Scale font matrix, not font. (_cairo_gstate_transform_font): Transform font matrix, not font. (_cairo_gstate_set_font_transform): Install as font matrix, not in font. (_build_font_scale): New helper function. (_cairo_gstate_text_to_glyphs): New function. (_cairo_gstate_current_font_extents) (_cairo_gstate_glyph_extents) (_cairo_gstate_show_glyphs) (_cairo_gstate_glyph_path): Rewrite using font matrix and size. (_cairo_gstate_text_path (_cairo_gstate_text_extents) (_cairo_gstate_show_text): Remove text-API code. * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Minor bug fix. (_cairo_xlib_surface_show_glyphs): New function. (_cairo_xlib_surface_backend): Add reference to new function. (glyphset_cache_t) (glyphset_cache_entry_t): New structure types. (_next_xlib_glyph): New helper function. (_xlib_glyphset_cache_create_value) (_xlib_glyphset_cache_destroy_cache) (_xlib_glyphset_cache_destroy_value) (_xlib_glyphset_cache_backend): New glyphset cache code. (_xlib_glyphset_caches) (_lock_xlib_glyphset_caches) (_unlock_xlib_glyphset_caches) (_get_glyphset_cache): New global glyphset cache. * src/cairo_glitz_surface.c (cairo_glitz_surface_backend): Add NULL entry for show_glyphs. * src/cairo_image_surface.c (cairo_image_surface_backend): Add NULL entry for show_glyphs. * src/cairo_ps_surface.c (cairo_ps_surface_backend): Add NULL entry for show_glyphs. * src/cairo_png_surface.c (cairo_png_surface_backend): Add NULL entry for show_glyphs. * src/cairo_xcb_surface.c (cairo_xcb_surface_backend): Add NULL entry for show_glyphs. * src/cairoint.h (cairo_cache_backend_t): New structure type. (cairo_cache_entry_base_t) (cairo_cache_arrangement_t) (cairo_cache_t): New structure types. (_cairo_cache_init) (_cairo_cache_reference) (_cairo_cache_destroy) (_cairo_cache_lookup) (_cairo_hash_string): New cache functions. (CAIRO_IMAGE_GLYPH_CACHE_MEMORY_DEFAULT) (CAIRO_XLIB_GLYPH_CACHE_MEMORY_DEFAULT) (CAIRO_FONT_CACHE_NUM_FONTS_DEFAULT) (CAIRO_FT_CACHE_NUM_FONTS_DEFAULT): New constants. (cairo_font_scale_t) (cairo_glyph_cache_key_t) (cairo_image_glyph_cache_entry_t): New structure types. (_cairo_lock_global_image_glyph_cache) (_cairo_unlock_global_image_glyph_cache) (_cairo_get_global_image_glyph_cache) (_cairo_glyph_cache_hash) (_cairo_glyph_cache_keys_equal): New functions for glyph caches. (cairo_font_backend_t): Remove text-API calls, add scale params, remove copy call. (cairo_surface_backend_t): Add show_glyphs entry. (cairo_glyph_surface_t) (cairo_glyph_surface_node_t): Remove old glyph cache structures. (cairo_unscaled_font_t): New structure type. (cairo_font): Remove glyph cache member, add pointer to unscaled. (cairo_gstate): Add font_matrix member, change to hold unscaled. (_cairo_gstate_set_font_transform) (_cairo_gstate_current_font_transform) (_cairo_gstate_text_to_glyphs): New functions. (_cairo_gstate_text_path (_cairo_gstate_text_extents) (_cairo_gstate_show_text) (_cairo_font_text_extents) (_cairo_font_text_bbox) (_cairo_font_show_text) (_cairo_font_text_path): Remove text-API code. (_cairo_font_glyph_extents) (_cairo_font_glyph_bbox) (_cairo_font_glyph_path) (_cairo_font_font_extents) (_cairo_font_show_glyphs): Add scale parameter. 2004-10-04 David Reveman * configure.in: Require version 0.2.3 of glitz. * src/cairo_glitz_surface.c: Do not use VBOs and PBOs for immediate mode drawing. 2004-09-30 Jamey Sharp * src/cairo_xcb_surface.c: Update for minor XCB API change. 2004-09-20 David Reveman * src/cairo_glitz_surface.c (_cairo_glitz_surface_create_similar): Make sure that only offscreen formats are picked. (_cairo_glitz_surface_create_similar): Only try to find offscreen multi-sample format if offscreen multi-sampling is supported. (_cairo_glitz_surface_create_similar): If we can't find a drawable format try to pick a non-drawable format. (_cairo_glitz_surface_composite): Mask clone should be in CAIRO_FORMAT_A8 format. 2004-09-15 David Reveman * src/cairo_glitz_surface.c (_cairo_glitz_surface_set_image): Do the scanline order conversion in cairo. (_cairo_glitz_surface_create_pattern): Pre-multiply gradient colors. (_cairo_glitz_surface_create_similar): Find similar formats correctly. 2004-09-12 David Reveman * src/cairo_glitz_surface.c (_cairo_glitz_surface_create_pattern): Pickup repeat setting when cloning surface. (_cairo_glitz_surface_create_pattern): cairo_surface_set_repeat likes to get a cairo_surface_t pointer not a cairo_glitz_surface_t pointer. (_cairo_glitz_surface_set_image): Get pixel masks from pixman image format. 2004-09-11 Carl Worth * autogen.sh: Require automake 1.6 rather than 1.7 since it seems to work just fine. 2004-09-11 David Reveman * configure.in: Require version 0.2.2 of glitz. * src/cairo_glitz_surface.c (_cairo_glitz_surface_create_pattern): 0.5 should no longer be added to gradient stop coordinates. * src/cairo.h: CAIRO_HAS_GL_SURFACE -> CAIRO_HAS_GLITZ_SURFACE. cairo_set_target_gl -> cairo_set_target_glitz. cairo_gl_surface_create -> cairo_glitz_surface_create. * src/cairo-features.h.in: GL_SURFACE_FEATURE -> GLITZ_SURFACE_FEATURE. * src/Makefile.am: CAIRO_HAS_GL_SURFACE -> CAIRO_HAS_GLITZ_SURFACE, libcairo_gl_sources -> libcairo_glitz_sources, cairo_gl_surface.c -> cairo_glitz_surface.c, GL_CFLAGS -> GLITZ_CFLAGS and GL_LIBS -> GLITZ_LIBS. * cairo.pc.in (Requires): GL_REQUIRES -> GLITZ_REQUIRES. * configure.in: Replaced the gl backend with the new glitz backend. Cairo now requires version 0.2.1 of glitz. 2004-09-04 Carl Worth * COPYING: * COPYING-MPL-1.1: * COPYING-LGPL-2.1: * src/cairo-features.h.in: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Add the MPL as a new license option, in addition to the LGPL. 2004-08-14 Carl Worth * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Make a copy of the region since pixman is currently taking ownership of it (ugh). Thanks to Vladimir Vukicevic and Peter Dennis Bartok . * autogen.sh (LANG): Explicitly set LANG=C to fix the awk string->number conversion for user with locales that don't match ASCII digit conventions. 2004-08-03 Carl Worth * src/cairo_gstate.c (extract_transformed_rectangle): Temporarily disable rectangle-based clipping optimization as it's not working (see cairo_snippets/xxx_clip_rectangle for a test case). 2004-08-02 Carl Worth * COPYING: * src/cairo-features.h.in: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Change from MIT license to LGPL. Fix to explicitly refer to GNU Lesser Public License 2.1 rather than the Library Public License version 2 or "any later version" * src/cairo_pattern.c: * src/cairo_gl_surface.c: Fix copyright attributions mistakenly attributed to University of Southern California rather than to David Reveman. * BUGS: Note that cairo_clip is fixed now. 2004-08-01 Øyvind Kolås * src/cairo.h: replaced ct with cr in public headers to keep usage consistent. 2004-07-24 Jamey Sharp * src/cairo_xcb_surface.c: Updating for XCB API change around iterators. 2004-07-20 David Reveman * src/cairo_gl_surface.c (_cairo_gl_surface_get_image): Use new pixel buffer interface. (_cairo_gl_surface_set_image): Use new pixel buffer interface. (_cairo_gl_surface_set_filter): Don't use convolution filter for gaussian filter type as we have no software fall-back. (_cairo_gl_surface_create_pattern): Color ranges now need a surface reference. Added new CAIRO_GL_SURFACE_IS_DRAWABLE macro. 2004-07-16 David Reveman * src/cairo_font.c (_cairo_font_copy): Fixed stupid typo. Added decleration of _cairo_glyph_cache_destroy. 2004-07-15 David Reveman * src/cairo_font.c (_cairo_font_copy): Destroy glyph cache created by font backend. 2004-07-11 Carl Worth * src/cairo_gstate.c (_cairo_gstate_init_clip): Don't call _cairo_surface_set_clip_region with a NULL surface. 2004-07-09 Carl Worth * src/cairo_gstate.c (_cairo_gstate_arc_dir): Fix numerical problem that could lead to infinite loops. 2004-07-09 Dave Beckett * autogen.sh: Require automake 1.7 (and thus aclocal 1.7) which requires autoconf 2.54. Changed since newer libtools may fail to work with older automake versions such as 1.4. I bet this will annoy people with older tool chains :( 2004-07-05 Carl Worth * src/cairo.c (CAIRO_CHECK_SANITY): Remove errant semicolon from macro definition. 2004-06-21 David Reveman * configure.in: Require glitz >= 0.1.5. * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Use correct source offset when creating clip surface. * src/cairo_gl_surface.c (_cairo_gl_surface_get_image): Use glitz's new pixel interface. (_cairo_gl_surface_set_image): Use glitz's new pixel interface. (_cairo_gl_surface_create_similar): First try to create a drawable surface and if that fails, create a read only surface. (_cairo_gl_surface_create_similar): Glitz now handles inheritance of anti-aliasing hints, so it can be removed from here. (_cairo_gl_surface_create_pattern): Temporary fix for gradients. 2004-06-16 Keith Packard * src/cairo_xcb_surface.c: (bytes_per_line), (_cairo_xcb_surface_set_image): Fix image data length computation (XCB doesn't do this part). 2004-06-11 David Reveman * configure.in: Require glitz 0.1.4. * src/cairo_gl_surface.c: Added CAIRO_GL_SURFACE_MULTISAMPLE macro. (_cairo_gl_extract_rectangle): Added _cairo_gl_extract_rectangle. (_cairo_gl_surface_composite_trapezoids): Use fill_rectangles if we can represent the traps as a rectangle. fill_trapezoids cannot be used with software multi-sampling. (CAIRO_GL_COMPOSITE_TRAPEZOIDS_SUPPORT): Glitz can no longer composite trapezoids just by using offscreen drawing. (_cairo_gl_surface_create_similar): Inherit anti-aliasing properties. * src/cairo_gstate.c (_cairo_gstate_create_pattern): Get solid color from color stop components. * src/cairoint.h: Removed cairo color from color stop. * src/cairo_pattern.c: Added MULTIPLY_COLORCOMP macro. (cairo_pattern_add_color_stop): Do not pre-multiply stop color. (_cairo_pattern_calc_color_at_pixel): Multiply with alpha. 2004-05-28 Carl Worth * These two fixes are from David Reveman : * src/cairo_surface.c (_cairo_surface_create_similar_scratch) (_cairo_surface_create_similar_solid): Move NULL test from create_similar_scratch to create_similar_solid. * src/cairo_font.c (_cairo_glyph_surface_init): Fix for when surface->backend != image->backend, but the backend does use images for similar surfaces. 2004-05-28 Keith Packard * configure.in: * src/Makefile.am: Add WARN_CFLAGS, autodetection for 64/128 bit ints and cairo_wideint.[ch] * src/cairo_gstate.c: (_cairo_gstate_show_glyphs): Check status return from _cairo_gstate_glyph_extents * src/cairo_pattern.c: (_cairo_image_data_set_radial), (_cairo_pattern_get_image): * src/cairo_png_surface.c: (_cairo_png_surface_copy_page): * src/cairo_surface.c: (_cairo_surface_composite): Quiet compiler warnings about uninitialized variables * src/cairo_traps.c: (_det16_32), (_det32_64), (_fixed_16_16_to_fixed_32_32), (_line_segs_intersect_ceil): Switch to alternate exact line intersection code. * src/cairo_wideint.c: (_cairo_uint64_divrem), (_cairo_uint32_to_uint64), (_cairo_int32_to_int64), (_cairo_uint32s_to_uint64), (_cairo_uint64_add), (_cairo_uint64_sub), (_cairo_uint32x32_64_mul), (_cairo_uint64_mul), (_cairo_uint64_lsl), (_cairo_uint64_rsl), (_cairo_uint64_rsa), (_cairo_uint64_lt), (_cairo_uint64_eq), (_cairo_int64_lt), (_cairo_uint64_not), (_cairo_uint64_negate), (_cairo_leading_zeros32), (_cairo_uint64x32_normalized_divrem), (_cairo_int64_divrem), (_cairo_uint128_divrem), (_cairo_uint32_to_uint128), (_cairo_int32_to_int128), (_cairo_uint64_to_uint128), (_cairo_int64_to_int128), (_cairo_uint128_add), (_cairo_uint128_sub), (uint64_lo), (uint64_hi), (uint64_shift32), (_cairo_uint64x64_128_mul), (_cairo_uint128_mul), (_cairo_uint128_lsl), (_cairo_uint128_rsl), (_cairo_uint128_rsa), (_cairo_uint128_lt), (_cairo_int128_lt), (_cairo_uint128_eq), (_cairo_uint128x64_normalized_divrem), (_cairo_leading_zeros64), (_cairo_int128_negate), (_cairo_int128_not), (_cairo_int128_divrem): * src/cairo_wideint.h: Add 64/128-bit wide integer arithmetic. * src/cairoint.h: Switch to stdint.h types (and new wide types). 2004-05-24 David Reveman * src/cairo.c (cairo_restore): Moved CAIRO_CHECK_SANITY below declarations. (cairo_current_font): Moved CAIRO_CHECK_SANITY below declarations. * src/cairoint.h: Added cairo_glyph_size_t, cairo_glyph_surface_t, cairo_glyph_surface_node_t and cairo_glyph_cache_t. Added font backend functions text_bbox, glyph_bbox and create_glyph. Added source offset parameter to show_text and show_glyphs. Added drawable parameter to backend function create_similar. cairo_font_t now contains a glyph_cache pointer. Added _cairo_font_text_bbox, _cairo_font_glyph_bbox, _cairo_font_lookup_glyph and _cairo_surface_create_similar_scratch. * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_similar): (_cairo_xlib_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_xcb_surface.c (_cairo_xcb_surface_create_similar): (_cairo_xcb_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_surface.c: Added _cairo_surface_create_similar_scratch. Added drawable parameter to backend function create_similar. * src/cairo_ps_surface.c (_cairo_ps_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_png_surface.c (_cairo_png_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_image_surface.c (_cairo_image_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_gstate.c (_cairo_gstate_show_text): Use new text bounding box function. Pass pattern source offset to show_text. (_cairo_gstate_show_glyphs): Use new text bounding box function. Pass pattern source offset to show_glyps. * src/cairo_gl_surface.c (_cairo_gl_surface_create_similar): Added drawable parameter to backend function create_similar. Use glitz's new create similar interface. Support for read-only surfaces. (_cairo_gl_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_ft_font.c: Use new glyph caching system. Added bounding box font backend functions. * src/cairo_font.c: Added glyph caching system. Added bounding box font backend functions. (_cairo_font_init): Create new glyph cache. (_cairo_font_copy): Take a reference to other fonts glyph cache. (_cairo_font_show_text): (_cairo_font_show_glyphs): Handle source offset. (cairo_font_destroy): Destroy glyph cache. 2004-05-20 Graydon Hoare * configure.in: Add sanity checking feature configury. * src/cairo-features.h.in: Add sanity checking feature. * src/cairo.c: Add sanity checking. * src/cairoint.h: Add prototypes. * src/cairo_fixed.c (_cairo_fixed_is_integer): (_cairo_fixed_integer_part): New functions. * src/cairo_matrix.c (_cairo_matrix_is_integer_translation): New function. * src/cairo_gstate.c (extract_transformed_rectangle): Use fixed functions. (_cairo_gstate_clip): Arithmetic fixes. (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Corrections to clipping. * src/cairo_xlib_surface.c (_cairo_xlib_surface_composite): Add XCopyArea fast path. (_cairo_xlib_surface_set_clip_region): Drive clip to drawable. 2004-05-17 Carl Worth * src/cairo.c (cairo_show_text): Do nothing when passed a NULL string. 2004-05-11 Øyvind Kolås * src/cairoint.h : changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients easier. 2004-05-11 David Reveman * src/cairo_pattern.c (_cairo_pattern_get_image): Removed pattern_offset. * src/cairo_surface.c (_cairo_surface_create_pattern): Removed pattern_offset. * src/cairo_gstate.c: Removed pattern_offset. * src/cairoint.h: Removed pattern_offset. 2004-05-11 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.1.23. * NEWS: Added notes for snapshot 0.1.23. * RELEASING: Add reminder to mention incompatible API changes in NEWS. Re-order steps to avoid clobbering pre-existing tar files. 2004-05-11 Carl Worth * BUGS: Several people have reported that cairo_clip is not working right now. And it's always been slow. 2004-05-11 David Reveman * configure.in: Require glitz 0.1.2. * src/cairo_gl_surface.c: Added opacity attribute. Fixed broken CAIRO_GL_COMPOSITE_TRAPEZOIDS_SUPPORT macro. (_cairo_gl_surface_composite_trapezoids): Use polygon opacity. (_cairo_gl_surface_create_pattern): Added surface pattern support. (_cairo_gl_surface_create): Initialize opacity to 0xffff. 2004-05-07 Carl Worth * src/cairo_ft_font.c (_utf8_to_ucs4): Bail on NULL utf8 string. * src/cairo_spline.c (_cairo_spline_add_point): Don't add two consecutive, identical points when decomposing the spline, (which was leading to an infinte loop in the stroke algorithm when it found a slope of (0,0)). 2004-05-04 Carl Worth * src/cairo_png_surface.c (cairo_png_surface_create): Move all libpng-related code into copy_page. (unpremultiply_data): Add missing unpremultiply step. (_cairo_png_surface_copy_page): Move PNG output to copy_page. Add support for A8 and A1 images. Remove time from header (we may want to add it again later, but for now it messes up my test suite). (_cairo_png_surface_destroy): Call copy_page if it hasn't been called already. (_cairo_png_surface_show_page): Add implementation. (_cairo_png_surface_copy_page): Don't close a file we didn't open. 2004-05-04 David Reveman * src/cairo_pattern.c (_cairo_image_data_set_radial): Corrected some confusing comments about the math used for radial gradients. 2004-05-01 David Reveman * src/cairo_gl_surface.c (_cairo_gl_surface_create_pattern): cairo_surface_t pointer to cairo_surface_set_matrix. 2004-04-29 Carl Worth * src/cairo_gstate.c (_cairo_gstate_set_pattern): Don't set pattern_offset by the current point. Perhaps we can eliminate pattern_offset altogether now? 2004-04-30 David Reveman * src/cairoint.h: Radial patterns only store radius per circle. Only inverse CTM to _cairo_pattern_transform. * src/cairo_pattern.c (cairo_pattern_create_radial): Only one radius per circle now. (_cairo_pattern_transform): A matrix multiplication with inverse CTM is all that's needed here. (_cairo_pattern_calc_color_at_pixel): Fixed extend type reflect. (_cairo_image_data_set_linear): New linear gradient code. Transformation of linear gradient is now handled correctly. (_cairo_image_data_set_radial): New radial gradient code. Inner circle is now used for creating radial gradients. Transformation of radial gradient is now handled correctly. (_cairo_pattern_get_image): Fixed handling of pattern offset. * src/cairo_gstate.c (_cairo_gstate_create_pattern): All pattern types are transformed using inverse CTM. * src/cairo_gl_surface.c (_cairo_gl_surface_create_pattern): Updated to use glitz's new linear and radial gradients. * configure.in: Require glitz 0.1.1. 2004-04-28 David Reveman * src/cairo_gl_surface.c: Added CAIRO_GL_MULTITEXTURE_SUPPORT and CAIRO_GL_SURFACE_IS_SOLID macros. (_cairo_gl_surface_get_image): Simpler way for calculating rowstride. (_cairo_gl_surface_composite): Support compositing with mask surface when mask is solid or multi-texturing is available. 2004-04-25 David Reveman * src/cairo_gl_surface.c (_cairo_gl_surface_set_clip_region): Fixed conversion of pixman_box16_t to glitz_rectangle_t. * src/cairoint.h: Added scale factor value to cairo_color_stop_t. Added cairo_shader_function_t and cairo_shader_op_t. * src/cairo_surface.c (_cairo_surface_create_pattern): Fixed point updates. * src/cairo_pattern.c (cairo_pattern_create_radial): Use absolute value of radius parameters. (cairo_pattern_add_color_stop): Precalculate scale factors and convert offset to fixed point value. (_cairo_image_data_set_radial): (_cairo_image_data_set_linear): Initialize and use shading operator. (_cairo_pattern_get_image): Fixed point updates. (_cairo_pattern_shader_nearest): (_cairo_pattern_shader_linear): (_cairo_pattern_shader_gaussian): (_cairo_pattern_calc_color_at_pixel): Converted shading routines to use fixed point values and introduced a shading operator structure for more efficient shading calculations. Added _cairo_pattern_shader_init function. * src/cairo_gl_surface.c (_cairo_gl_surface_composite): (_cairo_gl_surface_fill_rectangles): (_cairo_gl_surface_composite_trapezoids): Make sure that target surface is OK. (_cairo_gl_create_color_range): Initialize and use shading operator. (_cairo_gl_surface_create_pattern): (_cairo_gl_surface_set_clip_region): Fixed point updates. 2004-04-23 Carl Worth * src/cairoint.h: * src/cairo_surface.c (_cairo_surface_composite): * src/cairo_gstate.c (_cairo_gstate_current_fill_rule): Fixed several function prototype mismatches between internal header file and implementation (thanks to Carlos Romero and gcc-3.4). 2004-04-22 David Reveman * src/cairoint.h: * src/cairo_surface.c (_cairo_surface_create_pattern): * src/cairo_pattern.c (_cairo_pattern_set_source_offset) (_cairo_pattern_get_image): * src/cairo_gstate.c (_cairo_gstate_create_pattern): * src/cairo_gl_surface.c (_cairo_gl_surface_create_pattern): Fixed pattern source offset. 2004-04-20 David Reveman * src/cairo_pattern.c (_cairo_image_data_set_linear): Use CAIRO_MAXSHORT instead of INT_MAX. * src/cairo_traps.c (_cairo_traps_extents): Use CAIRO_MAXSHORT and CAIRO_MINSHORT instead of SHRT_MAX and SHRT_MIN. * src/cairoint.h: including limits.h and defining CAIRO_MAXSHORT and CAIRO_MINSHORT. 2004-04-16 Carl Worth * NEWS: Added notes for snapshot 0.1.22. * configure.in: Now depends on libpixman 0.1.1. Bump version to 0.1.22. * src/cairo_image_surface.c (_create_pixman_format): Track pixman fixes to PIXMAN_FORMAT_NAME_*. * src/cairo_png_surface.c (cairo_png_surface_create): Explicitly add cases for all enum values to eliminate compiler warnings. * src/cairo.h: Remove proposal for surface_clip interface as cairo_clip should be able to cover this case now. * BUGS: Added bug concerning negative ref_counts. 2004-04-09 David Reveman * NEWS: Added notes for snapshot 0.1.21. * configure.in: Bump version to 0.1.21. * src/cairo_surface.c (_cairo_surface_create_pattern): * src/cairo_pattern.c (_cairo_pattern_get_image): Fixed incorrect rounding of pattern image size. * AUTHORS: Added myself to the AUTHORS file. * cairo.pc.in: * src/Makefile.am: * src/cairo-features.h.in: * src/cairo.h: * src/cairo_gl_surface.c (added): Added OpenGL surface backend. * configure.in: Automatically detect available backends. 2004-04-06 Carl Worth * NEWS: Added notes for snapshot 0.1.20. * RELEASING: Added new RELEASING file. 2004-04-04 David Reveman * src/cairoint.h: Added create_pattern backend function and pattern prototypes. * src/cairo_xlib_surface.c: Added _cairo_xlib_surface_create_pattern. * src/cairo_xcb_surface.c: Added _cairo_xcb_surface_create_pattern. * src/cairo_traps.c: Added _cairo_trap_extents and _cairo_traps_extents. * src/cairo_surface.c: Added _cairo_surface_create_pattern. * src/cairo_ps_surface.c: Added _cairo_ps_surface_create_pattern. * src/cairo_png_surface.c: Added _cairo_png_surface_create_pattern. * src/cairo_pattern.c (added): All functions needed for the new pattern API. * src/cairo_image_surface.c: Added _cairo_image_abstract_surface_create_pattern. * src/cairo_gstate.c (_cairo_gstate_init): Create solid pattern and set alpha to 0.0. (_cairo_gstate_init_copy): Increment pattern references. (_cairo_gstate_fini): Destroy pattern. (_cairo_gstate_set_pattern): Destroy current pattern, increment references to the new pattern and update pattern offset with the current point. (_cairo_gstate_set_rgb_color): Destroy current pattern and create a new solid pattern. (_cairo_gstate_current_rgb_color): Get RGB from current pattern. (_cairo_gstate_set_alpha): Set gstate->alpha without modifying the current pattern. (_cairo_gstate_stroke): (_cairo_gstate_fill): Removed surface matrix computations as they are now handled by _cairo_gstate_create_pattern. (_cairo_gstate_clip_and_composite_trapezoids): Create a possibly backend accelerated pattern source and use it for compositing trapezoids. (_cairo_gstate_clip): Allow backends to not support rectangular clipping regions. Use solid pattern for creating clip surface. (_cairo_gstate_show_surface): Use solid pattern for alpha mask. (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Use current pattern when compositing glyphs. Added _cairo_gstate_current_pattern and _cairo_gstate_create_pattern, _cairo_gstate_stroke_extents, _cairo_gstate_fill_extents. Removed restore_text_rendering_context, setup_text_rendering_context, _cairo_gstate_ensure_source. * src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Advance source offset. * src/cairo.h: Added cairo_current_pattern, cairo_pattern_create_for_surface, cairo_pattern_create_linear, cairo_pattern_create_radial, cairo_pattern_reference, cairo_pattern_destroy, cairo_pattern_add_color_stop, cairo_pattern_set_matrix, cairo_pattern_get_matrix, cairo_pattern_set_extend, cairo_pattern_get_extend, cairo_pattern_set_filter, cairo_pattern_get_filter. cairo_set_pattern now takes a cairo_pattern_t pointer instead of a cairo_surface_t pointer. Added CAIRO_FILTER_GAUSSIAN filter type. Added cairo_extend_t enum. * src/cairo.c: _cairo_restrict_value declared not static as it's used in cairo_pattern.c. Added rectangular extents functions cairo_stroke_extents and cairo_fill_extents. cairo_set_pattern now takes a cairo_pattern_t pointer instead of a cairo_surface_t pointer. Added cairo_current_pattern function. * src/Makefile.am (libcairo_la_LIBADD): Removed -lz and added PS_LIBS. * configure.in: Bump version to 0.1.20. Includes new pattern API. Removed an extra AC_SUBST(XRENDER_LIBS). PS_SURFACE_LIBS -> PS_LIBS. * cairo.pc.in: PS_SURFACE_LIBS -> PS_LIBS. 2004-04-02 Carl Worth * src/cairo.h: Move weight after slant to match the order in cairo_select_font. * TODO: Added notes on DPI for image-based backends and on proposal for new cairo_text_glyphs function. * BUGS: Added BUG about cairo_show_text not advancing the current point. 2004-03-30 Carl Worth * src/Makefile.am (libcairo_la_LIBADD): Add -lz. 2004-03-30 Carl Worth * configure.in: Add checks for Xrender.h in xrender.pc is not found. Remove AC_HELP_STRING to be compatible with older versions of autoconf (thanks to Bill Spitzak ). * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Add question on semantics with empty region. Fix missing return value. * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Export for internal use. (_cairo_image_abstract_surface_set_clip_region): Add silly wrapper to match the backend interface. * src/cairo_gstate.c (_cairo_gstate_init_clip): Remove unused variables. * src/cairo.h: Add proposal for cairo_xlib_surface_set_size. * BUGS: Added note about problem with cairo_scale_font. 2004-03-23 Olivier Andrieu * src/cairo_ps_surface.c (_cairo_ps_surface_set_clip_region) * src/cairo_png_surface.c (_cairo_png_surface_set_clip_region): Implement _set_clip_region by delegating it to the image backend. * src/cairo_xcb_surface.c (_cairo_xcb_surface_set_clip_region): Add a stub. * src/cairo.h: Add missing (?) cairo_init_clip 2004-03-20 Dave Beckett * configure.in: Move the PNG_CFLAGS/_LIBS substitutes outside the conditional, to match what is already done for XCB. Do the same for XRENDER_CFLAGS/LIBS. * configure.in: Substitute PNG_CFLAGS, PNG_LIBS on the configure path when use_png is not enabled to prevent the substituions being undefined. 2004-03-19 Graydon Hoare * src/cairo.c (cairo_init_clip): Add. * src/cairo_gstate.c: Initialize, finalize and copy clip.region. Detect rectangular clips and push down to backend. * src/cairoint.h (cairo_surface_backend_t): Add set_clip_region slot. (cairo_clip_rec_t): Add region slot. (_cairo_gstate_init_clip) (_cairo_surface_set_clip_region): Prototype. * src/cairo_surface.c (_cairo_surface_set_clip_region): Add. * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Add. * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Add. * src/cairo_ps_surface.c (_cairo_ps_surface_set_clip_region): Stub, not implemented. 2004-03-16 Jamey Sharp * src/cairo.h: * src/cairo_xcb_surface.c: Updated for XCB typename renaming. The Xlib and XCB surfaces can be compiled in the same library now. * src/cairo_surface.c: Initialize the surface's filter value. 2004-02-26 Carl Worth * AUTHORS: Add Jordi and Olivier to the AUTHORS file. * src/cairo_ft_font.c (_utf8_to_ucs4): Fix broken return value for nchars (thanks to Jordi Mas ). 2004-02-24 Olivier Andrieu * src/cairo.h: * src/cairo-features.h.in: * src/cairo_png_surface.c: Add PNG backend (cairo_set_target_png and cairo_png_surface_create). * cairo.pc.in: * configure.in: autoconf support for the PNG backend. Bump version to 0.1.19. * src/Makefile.am: PNG backend support, removed references to X_LIBS and X_CFLAGS. 2004-02-24 Carl Worth * AUTHORS: Add attribution for many people who have made generous contributions to cairo. This list was generated by sifting through the ChangeLog. Please let me know if I have missed anyone. * NEWS: Add some historical notes on cairo development, prior to when we began to maintain this NEWS file. * README (http): Add pointer to cairographics.org. Fix to use "cairo" rather than "Cairo" when not at the beginning of a sentence. * TODO: Remove cairo_current_path, cairo_current_path_flat, cairo_text_extents, cairo_glyph_extents, cairo_text_path, and cairo_glyph_path from the TODO list as they have all been implemented now. 2004-02-17 Carl Worth * src/cairo.h: Add comment indication cairo_copy will be going away at some point. Some indentation fixes. * configure.in: Bump version to 0.1.18. Includes new functions cairo_current_path, cairo_current_path_flat, cairo_surface_get_filter. Support for XCB backend. Fixes for building in cygwin. Adds cairo_surface_get_filter. * src/cairo.h: * src/cairo.c (cairo_current_path): (cairo_current_path_flat): Add new path query functions. * src/cairo_gstate.c (_gpi_move_to): (_gpi_line_to): (_gpi_curve_to): (_gpi_close_path): (_cairo_gstate_interpret_path): Implement support for cairo_current_path and cairo_current_path_flat. These functions just provide an interface to _cairo_path_interpret and take care of mapping from device space back to user space. 2004-02-13 Carl Worth * TODO: Add some notes from JG's TODO list on the wiki: http://cairographics.org/CairoToDoList. (Also testing automated mailing to cairo-commit list). 2004-02-12 Carl Worth * src/cairo.h: Add typedefs for new callbacks to be used by cairo_current_path: cairo_move_to_func, cairo_line_to_func, cairo_curve_to_func, and cairo_close_path_func. * src/cairoint.h: cairo_path.last_move_point and cairo_path.current_point are now fixed-point not doubles for consistency. * src/cairo_path.c (_cairo_path_interpret): Now accept 4 explicit function pointers rather than a structure. Eliminate unnecessary done_path callback. * src/cairo_path_bounds.c (_cairo_path_bounds): * src/cairo_path_stroke.c (_cairo_path_stroke_to_traps): * src/cairo_path_fill.c (_cairo_path_fill_to_traps): Track change in _cairo_path_interpret. Code previously in done_path callback is now here immediately after call to _cairo_path_interpret. * src/cairo_path.c (_cairo_path_move_to): (_cairo_path_rel_move_to): (_cairo_path_line_to): (_cairo_path_rel_line_to): (_cairo_path_curve_to): (_cairo_path_rel_curve_to): (_cairo_path_current_point): Internal _cairo_path API modified to accept fixed-point data everywhere. Much cleaner this way. * src/cairo_gstate.c (_cairo_gstate_move_to): (_cairo_gstate_line_to): (_cairo_gstate_curve_to): (_cairo_gstate_rel_move_to): (_cairo_gstate_rel_line_to): (_cairo_gstate_rel_curve_to): (_cairo_gstate_current_point): (_cairo_gstate_show_text): (_cairo_gstate_text_path): Have to convert doubles to fixed-point to track changes in _cairo_path API. * src/cairo_ft_font.c (_move_to, _line_to, _conic_to, _cubic_to): Keep data in fixed-point rather than going through intermediate doubles. Track changes in _cairo_path API. * src/cairo_fixed.c (_cairo_fixed_from_26_6): New function to help when working with freetype. 2004-02-02 Jamey Sharp * configure.in: * src/Makefile.am: * src/cairo-features.h.in: * src/cairo.h: * src/cairo_xcb_surface.c (added): Ported the Xlib surface backend to XCB. 2004-02-02 Graydon Hoare * src/cairo_xlib_surface.c (CAIRO_SURFACE_RENDER_HAS_FILTERS): New predicate. (_cairo_xlib_surface_set_filter): Skip filterless servers. (_cairo_xlib_surface_clone_similar): Fix typo. 2004-01-27 Graydon Hoare * src/cairoint.h (cairo_surface): New "filter" field. * src/cairo_surface.c (cairo_surface_get_filter): New function. (cairo_surface_set_filter): Store filter in surface. * src/cairo.h (cairo_surface_get_filter): Declare. * src/cairo_xlib_surface.c (_cairo_xlib_surface_clone_similar): Copy filter setting. (_cairo_xlib_surface_set_filter): Use constants from Xrender.h 2004-01-24 Carl Worth * src/cairo_path_stroke.c (_cairo_stroker_add_sub_edge): Fix to use tessellate_polygon instead of tessellate_rectangle as the matrix may have skewed the coordinates into a non-rectangular shape. * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_filter): Add missing break statements to switch. 2004-01-22 Richard D. Worth * src/Makefile.am: Add '-no-undefined' to end of libcairo_la_LDFLAGS to enable building shared library under cygwin. * src/cairo.h: Remove all 'extern ' and ' __external_linkage' (macro for __declspec(dllexport) and __declspec(dllimport)) from function declarations. These are no longer needed for cygwin. * src/cairo_traps.c: Changed type of _line_segs_intersect_ceil from 'static cairo_fixed_t' to 'static int' to match definition. This was necessary to compile under cygwin. 2003-12-17 Carl Worth * src/cairo.h: Remove trailing commas from enums, (some compilers like to complain about them). 2003-12-16 Dave Beckett * README: Do not require libpixregion, libic. 2003-12-16 Carl Worth * NEWS: Add more notes culled from the ChangeLog. 2003-12-16 Carl Worth * NEWS: Begin maintaining NEWS file. Add notes on 0.1.17. * configure.in: Bump version to 0.1.17 for new functions: cairo_text_extents, cairo_glyph_extents, cairo_text_path, cairo_glyph_path. * src/cairo.h: * src/cairo.c (cairo_text_path): (cairo_glyph_path): Re-enable cairo_text_path and cairo_glyph_path. * src/cairo_gstate.c (_cairo_gstate_glyph_path): Add missing transformation. * src/cairo_ft_font.c (_move_to): (_line_to): (_conic_to): (_cubic_to): (_cairo_ft_font_glyph_path): Initial implementation of glyph_path. 2003-12-16 Carl Worth * src/cairoint.h: Move all current_point state fields from cairo_gstate_t to cairo_path_t. * src/cairo_path.c (_cairo_path_init): (_cairo_path_init_copy): (_cairo_path_fini): (_cairo_path_move_to): (_cairo_path_line_to): (_cairo_path_curve_to): (_cairo_path_close_path): Add current_point state. (_cairo_path_current_point): New function. (_cairo_path_rel_move_to): (_cairo_path_rel_line_to): (_cairo_path_rel_curve_to): New functions. * src/cairo_gstate.c (_cairo_gstate_init): (_cairo_gstate_new_path): (_cairo_gstate_move_to): (_cairo_gstate_line_to): (_cairo_gstate_curve_to): (_cairo_gstate_rel_move_to): (_cairo_gstate_rel_line_to): (_cairo_gstate_rel_curve_to): (_cairo_gstate_close_path): (_cairo_gstate_current_point): Eliminate current_point state. (_cairo_gstate_show_text): (_cairo_gstate_text_path): Use new _cairo_path_current_point. 2003-12-16 Carl Worth * src/cairo_ft_font.c (_cairo_ft_font_glyph_path): (_cairo_ft_font_text_path): A couple of changes missed in the last batch of commits (reordering so that path is final argument). * src/cairoint.h: Change cairo_font_backend_t to use a void * for the abstract font. Put create, copy, and destroy as the first functions in the list. Fix text_path and glyph_path so that the path to be returned is the last argument. Add x,y arguments to text_path. * src/cairo_gstate.c (_cairo_gstate_text_path): Compute x,y now needed by cairo_font_text_path. (_cairo_gstate_glyph_path): Track change in cairo_font_text/glyph_path (path argument is now last). * src/cairo_ft_font.c: Switch to new macro-based mechanism for including freetype headers. (cairo_ft_font_face): (cairo_ft_font_pattern): Minor cleanup. (_cairo_ft_font_copy): (_cairo_ft_font_destroy): (_utf8_to_glyphs): (_cairo_ft_font_font_extents): (_cairo_ft_font_glyph_extents): (_cairo_ft_font_text_extents): (_cairo_ft_font_show_glyphs): (_cairo_ft_font_show_text): Track changes to cairo_font_backend_t interface. * src/cairo_font.c (_cairo_font_text_path): (_cairo_font_glyph_path): Track changes to cairo_font_backend_t interface. 2003-12-16 Carl Worth * TODO: Change instances of Cairo to cairo where necessary. Add note about broken dashing on splines. 2003-12-15 Carl Worth * src/cairo_gstate.c (_cairo_gstate_text_extents): (_cairo_gstate_glyph_extents): * src/cairo_ft_font.c (_cairo_ft_font_glyph_extents): (_cairo_ft_font_glyph_extents): * src/cairo.h: Rename cairo_text_exextents_t fields: left_side_bearing -> x_bearing ascent -> y_bearing right_side_bearing (replaced by) width descent (replaced by) height 2003-12-15 Carl Worth * src/cairo_gstate.c (_cairo_gstate_text_extents): (_cairo_gstate_glyph_extents): Need to divide out the scale factor to return user-space extents. (_cairo_gstate_glyph_extents): Don't transform glyph locations as they're not relevant to extents. * src/cairo_ft_font.c (_cairo_ft_font_font_extents): Clean up implementation. (_cairo_ft_font_glyph_extents): Initial implementation. Thanks to John Ellson for most of the work on this function. (_cairo_ft_font_show_text): Clean to use num_glyphs not nglyphs. * src/cairo.h: * src/cairo.c (cairo_text_extents): (cairo_glyph_extents): Re-enable cairo_text/glyph_extents. 2003-12-15 Carl Worth * src/cairo_matrix.c (_cairo_matrix_compute_scale_factors): Move this function from cairo_ft_font.c (_get_scale_factors). * src/cairo_ft_font.c (DOUBLE_TO_16_16): Fix minor errors in fixed/floating-point conversion. * src/cairoint.h: font->show_glyphs no longer accepts an offset point. * src/cairo_ft_font.c (_utf8_to_glyphs): (_cairo_ft_font_text_extents): (_cairo_ft_font_show_text): (_cairo_ft_font_text_path): _utf8_to_glyphs now accepts a point by which each glyph should be offset. (cairo_ft_font_backend): Remove evil void * casts on function pointers. * src/cairo_font.c (_cairo_font_show_glyphs): Fix to not require a current point. * src/cairo_gstate.c (_cairo_gstate_show_text): (setup_text_rendering_context): Move initialization of current device-space point from setup_text_rendering_context to _cairo_gstate_show_text. (_cairo_gstate_show_glyphs): Fix to not reference current point. 2003-12-12 Dave Beckett * src/Makefile.am: Add compatibility defines FONTCONFIG_LIBS, X_LIBS, XRENDER_LIBS to keep automake happy - they look like automake variable names. 2003-12-12 Carl Worth * src/cairo_font.c (_cairo_font_create): Add comment about building in a font. * src/cairo_ft_font.c (_cairo_ft_font_create): Check for NULL return value from cairo_ft_font_create. * src/cairo.h: * src/cairo-features.h.in: * src/Makefile.am (libcairo_ps_sources): Add conditionals for ps_surface functions, etc. * configure.in: Get rid of AC_PATH_XTRA. Instead, find X includes/libraries only via pkg-config xrender. Switch option from --without-x to --disable-xlib Add option --disable-ps * cairo.pc.in (Libs): Add -lz only if ps_surface backend is compiled. * src/cairo.h (__external_linkage): Add missing definitions from slim_import.h. 2003-12-11 Carl Worth * src/cairoint.h: Rename surface->ic_image to surface->pixman_image. * src/cairo_image_surface.c (_cairo_image_surface_create_for_pixman_image): (_cairo_image_surface_create_with_masks): (_create_pixman_format): (cairo_image_surface_create): (cairo_image_surface_create_for_data): (_cairo_image_abstract_surface_destroy): (_cairo_image_surface_set_matrix): (_cairo_image_surface_set_filter): (_cairo_image_surface_set_repeat): (_pixman_operator): (_cairo_image_surface_fill_rectangles): (_cairo_image_surface_composite_trapezoids): Rename functions and indentifiers with ic_ in the name that were missed by the recent renaming. Fix indentation problems left by the recent renaming. * Shift everything over from libic/libpixregion/slim to libpixman. Many thanks to Dave Beckett for all of the heavy lifting with this renaming effort. * src/cairoint.h (slim_hidden_proto1): Directly fold in slim stuff rather than depending on it from an external package. * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): * src/cairo_image_surface.c: Switch from libic to libpixman. * src/cairo.h: Include pixman.h not ic.h. (__external_linkage): Directly fold in slim stuff rather than depending on it from an external package. * configure.in (PKG_CHECK_MODULES): * cairo.pc.in (Requires): Look for libpixman instead of libic and slim. 2003-12-11 Andrew Chant * cairo_select_font: _cairo_font_create: _cairo_ft_font_create: _cairo_gstate_select_font: change char * family to const char * family 2003-12-11 Carl Worth * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_image): Replace mysterious image->depth == 32 ? 24 : image->depth with simply image->depth. 2003-12-11 Carl Worth * cairo.pc.in (Requires): * configure.in: Add xrender to cairo.pc Renders line if needed. 2003-12-11 Carl Worth * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Fix to use shifts and masks for endianness-correct PS image generation. Rename bgr to rgb now that the byte order issues are clear. 2003-12-08 Carl Worth * src/cairo_path_bounds.c (_cairo_path_bounder_move_to): (_cairo_path_bounder_line_to): (_cairo_path_bounder_curve_to): (_cairo_path_bounder_close_path): Track change in cairo_path_callbacks interface. * src/cairoint.h: * src/cairo_path_stroke.c: * src/cairo_path_fill.c: * src/cairo_path.c: Clean up cairo_path_callbacks to have move_to, line_to, curve_to, abd close_path instead of add_edge, add_spline, and done_sub_path. Much, much nicer. * src/cairo_polygon.c (_cairo_polygon_move_to): Provide cairo_polygon_move_to and cairo_polygon_line_to instead of cairo_polygon_add_point. * src/cairo_pen.c (_cairo_pen_stroke_spline_half): Track change in cairo_polygon interface. 2003-12-08 Carl Worth * configure.in: Bump version to 0.1.16 since it actually has a hope of building, (due to fix for broken cairo-xlib.h includes). 2003-12-05 Carl Worth * src/cairo_xlib_surface.c: Don't include obsolete cairo-xlib.h. * autogen.sh (AUTOCONF): Allow names of all autofoo programs to be overridden via environment variables. * configure.in: Bump version to 0.1.15 for new CAIRO_HAS_XLIB_SURFACE macro. * src/cairo.h: Add missing #include * Rename cairo-config.h to cairo-features.h. * configure.in: Rename XLIB_BACKEND_DEFINE to XLIB_SURFACE_FEATURE. Rename AM_CONDITIONAL HAVE_XLIB_BACKEND to CAIRO_HAS_XLIB_SURFACE. Rename user-visibile macro CAIRO_HAS_XLIB_BACKEND to CAIRO_HAS_XLIB_SURFACE. 2003-12-03 Carl Worth * configure.in: Bumped version to 0.1.14 to indicate dropped cairo-xlib.h and new cairo-config.h. * New support for "./configure --without-x" to compile without the xlib backend. Many thanks to Sasha V. . * configure.in: We do three things here: Make the pkg-config check for xrender conditional, set XLIB_BACKEND_DEFINE to either CAIRO_HAS_XLIB_BACKEND or CAIRO_HAS_NO_XLIB_BACKEND to be substituted into cairo-config.h, and set an AM_CONDITIONAL for HAVE_XLIB_BACKEND to enable conditional compilation of cairo_xlib_surface.c. Perhaps that could be simplified a tad, but it's what we have working now. Also split up various PKG_CHECK_MODULES into separate checks. * src/cairo_gstate.c: Remove errant reference to cairo_gstate_set_drawable. * src/cairo.h: Move xlib-specific calls in from old cairo-xlib.h, now guarded in #ifdef CAIRO_HAS_XLIB_BACKEND. * src/Makefile.am (libcairo_xlib_sources): Make compilation of cairo_xlib_surface.c conditional. (INCLUDES, libcairo_la_LIBADD): Add the new variables from splitting up the PKG_CHECK_MODULES calls. 2003-12-03 Carl Worth * cairo.pc.in (Libs): Add -lz for the compress function used in the PS backend. 2003-12-01 Keith Packard * TODO: Add note about degenerate path caps being broken 2003-11-21 Carl Worth * src/cairo_polygon.c (_cairo_polygon_add_edge): Use 0 and 1 not False and True, (to avoid false dependency on X headers). * src/cairo_path_stroke.c (_compute_face): Use cairo_point_double_t not XPointDouble, (to avoid false dependency on X headers). Thanks to "Sasha V." for pointing these out. 2003-11-18 Carl Worth * configure.in: Bump version to 0.1.13 for new freetype header compatibility. Fix comments regarding freetype version checking. 2003-11-18 James Henstridge * cairo.pc.in (Cflags): add FREETYPE_CFLAGS/LIBS to Libs/Cflags rather than requiring "freetype2", which doesn't exist in anything but the most recent version of freetype. * configure.in (FREETYPE_LIBS): add freetype cflags/libs substitutions. 2003-11-18 Carl Worth * src/cairo.h: Fix build for new freetype header include mechanism, (thanks to Christof Petig ) 2003-11-17 Carl Worth * Remove infinite looping when stroking with a line width at or close to 0.0. Thanks to Rob Buis and Noah Levitt for providing in-the-wild examples of SVG files with stroke-width:0 that demonstrated the problem, (cowboy.svg and albania.svg). * src/cairo_pen.c (_cairo_pen_stroke_spline): Do nothing if the pen is a degenerate, single point. This happens when the line width is a very small, non-zero value. * src/cairo_gstate.c (_cairo_gstate_stroke): Do nothing when asked to stroke a path with a line_width of 0.0. Previously, this would lead to an infinite loop. * src/cairo.c (cairo_set_line_width): Force negative line width to 0.0. * TODO: Updated TODO list. 2003-11-10 Carl Worth * configure.in: Fix typo (thanks to John Ellson ) * TODO: Add TODO items for intersection problem, programmatic patterns, missing text functions. 2003-11-06 Carl Worth * configure.in (CAIRO_VERSION): Bumped version to 0.1.12 for new cairo_in_stroke and cairo_in_fill functions. * src/cairo.h: * src/cairo.c (cairo_in_stroke): (cairo_in_fill): Added new cairo_in_stroke and cairo_in_fill. * src/cairo_traps.c (_cairo_trap_contains): (_cairo_traps_contain): * src/cairo_gstate.c (_cairo_gstate_in_stroke): (_cairo_gstate_in_fill): New functions to support for cairo_in_stroke and cairo_in_fill. Many thanks to Thomas Hunger for the initial implementation which demonstrated how easy this would be and pushed me to go and write it already. * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): * src/cairo_traps.c (_line_segs_intersect_ceil): * src/cairo_path.c (_cairo_path_move_to): (_cairo_path_line_to): (_cairo_path_curve_to): Fixed to use _cairo_fixed_from_double instead of XDoubleToFixed. 2003-11-06 Carl Worth * src/cairo.c (cairo_current_font): Move declaration to beginning of function to avoid requiring a C99-compatible compiler. * src/cairo.h: Add comment pondering memory management semantics of cairo_current_target_surface. * src/cairo_pen.c (_cairo_pen_fini): NULL out pen->vertices after free. * src/cairo_image_surface.c (_cairo_image_abstract_surface_destroy): NULL out durface->data after free. 2003-11-04 Carl Worth * src/cairo_gstate.c (_cairo_gstate_set_target_surface): Enable cairo_set_target_surface (cr, NULL) to work. This can be useful to force the current target surface to be finalized. * configure.in: * cairo.pc.in (Requires): Add explicit fontconfig and freetype2 dependencies that were implicitly dropped along with Xft. 2003-11-04 Carl Worth * TODO: Note that cairo_show_page, cairo_copy_page, PostScript backend, "real" text API, and text support for the image backend have now all been implemented. 2003-11-04 Carl Worth * configure.in: * cairo.pc.in (Requires): cairo doesn't depend on Xft after the recent text work. 2003-11-03 Carl Worth * configure.in (CAIRO_VERSION): Bump version to 0.1.11 for new cairo_copy_page. * src/cairo_ps_surface.c (cairo_ps_surface_create): Now print header at time of surface_create rather than in show_page. (_cairo_ps_surface_destroy): Print document footer at time of surface_destroy rather than in show_page. (_cairo_ps_surface_erase): New function for sharing. (_cairo_ps_surface_copy_page): Now keep proper page count. (_cairo_ps_surface_show_page): Real work is now done in copy_page. show_page is only distinct in that it erases the surface afterwards. * src/cairo.h: * src/cairo.c (cairo_copy_page): * src/cairo_gstate.c (_cairo_gstate_copy_page): * src/cairo_surface.c (_cairo_surface_copy_page): * src/cairo_image_surface.c (_cairo_image_surface_copy_page): * src/cairo_xlib_surface.c (_cairo_xlib_surface_copy_page): Add support for new cairo_copy_page function. 2003-11-03 Carl Worth * src/cairo_ps_surface.c (cairo_set_target_ps): Add missing check for out of memory. * src/cairo_image_surface.c (_cairo_image_surface_create_with_masks): (_cairo_image_surface_create_with_masks): (cairo_image_surface_create): (cairo_image_surface_create): (cairo_image_surface_create_for_data): (cairo_image_surface_create_for_data): Add several missing checks for out of memory. 2003-11-03 Carl Worth * src/cairo.h: Added __external_linkage to a few functions that were missing it. 2003-11-01 Carl Worth * src/cairo_ps_surface.c (_cairo_ps_surface_show_page): Fix misplacement of PS origin, (was translating vertically by width instead of height). * configure.in (CAIRO_VERSION): Bumped version to 0.1.10 for new functions cairo_set_target_ps, cairo_ps_surface_create, and cairo_show_page. * src/cairo_ps_surface.c: New file with preliminary support for drawing to a PostScript file. Most of the ps_surface backend functions are just tiny wrappers, deferring to image_surface functions to do the real work. Then, in show_page, the image is compressed and spit out into the file. Crude and effective. * src/cairo.c (cairo_show_page): * src/cairo_gstate.c (_cairo_gstate_show_page): * src/cairo_image_surface (_cairo_image_surface_show_page): * src/cairo_xlib_surface.c (_cairo_xlib_surface_show_page): * src/cairo_surface.c (_cairo_surface_show_page): Implement new support for cairo_show_page -- just a stub in the non-PS surfaces. * src/cairo_image_surface.c (_cairo_image_surface_set_filter): Export this function for internal use. * src/cairo.h: Added cairo_set_target_ps, cairo_ps_surface_create, and cairo_show_page. Noted plans for new cairo_surface_clip_begin, perhaps moving some cairo_surface functions to cairo_set_pattern, and possibly renaming cairo_matrix_t to cairo_transform_t. * src/Makefile.am (libcairo_la_SOURCES): Added cairo_ps_surface.c. 2003-10-31 Carl Worth * src/cairo_gstate.c (_cairo_gstate_arc): (_cairo_gstate_arc_negative): Do nothing when radius <= 0.0, (which is much better than the current infinite loop). 2003-10-31 Carl Worth * Moved all libic-related drawing into cairo_image_surface.c. Details below: * src/cairo_xlib_surface.c: Add width, height, format to cairo_xlib_surface_t. (_cairo_xlib_surface_get_image): (_cairo_xlib_surface_set_image): Implement new get_image/set_image interface instead of pull_image/push_image. (_cairo_xlib_surface_get_image): Fix memory leak that showed up with non-Render servers. (_cairo_xlib_surface_set_matrix): Implement set_matrix with new interface. (_render_operator): Translate from cairo_operator_t to Render-defined operator values rather than assuming they are the same. * src/cairo_surface.c: Move all libic-related code into cairo_image_surface.c. cairo_surface is now a thin wrapper around concrete surface types, (with fallback code to cairo_image_surface whenever a backend does not provide support for a particular function). Remove checks for NULL backend functions. (_cairo_surface_get_image): (_cairo_surface_set_image): New interface to replace pull_image/push_image. Now uses a cairo_image_surface rather than an IcImage and now also passes it externally rather than storing it in the surface. * src/cairo_gstate.c (_cairo_gstate_fini): (_cairo_gstate_set_target_surface): (_cairo_gstate_set_rgb_color): Avoid useless calls to cairo_surface_destroy for NULL surfaces. (_cairo_gstate_show_surface): (_cairo_gstate_clip): (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_begin_group): Add status checking for calls to surface_create_similar, surface_fill_rectangles, surface_composite, and surface_composite_trapezoids. * src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Remove one gratuitous level of nesting. (_cairo_ft_font_show_glyphs): Bubble up NULL_MEMORY status. * src/cairo.h: Portability improvements: Remove include of X11/extensions/Xrender.h. Move include down near the freetype include. cairo_format_t: Eliminate Render-based values for this enum. cairo_operator_t: Eliminate Render-based values. Drop disjoint/conjoint operators. cairo_filter_t: Eliminate libic-based values for this enum. Add cairo_image_surface_create and cairo_image_surface_create_for_data. * src/cairo.c (cairo_status_string): Add new CAIRO_STATUS_NULL_POINTER. This can be returned only if the user passes a NULL object in to a cairo function. * src/cairoint.h: Move include of from cairo.h to here. * src/Makefile.am (libcairo_la_SOURCES): Add cairo_image_surface.c. Reformat line continuation characters. * src/cairoint.h: Remove prototypes for obsolete functions: _cairo_gstate_set_visual and _cairo_gstate_set_format. 2003-10-30 Carl Worth * src/cairo_xlib_surface.c (_cairo_xlib_surface_destroy): Fix memory leaks of surface->gc and surface->ximage. (_cairo_xlib_surface_composite): (_cairo_xlib_surface_composite_trapezoids): Fix memory leaks of cloned surfaces. 2003-10-30 Carl Worth * configure.in (CAIRO_VERSION): Bumped version to 0.1.9 for change in argument list of cairo_ft_font_create. * src/cairo_ft_font.c: A set of changes to eliminate the static FT_Library field, (which could introduce nasty problems with respect to threading). With the new code, each font created with the toy API will own its own FT_Library. Meanwhile, cairo_ft_font_create now accepts an FT_Library parameter. * src/cairo_ft_font.c: Add ft_library field so that fonts that own their own FT_Library can also clean it up. Eliminate static FT_Library and _init_cairo_ft_lib. (cairo_ft_font_create): Now accepts an FT_Library argument. (_cairo_ft_font_create): Create an FT_Library owned by this font, (this only happens as part of the "toy API") (_cairo_ft_font_destroy): Clean up ft_font->ft_library if necessary. (cairo_ft_font_create_for_ft_face): Initialize ft_library and owns_ft_library. * src/cairo.h: Add FT_Library parameter to cairo_ft_font_create. 2003-10-30 Carl Worth * cairo_font: A few cleanups to eliminate a memory leak. * src/cairo_gstate.c (_cairo_gstate_init_copy): (_cairo_gstate_fini): (_cairo_gstate_select_font): (_cairo_gstate_set_font): Replace calls to _cairo_font_fini with cairo_font_destroy. * src/cairo_ft_font.c (_cairo_ft_font_destroy): Rename _cairo_ft_font_close to _cairo_ft_font_destroy. * src/cairo_font.c: Eliminate unnecessary cairo_font_fini function. (cairo_font_destroy): Put reference decerement here where it belongs. * src/cairoint.h: Eliminate unnecessart family, slant, and weight fields from cairo_font_t. Rname font backend->close to backend->destroy. 2003-10-28 Carl Worth * README: Updated to match latest text from web page. Fixed stale references to Xc and xrtest. 2003-10-28 Carl Worth * src/cairo_xlib_surface.c (_cairo_xlib_surface_pixels_per_inch): Implement new backend function. * src/cairo_surface.c (_cairo_surface_pixels_per_inch): Add new function to query surface pixels_per_inch. * src/cairo_gstate.c (_cairo_gstate_init): Rename gstate->ppm to gstate->pixels_per_inch. Swithc from default 3780 pixels per meter to 96.0 pixels per inch which is slightly different. 2003-10-28 Carl Worth * src/cairo_gstate.c (_cairo_gstate_ensure_source): (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_clip): (_cairo_gstate_show_surface): Track changes to _cairo_surface_create_similar_solid. * src/cairo_surface.c (_cairo_surface_create_similar_solid): Now that this function is internal, it can accept a cairo_color_t which makes the interface much cleaner. * src/cairo.h: Remove problematic function cairo_surface_create_similar_solid from the public API. 2003-10-28 Carl Worth * src/cairo_surface.c (_cairo_surface_composite): (_cairo_surface_fill_rectangles): (_cairo_surface_composite_trapezoids): Fix bug introduced in last commit: must check for NULL backend function before calling through it. 2003-10-27 Carl Worth * src/cairo_surface.c (_cairo_surface_composite): (_cairo_surface_fill_rectangles): (_cairo_surface_composite_trapezoids): backend functions must not be NULL. Track new cairo_int_status_t return value for backend drawing functions. * src/cairo_xlib_surface.c: Remove casts when initializing cairo_xlib_surface_backend. Rename cairo_xlib_surface as cairo_xlib_surface_t. (_cairo_xlib_surface_create_similar): (_cairo_xlib_surface_destroy): (_cairo_xlib_surface_pull_image): (_cairo_xlib_surface_push_image): (_cairo_xlib_surface_set_matrix): (_cairo_xlib_surface_set_filter): (_cairo_xlib_surface_set_repeat): (_cairo_xlib_surface_composite): (_cairo_xlib_surface_fill_rectangles): (_cairo_xlib_surface_composite_trapezoids): Track changes in cairo_surface_backend API. * src/cairoint.h: cairo_surface_backend now accepts a void * for the virtual surface. 2003-10-27 Carl Worth * src/cairo_ft_font.c (_cairo_ft_font_create): Default to normal slant/weight on out-of-range values. Add missing include of fontconfig/fcfreetype.h. 2003-10-24 Keith Packard * src/cairo_ft_font.c: (_cairo_ft_font_show_glyphs): A HORRIBLE KLUDGE to repad glyph images from freetype to meet libic requirements. 2003-10-24 Carl Worth * src/cairo_ft_font.c (_init_cairo_ft_lib): Fix missing void from function prototype. (_utf8_to_ucs4): Mark static. * src/cairo_xlib_surface.c: Remove unused function _cairo_xlib_surface_get_picture. * src/cairo_ft_font.c (_cairo_ft_font_copy) (_cairo_ft_font_glyph_extents, _cairo_ft_font_glyph_path): Internal functions can't receive a NULL font pointer. * src/cairo.c (cairo_text_extents, cairo_glyph_extents) (cairo_text_path, cairo_glyph_path): Comment-out functions without complete implementations to squelch compiler warnings. * configure.in: Bump version to 0.1.8 for font API changes. * src/cairo.c (cairo_current_font): Fix missing return value. * src/cairoint.h: No need for CAIRO_INT_STATUS_NULL_POINTER (CAIRO_FONT_BACKEND_DEFAULT): Move declaration of default font backend up into cairoint.h * src/cairo_gstate.c (_cairo_gstate_init): Create a default font, don't leave it NULL. (_cairo_gstate_current_font): gstate->font must never be NULL. (_cairo_gstate_current_font_extents): Can never be called with a NULL gstate. * src/cairo_font.c (_cairo_font_create): Rename _cairo_font_create_font and move to top of file. (_cairo_font_init, _cairo_font_scale, _cairo_font_transform) (_cairo_font_text_extents, _cairo_font_glyph_extents) (_cairo_font_show_text, _cairo_font_show_glyphs) (_cairo_font_text_path, _cairo_font_glyph_path) (_cairo_font_font_extents): These internal functions can never be called with a NULL font. 2003-10-23 Graydon Hoare * src/cairo_ft_font.c: New file. * src/Makefile.am: Add cairo_ft_font.c * src/cairo.c: * src/cairo.h: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Change to virtual font interface. 2003-10-23 Carl Worth * TODO: Added notes on some missing functions. Update PostScript comparison with respect ot new arc functions. 2003-10-23 Carl Worth * Many files: Fixed Copyright statements to read "University of Southern California" rather than "USC, Information Sciences Institute" as the university is the actual corporation. 2003-10-11 Carl Worth * src/cairo-xlib.h: Add extern "C" stuff. (Thanks to Soory Kuloor for the reminder). 2003-10-09 Carl Worth * src/cairo_font.c: Stub out NULL_POINTER errors as CAIRO_STATUS_SUCCESS so that drawing to off-screen images still works even though text does not yet. 2003-10-04 Carl Worth * src/cairo_hull.c (_cairo_hull_compute): Add cairo_hull.c to compute a convex hull, (using Graham scan algorithm). * src/cairo_pen.c (_cairo_pen_add_points): Generate convex hull of pen after adding new points. * src/cairoint.h: Rename pen->vertex to pen->vertices * Replaced "pt" with "point" in about a zillion places. * src/cairo.c (cairo_destroy): Fix to continue with destroy even in the face of non-zero status. (cairo_set_target_surface): (cairo_set_target_image): Don't do anything even if cr->status is CAIRO_STATUS_NO_TARGET_SURFACE. (cairo_status_string): Report "" rather than en empty string. 2003-10-01 Carl Worth * src/cairo_gstate.c (_cairo_gstate_init_copy): Don't choke if asked to copy a gstate with a NULL font. * src/cairo_font.c (_cairo_font_init): (_cairo_font_init_copy): (_cairo_font_copy): (_cairo_font_fini): (_cairo_font_select): (_cairo_font_scale): (_cairo_font_transform): (_cairo_font_text_extents): (_cairo_font_show_text): Return immediately if passed a NULL pointer. 2003-09-30 Jamey Sharp * src/Makefile.am, src/cairo.c, src/cairo.h, src/cairo_font.c, src/cairo_gstate.c, src/cairo_surface.c, src/cairoint.h: Virtualized font and surface backends. All Xlib/Xft calls are in cairo_xlib_surface.c/cairo-xlib.h now. Resolves a TODO item. 2003-09-30 Carl Worth * src/cairo.c (cairo_copy): Don't copy a gstate if src->status != 0. * src/cairo_gstate.c (_cairo_gstate_init_copy): Be careful to preserve gstate->next. (_cairo_gstate_copy): New function to support cairo_copy. * src/cairo.c (cairo_copy): Fixed horribly botched implementation of cairo_copy. * configure.in: Bumped version to 0.1.7 to indicate change in cairo_copy. * src/cairo.c (cairo_copy): Changed cairo_copy to copy graphics state from one cairo_t to another rather than allocating a new cairo_t. * src/cairo_surface.c (cairo_surface_destroy): (cairo_surface_create_similar_solid): Fix to delay XFreePixmap until cairo_surface_destroy. 2003-09-29 Carl Worth * TODO: Remove arc notes since arcs are done. * src/cairo_surface.c (_cairo_surface_composite): Fix bug (IcImageGetHeight instead of IcImageGetWidth) from Graydon Hoare . 2003-09-29 Carl Worth * configure.in (CAIRO_VERSION): Bumpred version to 0.1.6 to indicate new cairo_arc and cairo_arc_negative. * src/cairo_gstate.c (_arc_error_normalized): (_arc_max_angle_for_tolerance_normalized): (_cairo_gstate_arc_segments_needed): (_cairo_gstate_arc_segment): (_cairo_gstate_arc_dir): (_cairo_gstate_arc): (_cairo_gstate_arc_negative): Several new functions to implement arc support. * src/cairo.h: Added cairo_arc and cairo_arc_negative. * src/cairo.c (cairo_arc): (cairo_arc_negative): Added new arc support. 2003-09-27 Carl Worth * src/cairoint.h: Fixed several enum symbols that had been mistakenly converted to lowercase at some point. Consolidated cairo_path_direction_t and cairo_pen_stroke_direction_t into cairo_direction_t. Removed accidental addition of two _print_svg functions that had been used for debugging temporarily. 2003-09-25 Carl Worth * configure.in (CAIRO_VERSION): Bumped version to 0.1.5 to indicate removal of cairo_path_t and related functions. * src/cairo.h: Decided that we don't actually need any of the cairo_path_t functionality exposed in the commit earlier today. Ripped all of that back out. * configure.in (CAIRO_VERSION): Bumped version to 0.1.4 for new exposed cairo_path_t and related functions. * src/cairo_path.c (cairo_path_create): (_cairo_path_copy): (cairo_path_destroy): New create/copy/destroy functions for paths. (_cairo_path_init): Added current_pt state to cairo_path_t. (cairo_path_rel_move_to): (cairo_path_rel_line_to): (cairo_path_rel_curve_to): Added relative path creation functions, (relative stufff used to be done internally in cairo_gstate). (_cairo_path_set_ctm_inverse): (_cairo_path_transform): Added functions to transform all coordinates in a path. * src/cairo_gstate.c (_cairo_gstate_init): Moved all current_pt state out of cairo_gstate and into cairo_path. (_cairo_gstate_copy): Renamed _cairo_gstate_clone to _cairo_gstate_copy for consitency with other functions, (though I may reconsider and rename all of them to _clone). (_cairo_gstate_current_path): (_cairo_gstate_set_path): New functions for "user path" support. * src/cairo.h: Expose new opaque cairo_path_t object along with several new public functions: cairo_set_path, cairo_current_path, cairo_path_create, cairo_path_destroy, cairo_path_move_to, cairo_path_line_to, cairo_path_curve_to, cairo_path_rel_move_to, cairo_path_rel_line_to, cairo_path_rel_curve_to, cairo_path_close_path, cairo_path_current_point. * src/cairo.c (cairo_set_path, cairo_current_path): Added functions to get/set current path. 2003-09-16 Carl Worth * src/cairo_surface.c (cairo_surface_create_similar_solid): Fixed massive pixmap leak, (at least one pixmap for every set_rgb_color) * configure.in (CAIRO_VERSION): Bumped to 0.1.3 for new functions: cairo_reference and cairo_surface_reference. * src/cairo_surface.c (cairo_surface_reference): Export cairo_surface_reference. * src/cairo.c (cairo_reference): Add new function to increase reference count of cairo_t. (cairo_create): (cairo_copy): (cairo_destroy): Make these functions aware of the new reference count. 2003-09-15 Carl Worth * configure.in: Require xrender >= 0.6.0 * src/cairo_surface.c (_cairo_x11_surface_put_image): Make static. 2003-09-15 Carl Worth * src/cairo.c (cairo_restore): Fix to catch invalid restore rather than just catching the second invalid restore. Fix from Keith Packard . 2003-09-12 Carl Worth * src/cairo_surface.c (cairo_surface_create_similar_solid): Don't try to create depth-32 pixmaps on non-Render servers. (_cairo_surface_push_image): Fixed massive memory leak. 2003-09-09 Carl Worth * configure.in (PKG_CHECK_MODULES): Updated calls to slim_hidden_def to track changes in slim 0.2.0. 2003-09-05 Carl Worth * configure.in (PKG_CHECK_MODULES): Require libic >= 0.1.1 * src/cairo_surface.c (_create_icformat_for_visual): (_create_icformat_for_format): Updates for new libic interface. (cairo_x11_surface_put_image): Rename cairo_surface_put_image to cairo_x11_surface_put_image. (_cairo_surface_pull_image): (_cairo_surface_push_image): First real implementation of push/pull_image, (thanks for help from Graydon Hoare ). This provides support for running Cairo on X servers that do not have the RENDER extension. (Note: This is still woefully slow). * src/cairo_path_stroke.c (_cairo_stroker_join): Switch to _cairo_fixed functions. * src/cairo_path_bounds.c (_cairo_path_bounds): Use cairo_fixed rather than X macros. * src/cairo_gstate.c (_cairo_gstate_current_point): If not explicitly set, current point is (0,0) in user space. (_cairo_gstate_show_text): Fix to place text at user-space origin if there is no current point. (_cairo_gstate_show_surface): Optimize to pass NULL mask if alpha == 1.0. (_cairo_gstate_show_surface): Fixe to use current_point rather than (0,0). * src/cairo.h: Removed cairo_surface_put_image. * src/Makefile.am (libcairo_la_SOURCES): Added cairo_fixed.c 2003-09-05 Keith Packard * src/cairo_path_stroke.c: comment face computations, check for reflecting transformation to select correct face orientations * src/cairo_pen.c: check for reflecting transform when computing pen to ensure consistent pen orientation 2003-09-05 Carl Worth * configure.in: Bumped version to 0.1.2 for new cairo_copy function. * src/cairo_gstate.c (_cairo_gstate_init): Fixed uninitialized current_pt values. (_cairo_gstate_clone): Force gstate->next to NULL after cloning, to prevent the clone from trashing the former stack. * src/cairo.c (cairo_create): Folded _cairo_init into cairo_create. (cairo_destroy): Folded _cairo_fini into cairo_dstroy. (cairo_copy): Added new cairo_copy function. 2003-09-05 Carl Worth * src/cairo_gstate.c (_cairo_gstate_show_text): Fix crash due to missing call to ensure_source. 2003-09-04 Carl Worth * src/cairoint.h (DEPRECATE): Changed DEPRECATE mechanism to preseve binary compatibility, but break source-level compatibility. 2003-09-04 Carl Worth * src/cairo_gstate.c (_cairo_gstate_init): Combine gstate->pattern and gstate->solid into a single gstate->source. (_cairo_gstate_set_rgb_color): Defer creation of gstate->source until the stroke or fill. (_cairo_gstate_ensure_source): New function to combine duplicated code. (_cairo_gstate_stroke): (_cairo_gstate_fill): Now must ensure that gstate->source has been created. * src/cairo.c (cairo_set_target_surface): (cairo_set_target_drawable): (cairo_set_target_image): These functions can now clear status==CAIRO_STATUS_NO_TARGET_SURFACE. This is a clean solution to the bug of a SEGV if cairo_stroke/cairo_fill are called before cairo_set_target. * BUGS: Removed two fixed bugs, (SEGV if cairo_set_rgb_color called before cairo_set_target and SEGV if cairo_fill called before cairo_set_rgb_color) 2003-09-04 Keith Packard * src/cairo_path_stroke.c: added comments describing miter join code and miter limit computation. Replace XFoo with cairo_foo for double and fixed * src/cairoint.h: add cairo_fixed_to_double and cairo_double_to_fixed Carl says he's got similar code, so he'll have to fix things if I get this committed quickly enough. 2003-09-04 Carl Worth * util/cairo-api-update: Added script to update source code using Cairo to the latest API. * configure.in (CAIRO_VERSION): Bumped version to 0.1.1 * src/cairoint.h (DEPRECATE): Added magic DEPRECATE macro which provides an asm-based alias for old function names. This works on ELF systems with gcc version >= 2. * src/cairo.h (cairo_get_status_string): Deprecated all cairo_get_* names in favor of cairo_current_*. The deprecated function names will trigger either a warning or a link error, but in both cases with a useful message giving both the old and new name of the function. Three of the function name changes are different than the single word substituion: cairo_get_current_color -> cairo_current_color cairo_get_status -> cairo_status cairo_get_status_string -> cairo_status_string 2003-09-03 Carl Worth * src/cairo.h: Change cairo_get_matrix interface to accept a cairo_matrix_t* rather than 6 double*. * src/cairo.c (cairo_get_matrix): Add implementation of cairo_get_matrix. 2003-08-29 Carl Worth * src/cairo_surface.c (_cairo_surface_composite): Optimized case where src is in memory, dst is on server, and mask is NULL. Will now do a single XPutImage rather than the painful GetImage/PutImage dance of the general code. 2003-08-28 Carl Worth * src/cairo_traps.c (_line_segs_intersect_ceil): One more increment, (that still won't fix the bug). Added comment point to Hobby's paper, (that will fix it). * src/cairo_font.c (_cairo_font_resolve_xft_font): Fixed to use fabs instead of abs when correcting for negative area expansion. 2003-08-28 Keith Packard * src/cairoint.h: Added missing underscores to several internal functions. * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_matrix.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_traps.c: Fixed to track newly added underscores. * src/cairo.h: Some whitespace fixes. * src/cairo_gstate.c (_cairo_gstate_set_pattern): Fixed to anchor pattern at current point instead of the origin. (_cairo_gstate_stroke): Fixed to properly transform pattern. (_cairo_gstate_fill): Fixed to properly transform pattern. 2003-07-31 Richard Henderson * src/cairo_color.c (CAIRO_COLOR_DEFAULT): Mark const. * src/cairo_matrix.c (CAIRO_MATRIX_IDENTITY): Likewise. * src/cairo_path.c (num_args): Likewise. * src/cairo_path_bounds.c (_cairo_path_bounds): Likewise for cb. 2003-07-31 Richard Henderson * cairo.pc.in: Depend on slim. * configure.in: Check for slim. * src/cairo.h: Include slim_{export,import}.h as needed; mark all symbols __external_linkage. * src/cairoint.h: Include slim_internal.h; mark all symbols __internal_linkage. Provide slim_hidden_proto symbols as needed. * src/cairo.c, src/cairo_matrix.c, src/cairo_surface.c, Provide slim_hidden_def symbols as needed. * src/cairo_traps.c (cairo_traps_add_trap): Mark static. (cairo_traps_add_trap_from_points): Likewise. 2003-07-30 Carl Worth * configure.in (LIBIC_REQUIRED): Fixed some typos in the libic PKG_CHECK. * src/cairoint.h: * src/cairo.c: Fixed a disagreement over whether some internal cairo_gstate_t functions had an '_' prefix or not. * src/cairo_traps.c (_line_segs_intersect_ceil): Add one more conditional intersect to push past some fill bugs. * src/cairo_surface.c (cairo_surface_create_for_drawable): (cairo_surface_create_for_image): (cairo_surface_put_image): (_cairo_surface_pull_image): (_cairo_surface_push_image): (cairo_surface_set_matrix): (cairo_surface_get_matrix): (cairo_surface_set_repeat): (_cairo_surface_composite): (_cairo_surface_fill_rectangle): (_cairo_surface_fill_rectangles): (_cairo_surface_composite_trapezoids): Absorb all functionality previously in the Xc library. * src/cairo_pen.c (_cairo_pen_init): Don't store floating point theta in the pen. Instead, sort vertices by fixed point slope comparisons. (_cairo_pen_add_points): Fixed to remove duplicate pen vertices appearing at beginning and end of vertex array. (_pen_vertex_compare): New fixed-point "angle" comparison for pen vertices. A bit trickier than before, but much more accurate. * src/cairo_path_stroke.c (_cairo_stroker_face_clockwise): Share clockwise calculation with other modules. * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_spline.c: * src/cairo_traps.c: * src/cairo_path.c: Replaced all references to XFixed, XPointFixed, XLineFixed, and XTrapezoid with new cairo_fixed_t, cairo_point_t, cairo_line_t, and cairo_trapezoid_t. * src/cairo_path.c: (_cairo_path_interpret): Made the path interpreter callback names consistent, (eg. add_edge rather than AddEdge). * src/cairo_gstate.c (_cairo_gstate_text_extents): Now silently exits for a non X surface, (avoids a crash until we can implement the libic text backend). * src/cairo_gstate.c (_cairo_gstate_end_group): (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): Replaced all XcCalls with corresponding cairo_surface_calls. * src/cairo_gstate.c (_cairo_gstate_transform_point): (_cairo_gstate_transform_font): (_cairo_gstate_text_extents): Renamed from the garbled names (eg. cairo_gstateransform_point) leftover from the great renaming. * src/cairo_color.c (_cairo_color_set_rgb): Reworked cairo_color_t to eliminate reference to an XcColor object. * src/cairo.h: Dropped include of , added , , and * src/cairo.c (cairo_get_fill_rule): Added missing cairo_get_fill_rule. * configure.in (PKG_CHECK_MODULES): Drops xc, add libic * cairo.pc.in (Requires): Drop xc, add libic. 2003-07-25 Carl Worth * src/cairo_traps.c (_line_segs_intersect_ceil): We don't need a loop here, (just a conditional increment). This time, we've actually done the error analysis to back this up. 2003-07-24 Carl Worth * src/cairo_traps.c (cairo_traps_tessellate_polygon): Massive cleanup of polygon tessellation, (it might actually be correct now). 2003-07-23 Carl Worth * src/cairoint.h: Introduced some cairo_fixed_*_t types. This is the first baby step toward ripping X dependencies out of the Cairo headers. * src/cairo_traps.c (_compute_x): Converted from floating point to fixed point. (_line_seg_intersection_ceil): Now increments y value once if the initial y value computed is less than the actual intersection point. * src/cairo_traps.c (_compare_cairo_edge_by_slope): Converted from floating point to fixed point. * src/cairo_pen.c (_slope_clockwise): Converted from floating point to fixed point. 2003-07-19 Carl Worth * src/cairo_traps.c (cairo_traps_tessellate_polygon): Fixed some sorting problems with two intersections very near the same vertical position. (There are still some reamining problems though). (cairo_traps_tessellate_polygon): Better fix for the same bug. Should cover all cases, (and it's moe efficient too). 2003-07-18 Carl Worth * src/cairo.h: Fixed some inconsistent tag/typedef names that were missed in the great renaming. 2003-07-18 Carl Worth * src/cairo.h: Renamed everything from Xr* to cairo_*. * util/xr2cairo: Added utility script xr2cairo to help users fix their source code. 2003-07-03 Carl Worth * src/xrmatrix.c (XrMatrixGetAffine): Added XrMatrixGetAffine (from Soorya Kuloor) * src/xr.c (XrGetAlpha): Added XrGetAlpha (XrGetRGBColor): Added XrGetRGBColor 2003-06-12 Carl Worth * src/xrgstate.c (_XrGStateScale): Scale by 0 now causes an InvalidMatrix error. 2003-05-28 Carl Worth * src/xrmatrix.c (XrMatrixMultiply): Eliminated _XrMatrixMultiplyIntoRight and _XrMatrixMultiplyIntoLeft. * src/xrgstate.c (_XrGStateClipAndCompositeTrapezoids): Fixed missing translation of clip surface. * src/Xr.h: Added XrSurfacePutImage 2003-05-16 Carl Worth * src/xrint.h: Added ppm filed (pixels per meter) to both XrSurface and XrGState. * src/xrgstate.c (_XrGStateSetTargetSurface): Fixup CTM according to change in surface->ppm. (_XrGStateDefaultMatrix): Default matrix is no longer an identity matrix, but rather a matrix that provides some relates user space units to real-world dimensions in a meaningful way, (default 3780 user space units per meter). This conversion is not exact, but is rather as close as possible while also guaranteeing that one user space unit maps to an integer number of device pixels. 2003-05-15 Carl Worth * src/xr.c (XrSetTargetDrawable): Moved implementation up from _XrGStateSetTargetDrawable, (eg. all convenience functions should be taken care of at the xr.c level ratehr than xrgstate.c) * src/Xr.h: Added convenience function XrSetTargetImage 2003-05-14 Carl Worth * src/xrfont.c (_XrFontResolveXftFont): Fixed fonts to pull pixelsize out of the transformation matrix. Fonts are now properly hinted regardless of scaling. * src/Xr.h: Three new functions for manipulating surfaces: XrSurfaceSetMatrix, XrSurfaceGetMatrix, XrSurfaceSetFilter. * src/Xr.h: Removed broken XrShowImage* functions. Changed XrShowSurface to not require X/Y but instead depend on the CTM for translation, (or the surface transformation matrix). I'd like to get rid of width/height as well but it turns out an XrSurface is not aware of its dimensions. * src/Xr.h: Added convenience function for building rectangular paths: XrRectangle. * src/Xr.h: Added functions for performing transformations with the CTM and its inverse: XrTransformPoint, XrTransformDistance, XrInverseTransformPoint, XrInverseTransformDistance. * src/Xr.h: XrConcatMatrix and XrSetMatrix now accept a pointer to an XrMatrix rather than 6 doubles. * src/Xr.h: Now exporting opaque XrMatrix object with several functions: XrMatrixCreate, XrMatrixDestroy, XrMatrixCopy, XrMatrixSetIdentity, XrMatrixSetAffine, XrMatrixTranslate, XrMatrixScale, XrMatrixRotate, XrMatrixInvert, XrMatrixMultiply, XrMatrixTransformDistance, XrMatrixTransformPoint. 2003-05-12 Carl Worth * src/Xr.h: Added XrSetPattern. See also XrSurfaceSetRepeat. * src/xrpathbounds.c (_XrPathBounds): Moved path bound computation to its own file. * src/xrpathstroke.c (_XrPathStrokeToTraps): Moved path stroking to its own file. * src/xrpathfill.c (_XrPathFillToTraps): Moved path fililng to its own file. * src/xrgstate.c (_XrGStateStroke): (_XrGStateFill): (_XrGStateClipAndCompositeTrapezoids): Reorganized stroke and fill code to go through the same path for clipping. 2003-05-02 Carl Worth * src/Xr.h: Changed XrFormatRGB32 to XrFormatRGB24 * src/xrsurface.c (_XrFormatBPP, XrSurfaceCreateForImage) (_XrFormatDepth): Fixed for change of XrFormatRGB32 to XrFormatRGB24 2003-05-01 Carl Worth * src/xrpath.c (_XrPathBounderInit): (_XrPathBounderDeinit): (_XrPathBounderAddPoint): (_XrPathBounderAddEdge): (_XrPathBounderAddSpline): (_XrPathBounderDoneSubPath): (_XrPathBounderDonePath): (_XrPathBounds): New support for computing the bounding box of a path. Currently used internally, (for computing the size of the clip surface), and not exported publically. * src/xrgstate.c (_XrGStateStroke): Implemented clip support for strokes. (_XrGStateClip): New _XrGStateClip function fills the current path onto the gstate->clip surface. * src/xr.c (XrClip): Added preliminary/experimental clip functionality. The current implementation only clips stroked elements, (not fills, images, or text). It's alway quite inefficeient. * src/xr.c (XrGetOperator): (XrGetTolerance): (XrGetLineWidth): (XrGetLineCap): (XrGetLineJoin): (XrGetMiterLimit): (XrGetCurrentPoint): Added several new query functions. 2003-04-26 Carl Worth * src/xrsurface.c (XrSurfaceDestroy): Fix memory leak of surface->image_data. 2003-04-25 Carl Worth * configure.in: Fixed libtool versioning 2003-04-17 Carl Worth * Switched from imake to autotools. * src/xrint.h: XrSurface structure is now greatly simplified, (details now handled by XcSurface). * src/Xr.h: Eliminated Display * parameter so Xr can be used for non-X drawing. Removed XrPushGroup/XrPopGroup. Replaced XrSetDrawable/XrSetVisual with XrSetTargetDrawable. Added XrSetTargetSurface and several new XrSurfaceCreate functions. Added XrShowSurface, (functionality overlaps with XrShowImage -- need to fix this) 2003-02-14 Carl Worth * xrgstate.c (_XrGStateShowImageTransform): Fixed transformed images which were sometimes 1 pixel too tall/wide. 2003-02-06 Carl Worth * xrpen.c (_XrPenVerticesNeeded): Fixed to use determinant rather than eigenvalues to compute maximal scaling of radius. Now avoids embarrassing segfaults due to NaN from the eigenvalue computation. 2003-01-28 Carl Worth * xrtraps.c (_XrTrapsTessellateTriangle): Fixed to not re-order the array provided as an argument. (Note: the rectangle and polyghon tessellators still perform reordering). * xrstroker.c (_XrStrokerJoin): (_XrStrokerCap): Implemented round caps and joins. (_XrStrokerDoneSubPath): Fixed initial cap, (was always being drawn on the inside previously). * xrpen.c (_XrPenInit): Fixed to keep pen vertex theta values all in device space. (_XrPenAddPoints): Removed the silly flags from the pen vertices, (in favor of just using the FindActiveVertex functions) (_XrPenFindActiveCWVertexIndex): (_XrPenFindActiveCCWVertexIndex): Added functions needed for round caps/joins. * xrgstate.c (_XrGStateSetDash): Fixed to accept a NULL dash array to revert to no dashing. 2003-01-28 Carl Worth * xrtraps.c (_XrTrapsTessellateTriangle): Restored triangle tessellation functionality, (I think it's correct this time). * xrstroker.c (_XrStrokerJoin): Bevel joins now use triangle tessellation rather than polygon tessellation. 2003-01-24 Carl Worth * xrpolygon.c (_XrPolygonAddEdge): Fixed to handle multiple sub-polygons. * xrstroker.c (_XrStrokerJoin): Fixed handling of miter limit. * local.def: Added local.def for building outside the xc tree. 2002-12-03 Carl Worth * xrstroker.c (_XrStrokerJoin): (_XrStrokerCap): Fixed to track change in winding rule parameter to XrTrapsTessellatePolygon, (otherwise self-intersecting splines suddenly had holes). * xrpen.c (_XrPenStrokeSpline): Fixed to track change in winding rule parameter to XrTrapsTessellatePolygon. 2002-11-11 Carl Worth * xrtransform.c (_XrTransformBoundingBox): Added support for transforming a bounding box, (an axis-aligned rectangle prior to transformation). The ShowImage support needs this. (_XrTransformComputeInverse): Now catches error case for non-invertible matrix. * xrsurface.c (_XrSurfaceSetTransform): Fixed ordering of matrix for call to RenderSetPictureTransform * xrgstate.c (_XrGStateSetMatrix): (_XrGStateIdentityMatrix): Support for new Xr matrix functions. (_XrGStateShowImage): (_XrGStateShowImageTransform): Fixed transformation of images. * xr.c (XrSetMatrix): (XrDefaultMatrix): (XrIdentityMatrix): Added 3 matrix manipulation functions. 2002-11-04 Carl Worth * xrsurface.c (_XrSurfaceDereference): (_XrSurfaceDereferenceDestroy): Fixed bug in reference counting logic. (_XrSurfaceSetDrawableWH): XrSurface now keeps track of its width/height. (_XrSurfaceGetDrawable): (_XrSurfaceGetWidth): (_XrSurfaceGetHeight): (_XrSurfaceGetDepth): New accessor functions. * xrgstate.c (_XrGStateBeginGroup): (_XrGStateEndGroup): Preliminary group support. Not too efficient since it always composite's a full-size picture from child group to parent picture, (even if only a small portion has non-transparent pixels). (_XrGStateShowImageTransform): Fixed show image to use current alpha value. * xrfont.c (_XrFontResolveXftFont): Fixed memory leak (FcPatternDestroy). There's still some meory leaking/left-reachable in Xft/fontconfig that I need to track down. * xr.c (XrPushGroup): (XrPopGroup): Added preliminary group support. I think I like having this in the API as it takes several burdens away from the user, (plus it matches the PDF model). Things to do still: think about the names of these functions. Re-read the PDF semantics to see if we're missing anything. 2002-11-02 Carl Worth * xrsurface.c (_XrSurfaceSetImage): Fixed leak of the image pixmap. 2002-11-01 Carl Worth * xrsurface.c (_XrSurfaceSetImage): Prelimary image support. Really only works with ARGB32. I still need to think about what formats will be supported. (_XrSurfaceSetTransform): Partial support for transformed surfaces. (_XrSurfaceGetXcSurface): Moved all creation/destruction of the XcSurface into this function so that it is only lazily created when needed. * xrgstate.c (_XrGStateSetCurrentPt): gstate now can throw errors when an operation needs current point, but it doesn't exist yet. (_XrGStateShowImage, _XrGStateShowImageTransform): Preliminary image support, (currently it only scales according to the CTM. The matrix passed with the image doesn't do anything yet.) * xrfont.c (_XrFontInitCopy): Removed bogus out of memory errors. * xr.c (XrShowImage, XrShowImageTransform): Added very preliminary image support. Things don't work completely yet and all the interfaces are likely to change. (XrGetStatusString): Added function to map status values to strings. 2002-10-31 Carl Worth * xrfont.c (_XrFontInit): (_XrFontInitCopy): (_XrFontDeinit): (_XrFontSelect): (_XrFontResolveXftFont): Updated by ripping all font support from Xc and just putting a couple of calls to Xft and fontconfig right here in xrfont. * xr.c (XrTextExtents): Added XrTextExtents. 2002-10-29 Carl Worth * xrgstate.c (_XrGStateSelectFont, _XrGStateScaleFont) (_XrGStateTransformFont, _XrGStateShowText): Added basic font support. * xr.c (XrSelectFont, XrScaleFont, XrTransformFont): Added basic font support. 2002-10-28 Carl Worth * xrstate.c (_XrStatePop): Added error case for XrRestore without matching XrSave. * xrsurface.c (_XrSurfaceInit, _XrSurfaceReference) (_XrSurfaceDereference): Added reference counting to XrSurface to patch a memory leak. 2002-10-26 Carl Worth * xrtransform.c (_XrTransformDistance): (_XrTransformPoint): changed to use individual X/Y arguments rather tha an XPointDouble. This improves readability since _XrTransformDistance is now always called with arguments of dx/dy rather than pt.x/pt.y. * xrpath.c (_XrPathMoveTo): (_XrPathLineTo): (_XrPathCurveTo): (_XrPathClosePath): replaced public _XrPathAdd with explicit named functions. This cleans up the implementation since _XrPathAdd, which is unsafe with respect to argument consistency, is now private. Also, since the _XrGState now maintains the current point, I dropped all relative path operators from the XrPath data structures. * xrgstate.c (_XrGStateMoveTo): (_XrGStateLineTo): (_XrGStateCurveTo): (_XrGStateRelMoveTo): (_XrGStateRelLineTo): (_XrGStateRelCurveTo): Replaces _XrGStateAddPathOp and _XrGStateAddUnaryPathOp with explicit named functions for each operator type. This change introduces the current point state into the XrGState structure rather than postponing its calculation until path interpretation. * xrgstate.c (_XrGStateSetDrawable): (_XrGStateSetVisual): (_XrGStateSetFormat): (_XrGStateSetOperator): (_XrGStateSetRGBColor): (_XrGStateSetTolerance): (_XrGStateSetAlpha): (_XrGStateSetFillRule): (_XrGStateSetLineWidth): (_XrGStateSetLineCap): (_XrGStateSetLineJoin): (_XrGStateSetMiterLimit): (_XrGStateTranslate): (_XrGStateScale): (_XrGStateRotate): (_XrGStateConcatMatrix): (_XrGStateNewPath): : Added XrStatus return values to many functions -- just for consistency, these functions can not return errors in any case. * xr.c (XrShowText): Started to ass XrShowText, (still not functional) 2002-10-24 Carl Worth * xr.c (XrSetFillRule): Added support to set fill rule. 2002-10-23 Carl Worth * xrtraps.c (_XrTrapsTessellatePolygon): Fix for polygon with multiple sub-polygons that are disjoint in Y. 2002-07-16 Carl Worth * Xr.h: Renamed xrpicture.c to xrsurface.c as part of the move. Added XrSetFormat, XrSetOperator, XrSetLineCap, XrSetLineJoin, and XrSetMiterLimit, (although the line style drawing code is not all in place yet). * xrpath.c (XrPathLineTo): Changed LineTo semantics to be the same as MoveTo if there was no previous MoveTo. * xrtraps.c: Added tessellation code, (lifted from XRenderCompositeDoublePoly which can now disappear). * xrgstate.c: Changed stroke code to incrementally build a list of trapezoids rather than forming one giant polygonal outline and rendering that. This should be more efficient. (_XrGStateFillPath): Now uses Xr's own tessellation along with XcCompositeTrapezoids. * Xr.h: Moved all of Xr away from Xrender to the new Xc library. * xrsurface.c: Renamed from xrpicture.c, (part of the move from XRender to Xc). * Started keeping a ChangeLog ;-) @ 1.1247 log @2006-02-13 Emmanuel Pacaud Add mask support and switch to SVG 1.2 for compositing operators. * src/cairo-svg-surface.c (emit_composite_image_pattern): return xml node instead of cairo status. (emit_composite_svg_pattern): ditto. (emit_composite_pattern): ditto. (emit_operator): use SVG 1.2 operators, since feComposite filter always composite resulting surface to current canvas. (_cairo_svg_surface_composite): removed. (_cairo_svg_surface_fill_rectangles): removed. (intersect): removed. (_cairo_svg_surface_composite_trapezoids): removed. (emit_paint): new. (_cairo_svg_surface_paint): new. (_cairo_svg_surface_mask): new. (_cairo_svg_surface_stroke): emit operator. @ text @d3 5 @ 1.1246 log @2006-02-11 Christian Biesinger * doc/public/cairo-docs.xml: * doc/public/cairo-sections.txt: * doc/public/language-bindings.xml: * doc/public/tmpl/cairo-beos.sgml: Adds the BeOS surface functions to the list of functions for which to generate documentation. @ text @d1 19 @ 1.1245 log @2006-01-29 Emmanuel Pacaud * test/cairo-test.c (create_svg_surface): fix filename. * test/.cvsignore: shh! @ text @d1 10 @ 1.1244 log @2006-01-29 Emmanuel Pacaud * src/cairo-svg-surface.c (emit_pattern_stops): fix offset of pattern stops. @ text @d3 5 @ 1.1243 log @2006-01-26 Keith Packard * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo-large-content.svg: * doc/tutorial/slides/cairo-separator.svg: * doc/tutorial/slides/cairo-title.svg: * doc/tutorial/slides/cairo.svg: Make watermark consistently translucent Use fill for dung outline Fix text locations @ text @d1 5 @ 1.1242 log @ 2006-01-26 Carl Worth * doc/tutorial/src/include/cairo-tutorial-gtk.h: Add a CONTROL-Q keybinding to quit. @ text @d1 12 @ 1.1241 log @2006-01-26 Keith Packard reviewed by: cworth * doc/tutorial/slides/cairo-blank.svg: * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo-large-content.svg: * doc/tutorial/slides/cairo-separator.svg: * doc/tutorial/slides/cairo-title.svg: * doc/tutorial/slides/cairo.svg: * doc/tutorial/slides/tutorial.xml: Adopt proposed new cairo color scheme. Recolor scarab, eliminate gradient in dung Use new blue background color. Rework font sizes, use bold for titles. Change tutorial title. @ text @d1 5 @ 1.1240 log @ 2006-01-26 Carl Worth * doc/tutorial/slides/cairo-blank.svg: Shrink the font size to make the tutorial instructions fit. * doc/tutorial/slides/tutorial.xml: Format text to solve all problematic line wrapping. * doc/tutorial/src/README: Add my name to the README. @ text @d1 17 @ 1.1239 log @ 2006-01-26 Carl Worth * doc/tutorial/src/cairo-tutorial.h: * doc/tutorial/src/cairo-tutorial-gtk.h: * doc/tutorial/src/cairo-tutorial-pdf.h: * doc/tutorial/src/cairo-tutorial-png.h: * doc/tutorial/src/cairo-tutorial-xlib.h: * doc/tutorial/src/include/cairo-tutorial.h: * doc/tutorial/src/include/cairo-tutorial-gtk.h: * doc/tutorial/src/include/cairo-tutorial-pdf.h: * doc/tutorial/src/include/cairo-tutorial-png.h: * doc/tutorial/src/include/cairo-tutorial-xlib.h: Move the magic header files to be down in an include directory and more out of the way. * doc/tutorial/src/Makefile: Look for the headers in -I./include. * doc/tutorial/src/circle.c: (draw): Make the circle track the width and height of the window dynamically. * doc/tutorial/src/expander.c: Remove boring expander example. * doc/tutorial/src/lca.c: (draw): Add more interesting LCA exmaple. * doc/tutorial/src/README: Add some notes about how to use this stuff. @ text @d3 10 @ 1.1238 log @ 2006-01-26 Carl Worth * doc/tutorial/slides/cairo-large-content.svg: Here's the actual template I was referring to in my previous commit. * doc/tutorial/slides/tutorial.xml: Add a bunch more slides. Most of the text is in place now---just missing some formatting and a bunch of examples. @ text @d3 28 @ 1.1237 log @ * doc/tutorial/slides/cairo-blank.svg: * doc/tutorial/slides/cairo-code.svg: * doc/tutorial/slides/cairo.svg: Add Red Hat logos to slide templates. * doc/tutorial/slides/cairo-separator.svg: Add header/footer-less slide variant for slides needed an extra bit of space. * doc/tutorial/slides/tutorial.xml: Start getting slides ready for linux.conf.au 2006 tutorial, updating for cairo 1.0 API, and adding better organization. Verify and fix all the little example shell programs. * doc/tutorial/src/Makefile: Really remove the building of the -pdf programs this time. @ text @d3 9 @ 1.1236 log @ 2006-01-25 Carl Worth * doc/tutorial/slides/tutorial.xml: A few random changes to the slides. * doc/tutorial/src/Makefile: Remove pdf build by default, (since it is disabled by defalt in cairo 1.0.2). * doc/tutorial/src/cairo-tutorial-gtk.h: * doc/tutorial/src/cairo-tutorial-pdf.h: * doc/tutorial/src/cairo-tutorial-png.h: * doc/tutorial/src/cairo-tutorial-xlib.h: * doc/tutorial/src/circle.c: (draw): * doc/tutorial/src/expander.c: (draw): Change draw interface to accept a width and height. * doc/tutorial/src/cairo-tutorial-gtk.h: Fix the destroy event handler so that clicking on the window manager's 'close window' button works. @ text @d1 18 @ 1.1235 log @2006-01-22 Behdad Esfahbod * src/cairo.h, doc/public/cairo-sections.txt: Add cairo_scaled_font_text_extents. * src/cairo-scaled-font.c (cairo_scaled_font_text_extents): New function. * src/cairo-scaled-font.c (cairo_scaled_font_glyph_extents): Improve documentation. @ text @d1 20 @ 1.1234 log @2006-01-21 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/set-source-beos-rgb24-ref.png: * test/set-source-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Updating BeOS reference images, the tests use a black background now. @ text @d1 11 @ 1.1233 log @2006-01-21 Christian Biesinger * test/cairo-test-beos.cpp: (create_beos_surface), (create_beos_bitmap_surface): * test/cairo-test-beos.h: Update BeOS test code per the cairo_format_t -> cairo_content_t changes. @ text @d3 13 @ 1.1232 log @2006-01-21 Christian Biesinger * pixman/src/fbpict.c: (detectCPUFeatures): * src/cairo-paginated-surface.c: (_cairo_paginated_surface_get_target): * test/cairo-test.c: (create_image_surface): Don't mix declarations and code. This makes the code valid ISO C, fixes a gcc -pedantic warning, and unbreaks the build with the compiler Zeta ships with. @ text @d3 9 @ 1.1231 log @ 2006-01-20 Carl Worth * src/cairo.h: * src/cairo-scaled-font.c: (cairo_scaled_font_get_font_face), (cairo_scaled_font_get_font_matrix), (cairo_scaled_font_get_ctm), (cairo_scaled_font_get_font_options): Add getter functions for cairo_scaled_font_t. @ text @d1 11 @ 1.1230 log @ 2006-01-20 Carl Worth * test/ft-font-create-for-ft-face.c: (draw): Fix test to use fontconfig properly so that the test no longer fails. Fixes bug #4674. (Thnks to sunmoon1997 for the fix). @ text @d3 8 @ 1.1229 log @ 2006-01-20 Carl Worth * src/cairo-scaled-font.c: (cairo_scaled_font_create): Check font_face->status and return a nil scaled font if it is in an error state. (Thanks to Christian Biesinger and sunmoon1997 who pointed this out as part of bug #4674). With this bug fix, the ft-font-create-for-ft-face test fails (as it should) since it is abusing fontconfig. @ text @d3 6 @ 1.1228 log @2006-01-19 Carl Worth * src/cairo-pdf.h: * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): * src/cairo-ps.h: * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): Rip the cairo_content_t argument out of ps/pdf_surface_create as per discussion on cairo mailing list. Instead these surface will behave as if CONTENT_COLOR_ALPHA had been passed (that is, compositing operators will behave as if destination alpha were available). This also has the benefit of preserving the API that has been in place for PS/PDF surface since the (experimental) stuff in 1.0.0. * test/cairo-test.c: (create_ps_surface), (create_pdf_surface): * test/multi-page.c: (main): Track API change. * test/cairo-test.c: (ps_surface_write_to_png), (pdf_surface_write_to_png): Continue testing PS/PDF surfaces in the CAIRO_CONTENT_COLOR mode but do it by rendering to an intermediate similar surface rather than constructing the target surface differently. @ text @d1 10 @ 1.1227 log @2005-01-19 Emmanuel Pacaud * test/svg2png.c: add missing header. Fix #5544. @ text @d1 29 @ 1.1226 log @ 2006-01-18 Carl Worth * src/cairo-pdf-surface.c: (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): Fix compilation-breaking typo. @ text @d1 4 @ 1.1225 log @ 2006-01-18 Carl Worth * src/cairo-image-surface.c: Change documentation to recommend cairo_paint rather than cairo_rectangle;cairo_fill for clearing a surface. * src/cairo-pdf.h: * src/cairo-pdf-surface.c: (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create): Add documentation. Add a cairo_content_t argument to PDF surface constructors. * src/cairo-ps.h: * src/cairo-ps-surface.c: (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): Add documentation. Add a cairo_content_t argument to PS surface constructors. * test/multi-page.c: (main): * test/cairo-test.c: (create_ps_surface), (create_pdf_surface): Track changes in PS/PDF surface constructor API. @ text @d3 5 @ 1.1224 log @ 2006-01-18 Carl Worth * src/cairo.c: Fix documentation of cairo_arc which erroneously claimed M_PI radians == 90 degrees to correctly say that M_PI/2.0 radians == 90 degrees. This closes bug #5649 (with thanks to kengruven@@gmail.com). @ text @d3 20 @ 1.1223 log @ 2006-01-17 Carl Worth Big change to the test infrastructure and supporting internals. The goal now is to test both a COLOR_ALPHA and a COLOR content for each surface backend, (since the semantics are different and we probably need to support both in each backend. The PS/PDF backends don't allow a content to be passed in right now, so they fail against the rgb24 tests, but the trivial addition to the constructors will allow them to pass all tests with both content values. * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_create_with_content), (_cairo_image_surface_create_for_data_with_content), (_cairo_image_surface_create_similar): And new constructors (currently internal only) to create an image surface with a cairo_content_t rather than a cairo_format_t. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar): Add a cairo_content_t argument to the constructor. * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_show_page), (_cairo_paginated_surface_snapshot): Add a cairo_content_t to the constructor and use this content value when constructing intermediate image surfaces in acquire_source, show_page, copy_page, and snapshot. * src/cairo-pdf-surface.c: (emit_image_rgb_data), (_cairo_pdf_surface_composite_image), (emit_surface_pattern): Add image flattening by compositing over white, as is done in cairo-ps-surface.c. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_create), (cairo_ps_surface_create_for_stream): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (cairo_pdf_surface_create_for_stream), (cairo_pdf_surface_create), Track changes to cairo-paginates-surface which now requires a cairo_content_t value (no change to public PS/PDF constructors yet). * src/test-fallback-surface.h: * src/test-fallback-surface.c: (_test_fallback_surface_create), (_test_fallback_surface_create_similar): * src/test-meta-surface.h: * src/test-meta-surface.c: (_test_meta_surface_create): * src/test-paginated-surface.h: * src/test-paginated-surface.c: (_test_paginated_surface_create_for_data): Track change in meta-surface and paginated-surface interfaces by now accepting a cairo_content_t rather than a cairo_format_t. * test/.cvsignore: Ignore new output files (argb32 from pdf and ps as well as rgb24 from test-fallback, test-meta, and test-paginated). * test/Makefile.am: * test/png-flatten.c: (main): Add new utility for flattening PNG images in order to generate the -argbf-ref.png images. * test/buffer-diff.c: (image_diff_flattened): * test/buffer-diff.h: Add image_diff_flattened for comparing flattened output from PS and PDF backend with ARGB reference images by first blending the reference images over white. * test/cairo-test.c: (_cairo_test_content_name), (create_image_surface), (create_test_fallback_surface), (create_test_meta_surface), (create_test_paginated_surface), (test_paginated_write_to_png), (create_cairo_glitz_glx_surface), (create_cairo_glitz_agl_surface), (create_cairo_glitz_wgl_surface), (create_win32_surface), (create_xcb_surface), (create_xlib_surface), (create_ps_surface), (create_pdf_surface), (create_svg_surface), (cairo_test_for_target), (cairo_test_expecting): Get rid of conditional, format-specific background-color initialization before running tests. Now uses ARGB(0,0,0,0) in all cases. Switch from specifying tests with a format value to specifying tests with a content value. Add support for a 'fake' COLOR_ALPHA_FLATTENED content for testing the PS and PDF output against a flattened version of the argb32 reference images (first blended over white). * test/multi-page.c: (main): Track change in cairo_ps_surface_create (now requires cairo_content_t value). * test/caps-joins.c: (draw): * test/caps-sub-paths.c: (draw): * test/dash-caps-joins.c: (draw): * test/dash-offset-negative.c: (draw): * test/leaky-polygon.c: (draw): * test/line-width.c: (draw): * test/path-data.c: (draw): * test/show-text-current-point.c: (draw): * test/text-antialias-gray.c: (draw): * test/text-antialias-none.c: (draw): * test/transforms.c: (draw): Adjust tests that draw in default (black) to first paint white so that the results are visible. * test/caps-joins-ref.png: * test/caps-sub-paths-ref.png: * test/dash-caps-joins-ref.png: * test/dash-offset-negative-ref.png: * test/leaky-polygon-ref.png: * test/line-width-ref.png: * test/path-data-ref.png: * test/show-text-current-point-ref.png: * test/text-antialias-gray-ref.png: * test/text-antialias-none-ref.png: * test/transforms-ref.png: Adjust ARGB32 reference images for new white background for changed tests. * test/clip-fill-rule-pixel-aligned-rgb24-ref.png: * test/clip-fill-rule-rgb24-ref.png: * test/clip-nesting-rgb24-ref.png: * test/clip-operator-rgb24-ref.png: * test/clip-twice-rgb24-ref.png: * test/fill-and-stroke-rgb24-ref.png: * test/fill-rule-rgb24-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/mask-ctm-rgb24-ref.png: * test/mask-rgb24-ref.png: * test/mask-surface-ctm-rgb24-ref.png: * test/nil-surface-rgb24-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-rgb24-ref.png: * test/paint-with-alpha-rgb24-ref.png: * test/rel-path-rgb24-ref.png: * test/scale-source-surface-paint-rgb24-ref.png: * test/set-source-rgb24-ref.png: * test/source-surface-scale-paint-rgb24-ref.png: * test/text-pattern-rgb24-ref.png: * test/trap-clip-rgb24-ref.png: * test/unbounded-operator-rgb24-ref.png: Adjust RGB24 reference images for new black background due to changed initialization (and the tests themselves being unchanged). @ text @d1 7 @ 1.1222 log @2006-01-14 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Update BeOS reference images per the recent gradient changes @ text @d1 143 @ 1.1221 log @2006-01-14 Christian Biesinger * test/.cvsignore: Ignore glitz-glx test output @ text @d3 9 @ 1.1220 log @ 2006-01-13 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_end_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page): Fix things up to conform with Adobe PostScript Document Structuring Conventions Specification. Thanks to Michael Sweet for bringing several items to our attention. Things that are fixed: Add Pages: (atend) to header, add Pages: N to trailer, properly advertise DocumentData of Binary rather than Clean7Bit, remove fictitious EndPage, move showpage to after the grestore. @ text @d1 4 @ 1.1219 log @ 2006-01-13 Carl Worth * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Rip out the misguided paint-with-white and RGB24 surface code and go back to using ARGB32. It turns out that the PS backend already has its own blend-with-white code, and the test-paginated-surface really wants ARGB32. @ text @d3 12 @ 1.1218 log @ 2006-01-13 Carl Worth * src/cairo-win32-font.c: (_flush_glyphs): Eliminate cast of state->dx.elements which has been wrong since the internals of cairo_array_t changed on 2005-12-21. Now, hopefully less than all text will be broken on win32. @ text @d3 10 @ 1.1217 log @ 2006-01-12 Carl Worth * test/multi-page.c: (draw_some_pages), (main): Add a call to cairo_copy_page, so that that gets called at least once within the test suite. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_copy_page): Fix broken implementation of copy_page in the paginated surface by hiding it from the target surface which sees only show_page operations. (It's hard to do better than that unless we can guarantee thathe subsequent page won't trigger any image fallbacks.) @ text @d1 7 @ 1.1216 log @ 2006-01-12 Carl Worth * configure.in: Add a new CAIRO_HAS_MULTI_PAGE_SURFACES automake conditional. * test/.cvsignore: * test/Makefile.am: * test/pdf-clip.c: * test/pdf-surface.c: * test/ps-surface.c: Remove backend-specific tests (ps-surface, pdf-surface, and pdf-clip) that are now redundant with the ps and pdf support in the rest of the test suite. * test/multi-page.c: (draw), (draw_five_pages), (main): Add a new one-off test for testing show_page with both the ps and pdf backends. @ text @d3 13 @ 1.1215 log @ 2006-01-12 Carl Worth Some fixes for the fact that multi-page output was totally broken for cairo_ps_surface_t (at least): * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_start_page), (_cairo_ps_surface_end_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page), (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_fill): Move the Y-axis-flipping to be on a per-page basis (as it was before and as it must be). Put page number back in, (still missing th number of pages from the header). * test/ps-surface.c: (draw), (main): Add multi-page output for better testing. @ text @d3 17 @ 1.1214 log @ 2006-01-11 Carl Worth * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Paint with white to intermediate RGB24 images before replaying meta-surface to preserve default white background instead of forcing a black background instead. @ text @d1 20 @ 1.1213 log @ 2006-01-11 Carl Worth * ROADMAP: Note that PS backend has now been switched over to use cairo_paginated_surface_t. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_acquire_source_image), (_paint_page), (_cairo_paginated_surface_snapshot): Switch from ARGB32 to RGB24 for intermediate image surface since that's all that the current users of cairo_paginated_surface support anyway. * src/cairo-ps-surface.c: (_cairo_ps_surface_emit_header), (_cairo_ps_surface_emit_footer), (_cairo_ps_surface_create_for_stream_internal), (_cairo_surface_is_ps), (cairo_ps_surface_set_dpi), (_cairo_ps_surface_finish), (_cairo_ps_surface_start_page), (_cairo_ps_surface_copy_page), (_cairo_ps_surface_show_page), (_cairo_ps_surface_add_fallback_area), (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_path_move_to), (_cairo_ps_surface_path_line_to), (_cairo_ps_surface_path_curve_to), (_cairo_ps_surface_path_close_path), (_cairo_ps_surface_intersect_clip_path), (_cairo_ps_surface_get_extents), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_fill): Switch cairo_ps_surface_t over to use the new cairo_paginated_surface_t. This drastically simplifies the implementation, but temporarily puts the PostScript output back into the land of one-image-per-page. To be fixed soon though with improvements to cairo_paginated_surface_t. Everything still passes the test suite which is good. The test suite currently does no testing of multi-page output, which is quite bad. @ text @d3 9 @ 1.1212 log @ 2006-01-11 Carl Worth * ROADMAP: Note that from here on out, the PDF output should always pass the entire test suite! * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_surface_is_paginated), (_cairo_paginated_surface_get_target): Add new functions needed by users of cairo_paginated_surface_t. * src/cairo-paginated-surface.c: (_cairo_paginated_surface_snapshot): Always snapshot a paginated surface to an image surface, rather than a surface similar to the target. We do this since paginated target surfaces are allowed to not be complete surfaces, (such as not implementing acquire_source_surface). * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_stream_internal), (_cairo_surface_is_pdf), (cairo_pdf_surface_set_dpi): Switch the implementation of cairo_pdf_surface_t to use cairo_paginated_surface_t. For now this means that all PDF output is fallback images, but this can change incrementally as we go forward. @ text @d3 34 @ 1.1211 log @2006-01-10 Anders Carlsson * src/cairo-atsui-font.c: (CGAffineTransformMakeWithCairoFontScale): (CreateSizedCopyOfStyle): (_cairo_atsui_font_create_scaled): (_cairo_atsui_font_old_show_glyphs): Remove old scale matrix since it exists in our base class. (_cairo_atsui_font_set_metrics): Fix descent calculation. @ text @d1 25 @ 1.1210 log @2006-01-10 Anders Carlsson * src/Makefile.am: Add cairo-quartz-private.h * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): If the destination surface is a quartz surface, get the clip mask from it. * src/cairo-quartz-private.h: Added. * src/cairo-quartz-surface.c: (_cairo_quartz_surface_finish): (_cairo_quartz_surface_set_clip_region): (cairo_quartz_surface_create): Keep a copy of the clip mask around. (_cairo_surface_is_quartz): New function which determines if a given surface is a quartz surface. @ text @d3 12 @ 1.1209 log @2006-01-09 Carl Worth * test/cairo-test.h: Add printf format attribute to cairo_test_log. @ text @d1 21 @ 1.1208 log @ 2006-01-06 Carl Worth Reviewed by keithp * src/cairo-paginated-surface.c: (_paint_page), (_cairo_paginated_surface_copy_page), (_cairo_paginated_surface_show_page): Change the paginated surface to force all output to come from an image surface (to be refined incrementally as we hook real surface backends up to it). @ text @d1 4 @ 1.1207 log @2006-01-06 Carl Worth Reviewed by keithp * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_copy_page), (_cairo_paginated_surface_show_page): Implement copy_page for paginated surface. Fix show_page to destroy the meta-surface and create a new one. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_copy_page), (_cairo_surface_show_page): Change these functions to advertise when they are not supported, so that _cairo_paginated_copy_page can implement things differently depending on whether or not it is personal. * src/cairo-gstate.c: (_cairo_gstate_copy_page), (_cairo_gstate_show_page): Check return values from _cairo_surface_show/copy_page. @ text @d5 10 @ 1.1206 log @ 2006-01-05 Carl Worth * ROADMAP: Slip 1.2.0 projected data (again) out to 2006-01-13. Note that win32 is now incorporated into the test suite and is only failing two tests (self-copy and trap-clip). Note new progress on cairo_push/pop_group. Add item to support pango's hex-box drawing. Note that gradient computation performance has been improved. Note that experimental SVG backend has been added. @ text @d1 21 @ 1.1205 log @Gradient updates in SVG backend and no sorting of color stops in SVG or PDF backend @ text @d1 10 @ 1.1204 log @Update gradient code in glitz backend @ text @d3 7 @ 1.1203 log @Update gradient code in PDF backend @ text @d3 3 @ 1.1202 log @ 2006-01-04 Carl Worth * Originally: 2005-10-10 David Reveman * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_set_matrix): * src/cairo-matrix.c: (_cairo_matrix_to_pixman_matrix): * src/cairo-pattern.c: (_cairo_gradient_pattern_init_copy), (_cairo_pattern_init_linear), (_cairo_pattern_init_radial), (_cairo_pattern_add_color_stop), (cairo_pattern_add_color_stop_rgb), (cairo_pattern_add_color_stop_rgba), (_cairo_linear_pattern_classify), (_cairo_pattern_acquire_surface_for_gradient), (_cairo_pattern_acquire_surface): Throw away old gradient code from within cairo-pattern.c in favor of using new support in pixman for gradients. * test/clip-operator-ref.png: * test/clip-operator-rgb24-ref.png: * test/gradient-alpha-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/linear-gradient-ref.png: * test/linear-gradient-rgb24-ref.png: * test/mask-ref.png: * test/mask-rgb24-ref.png: * test/operator-clear-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-ref.png: * test/operator-source-rgb24-ref.png: * test/text-pattern-ref.png: * test/text-pattern-rgb24-ref.png: * test/trap-clip-ref.png: * test/trap-clip-rgb24-ref.png: * test/unbounded-operator-ref.png: * test/unbounded-operator-rgb24-ref.png: Update reference images for all tests involving gradients since the gradient output has changed slightly. @ text @d1 5 @ 1.1201 log @2006-01-03 Vladimir Vukicevic * src/cairo-glitz-surface.c (_cairo_glitz_surface_create_similar): Clamp surface dimensions to a minimum of 1. (_cairo_glitz_surface_get_image): Set the glitz clip to NULL before calling glitz_get_pixels, to return the full surface contents. Restore clip afterwards. (_cairo_glitz_surface_composite_trapezoid): Return UNSUPPORTED if the antialias is anything other than DEFAULT/GRAY. * src/cairo-image-surface.c (_cairo_image_surface_create_with_masks): Try to recover a standard cairo_format_t from given pixman format masks, so that various things that only work with a standard format work correctly. * test/cairo-test.c: Remove cairo_glitz_surface_write_to_png, replace with generic cairo_surface_write_to_png (since it works with image-surface create_with_masks fix) @ text @d1 40 @ 1.1200 log @* test/make-html.pl: Clean up output some; show only images that fail, otherwise just show pass/fail squares. @ text @d3 19 @ 1.1199 log @2005-12-30 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_create_for_document): no more has_clip boolean. Init clip_level. (_cairo_surface_intersect_clip_path): a NULL path means reset of clipping region, not back to previous clipping level. @ text @d1 5 @ 1.1198 log @2005-12-28 Emmanuel Pacaud * _cairo_svg_document_create: namespace declarations for SVG and XLINK (#5411). @ text @d1 7 d10 2 a11 2 * _cairo_svg_document_create: namespace declarations for SVG and XLINK (#5411). @ 1.1197 log @2005-12-27 Christian Biesinger * test/mask-beos-rgb24-ref.png: * test/mask-beos_bitmap-argb32-ref.png: * test/mask-beos_bitmap-rgb24-ref.png: * test/set-source-beos-rgb24-ref.png: * test/set-source-beos_bitmap-rgb24-ref.png: * test/trap-clip-beos-rgb24-ref.png: * test/trap-clip-beos_bitmap-rgb24-ref.png: Add BeOS-specific reference images for tests where the maximum color difference is 1. @ text @d1 5 @ 1.1196 log @2005-12-27 Christian Biesinger * src/cairo-beos-surface.cpp: Implement composite for the beos backend. Don't map CAIRO_OPERATOR_ADD to B_OP_ADD for now, something's broken there. @ text @d3 13 @ 1.1195 log @2005-12-26 Christian Biesinger * src/cairo-beos-surface.cpp: Don't require that the caller locks the view; do it in cairo code. * test/cairo-test-beos.cpp: Remove the now-unneeded locking @ text @d1 6 @ 1.1194 log @ 2005-12-21 Carl Worth * src/cairo-ps-surface.c: Remove some unneeded backend functions (composite, fill_rectangles, composite_trapezoids, old_show_glyphs). @ text @d1 6 @ 1.1193 log @ 2005-12-21 Carl Worth * src/test-meta-surface.c: * src/cairo-paginated-surface.c: Don't implement create_similar for the test-meta or the paginated surface. This was slowing things down a _lot_ (about 11× for the mask test for example) without any improvement in output quality. We can revisit this again later if there's any output improvement to be had down the road. @ text @d3 6 @ 1.1192 log @ 2005-12-21 Carl Worth * src/Makefile.am: * src/cairo-paginated-surface-private.h: * src/cairo-paginated-surface.c: (_cairo_paginated_surface_create), (_cairo_paginated_surface_create_similar), (_cairo_paginated_surface_finish), (_cairo_paginated_surface_acquire_source_image), (_cairo_paginated_surface_release_source_image), (_cairo_paginated_surface_show_page), (_cairo_paginated_surface_intersect_clip_path), (_cairo_paginated_surface_get_extents), (_cairo_paginated_surface_paint), (_cairo_paginated_surface_mask), (_cairo_paginated_surface_stroke), (_cairo_paginated_surface_fill), (_cairo_paginated_surface_show_glyphs), (_cairo_paginated_surface_snapshot): Add a private cairo_paginated_surface_t which builds on top of the meta surface and is intended to provide an easy interface with common functionality for the various paginated surface types (ps, pdf, etc.). * src/test-paginated-surface.c: (_test_paginated_surface_create_for_data): * src/test-paginated-surface.h: * test/cairo-test.c: (create_test_paginated_surface), (test_paginated_write_to_png), (cleanup_test_paginated), (cairo_test_expecting): Add test_paginated_surface_t which is another test surface enabled with --enable-test-surfaces. The test_meta_surface code served as the basis for cairo_paginated_surface_t so that test surface may be entirely superfluous now. @ text @d3 10 @ 1.1191 log @ 2005-12-21 Carl Worth Here is a cleaner implementation of the _cairo_array_t change which was previously committed inadvertently. * src/cairoint.h: * src/cairo-array.c: (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_index), (_cairo_array_allocate), (_cairo_user_data_array_fini), (_cairo_user_data_array_get_data), (_cairo_user_data_array_set_data): Fix buggy implementation of _cairo_array_snapshot by changing array->elements to be a pointer to a pointer. This extra level of indirection allows the snapshot array to point to a pointer which will itself get changed when new storage is needed for a growing array. Previously, the snapshot would be left pointing at stale storage. * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): * src/cairo-win32-font.c: (_flush_glyphs): Fix to call _cairo_array_index rather than grabbing array->elements directly and casting (which cast is now wrong with the change in implementation of array->index). @ text @d3 32 @ 1.1190 log @ 2005-12-21 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_index), (_cairo_array_allocate), (_cairo_user_data_array_fini), (_cairo_user_data_array_get_data), (_cairo_user_data_array_set_data): * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): * src/cairo-win32-font.c: (_flush_glyphs): Revert inadvertent commit (immediately previous). @ text @d3 23 @ 1.1189 log @ 2005-12-21 Carl Worth * src/test-meta-surface.h: Fix indentation. @ text @d3 13 @ 1.1188 log @ 2005-12-21 Carl Worth * src/cairo-meta-surface-private.h: Remove cruft from old commands that the meta surface no longer implements (composite, fill_rectangles, composite_trapezoids, and set_clip_region). @ text @d3 4 @ 1.1187 log @2005-12-21 Christian Biesinger * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_create_for_pattern): * src/cairo-gstate.c: * src/cairoint.h: Fix some typos @ text @d1 6 @ 1.1186 log @2005-12-21 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_create_for_document): store surfaces in a node, and clip to surface area. Now SVG backend should pass pixman-rotate test. (emit_composite_svg_pattern): emit transformation matrix. (_cairo_svg_surface_intersect_clip_path): don't use xmlBuffer here. @ text @d1 8 @ 1.1185 log @ 2005-12-20 Carl Worth * src/cairo-meta-surface.c: Add some comments describing what a cairo_meta_surface_t is. * src/test-fallback-surface.c: * src/test-fallback-surface.h: Remove unused _test_fallback_surface_create_for_data. * src/test-meta-surface.c: * src/test-meta-surface.h: Remove unused _test_meta_surface_create_for_data. Add missing source file src/test-meta-surface.h. @ text @d1 8 @ 1.1184 log @ 2005-12-20 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_get_antialias): * src/cairo-surface-fallback.c: (_create_composite_mask_pattern), (_clip_and_composite_with_mask), (_clip_and_composite_combine), (_clip_and_composite_source), (_cairo_rectangle_empty), (_clip_and_composite), (_composite_trap_region), (_composite_traps_draw_func), (_clip_and_composite_trapezoids), (_cairo_surface_fallback_paint), (_cairo_surface_fallback_mask), (_cairo_surface_fallback_stroke), (_cairo_surface_fallback_fill), (_cairo_surface_fallback_show_glyphs): Move more fallback code from cairo-gstate.c to cairo-surface-fallback.c where it belongs. In the process, clean up the function names a bit and make the whole mess static. @ text @d3 14 @ 1.1183 log @ 2005-12-19 Carl Worth * src/Makefile.am: * src/cairo-surface-fallback-private.h: * src/cairo-surface-fallback.c: (_fallback_init), (_fallback_fini), (_cairo_surface_fallback_paint), (_cairo_surface_mask_draw_func), (_cairo_surface_fallback_mask), (_cairo_surface_fallback_stroke), (_cairo_surface_fallback_fill), (_cairo_surface_old_show_glyphs_draw_func), (_cairo_surface_fallback_show_glyphs), (_cairo_surface_fallback_snapshot), (_cairo_surface_fallback_composite), (_cairo_surface_fallback_fill_rectangles), (_cairo_surface_fallback_composite_trapezoids): * src/cairo-surface.c: (_cairo_surface_snapshot), (_cairo_surface_composite), (_cairo_surface_fill_rectangles), (_cairo_surface_paint), (_cairo_surface_mask), (_cairo_surface_stroke), (_cairo_surface_fill), (_cairo_surface_composite_trapezoids), (_cairo_surface_show_glyphs): Begin moving fallback code out of cairo-surface.c and into cairo-surface-fallback.c. @ text @d1 16 @ 1.1182 log @ 2005-12-19 Carl Worth * src/cairo-surface.c: (_cairo_surface_create_similar_solid): Use _cairo_surface_paint rather than _cairo_surface_fill_rectangle as only the former is guaranteed to work with all backends. * src/test-fallback-surface.c: Refine the comment describing this test surface. * src/Makefile.am: * src/test-meta-surface.c: (_test_meta_surface_create), (_test_meta_surface_create_for_data), (_test_meta_surface_create_similar), (_test_meta_surface_finish), (_test_meta_surface_acquire_source_image), (_test_meta_surface_release_source_image), (_test_meta_surface_show_page), (_test_meta_surface_intersect_clip_path), (_test_meta_surface_get_extents), (_test_meta_surface_paint), (_test_meta_surface_mask), (_test_meta_surface_stroke), (_test_meta_surface_fill), (_test_meta_surface_show_glyphs), (_test_meta_surface_snapshot): Add new test surface for exercising cairo_meta_surface. * test/.cvsignore: * test/cairo-test.c: (create_image_surface), (create_test_fallback_surface), (create_test_meta_surface), (cairo_test_for_target), (cairo_test_expecting): Simplify the image and test_fallback targets by not using create_for_data. Allow for NULL cleanup target functions. Add support for the test_meta_surface. @ text @d3 22 @ 1.1181 log @2005-12-20 Christian Biesinger * src/cairo-beos-surface.cpp: Use correct color when OPERATOR_SOURCE is used on a surface without alpha information. @ text @d1 31 @ 1.1180 log @2005-12-19 Emmanuel Pacaud * src/cairo-svg-surface.c (_cairo_svg_surface_stroke): fix stroke linewidth and dashes, I hope. Emit stroke-dashoffset. @ text @d1 5 @ 1.1179 log @2005-12-19 Keith Packard * src/cairo-clip.c: (_cairo_clip_intersect_to_rectangle), (_cairo_clip_intersect_to_region): * src/cairo-gstate.c: (_create_composite_mask_pattern), (_cairo_gstate_clip_and_composite), (_composite_trap_region), (_cairo_surface_clip_and_composite_trapezoids): * src/cairo-surface.c: (_cairo_surface_set_clip): Use NULL clip instead of special serial zero cairo_clip_t Should make using surfaces easier. @ text @d14 5 @ 1.1178 log @2005-12-19 Emmanuel Pacaud * configure.in: CAIRO_CAN_TEST_SVG_SURFACE depends on librsvg. * src/cairo-svg-surface.c: cairo_svg_surface_t owns a xml node, for support of svg_surface_composite. (_cairo_svg_surface_create_for_document): init xml_node. All surfaces except first one are stored in defs node. (emit_composite_image_pattern): returns pattern size, and don't call emit_transform if is_pattern == TRUE. (emit_composite_svg_pattern): do something. (emit_composite_pattern): returns pattern size. (_cairo_svg_surface_composite): xml_node is stored in cairo_svg_surface_t now. (emit_surface_pattern): emit surface pattern width here. Fix property names. (_cairo_svg_path_close_path): don't close path if no current point. (_cairo_svg_surface_fill_rectangles): new. (_cairo_svg_surface_fill): emit fill rule. xml_node is in surface now. (_cairo_svg_surface_composite_trapezoids): xml_node is in surface now. (_cairo_svg_surface_stroke): ditto. (_cairo_svg_surface_intersect_clip_path): ditto. Emit fill rule. * test/.cvsignore: ignore svg2png. * test/Makefile.am: build svg2png utility. * test/cairo-test.c (create_svg_surface): new. (svg_surface_write_to_png): new. (cleanup_svg): new. (cairo_test_expecting): test SVG backend if CAIRO_HAS_SVG_SURFACE && CAIRO_CAN_TEST_SVG_SURFACE. * test/svg2png.c: new. @ text @d1 11 @ 1.1177 log @2005-12-19 Christian Biesinger * configure.in: * src/cairo-beos-surface.cpp: Some final changes to the beos backend before checkin were wrong, fixing. @ text @d1 30 @ 1.1176 log @2005-12-19 Christian Biesinger * src/cairo-beos-surface.cpp: Use gtk-doc syntax rather than doxygen syntax for internal functions (to avoid warnings from gtk-doc when it processes this file) @ text @d3 6 @ 1.1175 log @2005-12-19 Christian Biesinger * INSTALL: Mention new --enable-svg option * README: Add notes for the new BeOS backend * configure.in: Add disabled by default BeOS backend * src/Makefile.am: Add BeOS files * src/cairo-beos-surface.cpp: New * src/cairo-beos.h: New * src/cairo-features.h.in: BEOS_SURFACE_FEATURE * src/cairoint.h: BeOS mutex functions * test/.cvsignore: Ignore files generates by the BeOS tests * test/Makefile.am: Add cairo-test-beos.* * test/cairo-test-beos.cpp: New. (Must be a C++ file, hence not part of cairo-test.c) * test/cairo-test-beos.h: New. * test/cairo-test.c: (cairo_test_expecting): Test BeOS backend. @ text @d3 6 @ 1.1174 log @2005-12-19 Christian Biesinger reviewed by: cworth * src/cairo-clip-private.h: Move enum to cairoint.h * src/cairoint.h: add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS, and move an enum from cairo-clip-private.h here (C++ doesn't like forward-declarations of enums). Final patch for allowing C++ backends. @ text @d3 17 @ 1.1173 log @2005-12-17 Christian Biesinger * configure.in: make the SVG backend freetype message actually mention SVG rather than PDF. @ text @d1 10 @ 1.1172 log @ 2005-12-16 Carl Worth * src/test-fallback-surface.c: (_test_fallback_surface_create_similar): Return a test_fallback_surface_t rather than a cairo_image_surface_t for better testing, (otherwise, an image surface would meet the semantic demands of create_similar just fine). @ text @d1 5 @ 1.1171 log @ 2005-12-16 Carl Worth * configure.in: Add a new option --enable-test-surfaces. * src/Makefile.am: * src/test-fallback-surface.h: * src/test-fallback-surface.c: (_test_fallback_surface_create), (_test_fallback_surface_create_for_data), (_test_fallback_surface_create_similar), (_test_fallback_surface_finish), (_test_fallback_surface_acquire_source_image), (_test_fallback_surface_release_source_image), (_test_fallback_surface_acquire_dest_image), (_test_fallback_surface_release_dest_image), (_test_fallback_surface_get_extents): New surface backend for testing only. It has as many NULL backend entries as possible. * test/Makefile.am: * test/cairo-test.c: (create_test_fallback_surface), (cleanup_test_fallback), (cairo_test_expecting): Add support to test the new test_fallback backend. @ text @d3 8 @ 1.1170 log @2005-12-16 Carl Worth * src/cairoint.h: Don't export cairo_image_surface_set_clip_region. * src/cairo-image-surface.c: (_cairo_image_surface_finish), (_cairo_image_surface_set_clip_region), (_cairo_image_surface_get_extents): Eliminate some unnecessary _cairo_image_abstract_surface variations of backend function. * src/cairo-font-subset.c: Remove errant include of cairo-pdf.h. @ text @d3 22 @ 1.1169 log @2005-12-16 Christian Biesinger reviewed by: cworth * CODING_STYLE: * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): * src/cairo-clip-private.h: * src/cairo-clip.c: (_cairo_clip_combine_to_surface): * src/cairo-ft-font.c: (_cairo_ft_show_glyphs): * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_set_operator), (_cairo_gstate_get_operator), (_cairo_gstate_paint), (_cairo_operator_bounded_by_mask), (_cairo_operator_bounded_by_source), (_cairo_gstate_clip_and_composite_with_mask), (_cairo_gstate_clip_and_composite_combine), (_cairo_gstate_clip_and_composite), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_composite_trap_region), (_composite_traps_draw_func), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_fill), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (_pixman_operator), (_cairo_image_surface_composite), (_cairo_image_surface_fill_rectangles), (_cairo_image_surface_composite_trapezoids): * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_paint), (_cairo_meta_surface_mask), (_cairo_meta_surface_stroke), (_cairo_meta_surface_fill), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_replay): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite), (_cairo_pdf_surface_fill_rectangles), (_cairo_pdf_surface_fill), (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_old_show_glyphs): * src/cairo-ps-surface.c: (_cairo_ps_surface_composite), (_cairo_ps_surface_fill_rectangles), (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_old_show_glyphs), (_cairo_ps_surface_paint), (_cairo_ps_surface_mask), (_cairo_ps_surface_stroke), (_cairo_ps_surface_fill), (_cairo_ps_surface_show_glyphs), (operator_always_opaque), (operator_always_translucent), (color_operation_needs_fallback), (pattern_operation_needs_fallback), (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_old_show_glyphs), (_ps_output_paint), (_ps_output_mask), (_ps_output_stroke), (_ps_output_fill), (_ps_output_show_glyphs): * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): * src/cairo-surface.c: (_fallback_composite), (_cairo_surface_composite), (_cairo_surface_fill_rectangle), (_cairo_surface_fill_region), (_fallback_fill_rectangles), (_cairo_surface_fill_rectangles), (_fallback_paint), (_cairo_surface_paint), (_cairo_surface_mask_draw_func), (_fallback_mask), (_cairo_surface_mask), (_fallback_stroke), (_cairo_surface_stroke), (_fallback_fill), (_cairo_surface_fill), (_fallback_composite_trapezoids), (_cairo_surface_composite_trapezoids), (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs), (_cairo_surface_old_show_glyphs): * src/cairo-svg-surface.c: (_cairo_svg_surface_composite), (emit_operator), (_cairo_svg_surface_fill), (_cairo_svg_surface_composite_trapezoids), (_cairo_svg_surface_stroke), (_cairo_svg_surface_old_show_glyphs): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_show_glyphs): * src/cairo-win32-surface.c: (_cairo_win32_surface_composite), (categorize_solid_dest_operator), (_cairo_win32_surface_fill_rectangles): * src/cairo-xcb-surface.c: (_render_operator), (_cairo_xcb_surface_composite), (_cairo_xcb_surface_fill_rectangles), (_cairo_xcb_surface_composite_trapezoids): * src/cairo-xlib-surface.c: (_operator_needs_alpha_composite), (_categorize_composite_operation), (_recategorize_composite_operation), (_render_operator), (_cairo_xlib_surface_composite), (_cairo_xlib_surface_fill_rectangles), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_old_show_glyphs8), (_cairo_xlib_surface_old_show_glyphs16), (_cairo_xlib_surface_old_show_glyphs32), (_cairo_xlib_surface_old_show_glyphs): * src/cairoint.h: * test/get-and-set.c: (settings_set), (settings_get), (settings_equal): Globally rename "operator" to "op", to allow writing backends in C++ @ text @d1 11 @ 1.1168 log @ 2005-12-15 Carl Worth * configure.in: Make poppler check require poppler >= 0.4.1. @ text @d1 88 @ 1.1167 log @2005-12-14 Stuart Parmenter * test/cairo-test.c: #define access _access and #define F_OK to 0 on for MSVC * test/cairo-test.h: add CAIRO_BEGIN_DECLS and CAIRO_END_DECLS @ text @d1 4 @ 1.1166 log @ 2005-12-14 Carl Worth * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_replay): Remove dead code from cairo-meta-surface: vestiges of meta-surface backend implementations of composite, fill_rectangles, composite_trapezoids, set_clip_region, and old_show_glyphs. @ text @d1 6 @ 1.1165 log @ 2005-12-14 Carl Worth * configure.in: Add preliminary support for --enable-gcov. Thanks to Pierre-Alain Joye (with inspiration from the PHP gcov support by Jani Taskinen and Ilia Alshanetsky). * src/.cvsignore: * test/.cvsignore: Ignore *.gcda and *.gcno gcov data files. @ text @d3 9 @ 1.1164 log @ 2005-12-13 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_finish): Make creator be cairo, not Cairo. @ text @d1 9 @ 1.1163 log @2005-12-12 Vladimir Vukicevic * configure.in: bump glitz req to 0.5.1, test for backends * test/cairo-test.c: Add glitz backend (original patches from sunmoon1997@@gmail.com), including glx, wgl, and agl support. Add CAIRO_TEST_TARGET environment variable for limiting backends to test. * test/make-html.pl: Takes all *.log files and spits out html to stdout that can be used to view all test results at once. @ text @d1 5 @ 1.1162 log @2005-12-08 Emmanuel Pacaud * test/.cvsignore: shhh... @ text @d1 12 @ 1.1161 log @2005-12-08 Emmanuel Pacaud * configure.in: add optionnal disabled by default SVG backend. * src/Makefile.am: include SVG backend files. * src/cairo-features.h.in: include SVG_SURFACE_FEATURE. * src/cairo-output-stream.c: rename dtostr to _cairo_dtostr for use in cairo-svg-surface.c. * src/cairoint.h: _cairo_dtostr declaration. * src/cairo-svg.h: new. * src/cairo-svg-surface.c: new. * test/Makefile.am: build svg-surface and svg-clip. * test/svg-surface.c: new. * test/svg-surface.h: new. @ text @d3 4 @ 1.1160 log @ 2005-12-07 Carl Worth * ROADMAP: Note that that PDF backend has been incorporated into the test suite. @ text @d1 16 @ 1.1159 log @ 2005-12-07 Carl Worth * configure.in: Add checks for poppler and friends which are needed by pdf2png. Set CAIRO_CAN_TEST_PDF_SURFACE as both a #define and an automake conditional. * test/Makefile.am: Build pdf2png if possible. * test/cairo-test.c: (create_pdf_surface), (pdf_surface_write_to_png), (cleanup_pdf), (cairo_test_expecting): Add support for testing the PDF backend. * test/pdf2png.c: (main): New utility program to convert a PDF file into a PNG image using poppler (thanks to Kristian Høgsberg). * test/.cvsignore: Ignore new stuff generated by PDF backend testing. @ text @d3 5 @ 1.1158 log @ 2005-12-07 Carl Worth * ROADMAP: Note that self-copy now works with the PS backend. * src/cairo-array.c: (_cairo_array_init), (_cairo_array_init_snapshot), (_cairo_array_fini), (_cairo_array_grow_by), (_cairo_array_truncate), (_cairo_array_append), (_cairo_array_append_multiple), (_cairo_array_allocate): Add _cairo_array_init_snapshot and checks for is_snapshot throughout. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_acquire_source_image), (_fallback_snapshot), (_cairo_surface_snapshot): Add a new surface->backend->snapshot function. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar), (_cairo_meta_surface_finish), (_cairo_meta_surface_acquire_source_image), (_cairo_meta_surface_release_source_image), (_cairo_meta_surface_snapshot), (_cairo_meta_surface_get_extents): Implement _cairo_meta_surface_snapshot and _cairo_meta_surface_acquire/release_source_image. Change _cairo_meta_surface_create to require the width and height in pixels to be used when replaying for purposed of _cairo_meta_surface_aquire_source_image. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_show_page), (_cairo_ps_surface_snapshot), (_ps_output_old_show_glyphs): Track change in prototype of _cairo_meta_surface_create. Implement _cairo_ps_surface_snapshot by deferring down into _cairo_meta_surface_snapshot. @ text @d3 18 @ 1.1157 log @ 2005-12-07 Carl Worth * test/cairo-test.c: (create_ps_surface): Fix to check cairo_surface_status rather than !surface which is always false. (cleanup_ps): Fix leak of filename memory. @ text @d3 35 @ 1.1156 log @ 2005-12-07 Carl Worth * configure.in: Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. @ text @d3 6 @ 1.1155 log @glitz backend gradient fix @ text @d1 6 @ 1.1154 log @More updates to track latest changes to glitz @ text @d1 5 @ 1.1153 log @Track changes to glitz @ text @d1 6 @ 1.1152 log @ 2005-11-21 Carl Worth * src/pixman-remap.h: Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. @ text @d1 5 @ 1.1151 log @ 2005-11-21 Carl Worth * ROADMAP: Add reminder to fix all memory leaks (as determined by the test suite) before release 1.2.0. * src/cairo-gstate.c: (_cairo_gstate_stroke), (_cairo_gstate_fill): Patch leak of patterns as noted in bug #5100 (thanks to Richard Stellingwerff ). @ text @d3 5 @ 1.1150 log @ 2005-11-18 Carl Worth * src/pixman-remap.h: Remove spurios INT_ prefixes which break the build with very recent binutils. @ text @d1 9 @ 1.1149 log @2005-11-17 Stuart Parmenter * test/cairo-test.c: (create_win32_surface), (cleanup_win32), (cairo_test_expecting): Hooked up tests to run on Windows with a Windows surface @ text @d1 5 @ 1.1148 log @2005-11-14 Anders Carlsson * src/cairo-quartz-surface.c: (_cairo_quartz_surface_release_dest_image): If the surface is flipped, flip the CG coordinate system before drawing the images. (cairo_quartz_surface_create): * src/cairo-quartz.h: Add "flipped" argument to cairo_quartz_surface_create. @ text @d1 6 @ 1.1147 log @ 2005-11-10 Carl Worth * ROADMAP: Change scheduled release date of 1.2.0 out to 2005-12-15. @ text @d1 11 @ 1.1146 log @ 2005-11-08 Carl Worth * ROADMAP: Note that PS is now passing all tests except for self-copy. * src/cairo-ps-surface.c: (_cairo_ps_surface_paint), (_cairo_ps_surface_mask), (_cairo_ps_surface_stroke), (_cairo_ps_surface_fill), (_cairo_ps_surface_show_glyphs), (_ps_output_paint), (_ps_output_mask), (_ps_output_stroke), (_ps_output_fill), (_ps_output_show_glyphs): Add missing glue to hook up PS backend with new meta-surface support for the 5 basic drawing operations. Currently, this forces image fallbacks for all operations. * test/cairo-test.c: (ps_surface_write_to_png): Switch from gs device of pngalpha to png16m which for some reason gives the correct result for nil-surface now, while pngalpha does not. * test/clip-operator.c: (draw): Key off of N_OPERATORS as the loop control for easier trimming down of this test case when debugging. * src/cairoint.h: Rename stroke_style parameter to style in backend->stroke parameter list. * test/caps-joins-ps-rgb24-ref.png: * test/caps-sub-paths-ps-rgb24-ref.png: * test/clip-fill-rule-ps-rgb24-ref.png: * test/clip-nesting-ps-rgb24-ref.png: * test/clip-twice-ps-rgb24-ref.png: * test/dash-caps-joins-ps-rgb24-ref.png: * test/dash-offset-negative-ps-rgb24-ref.png: * test/fill-and-stroke-ps-rgb24-ref.png: * test/fill-rule-ps-rgb24-ref.png: * test/leaky-polygon-ps-rgb24-ref.png: * test/line-width-ps-rgb24-ref.png: * test/path-data-ps-rgb24-ref.png: * test/rectangle-rounding-error-ps-rgb24-ref.png: * test/show-text-current-point-ps-rgb24-ref.png: * test/text-antialias-gray-ps-rgb24-ref.png: * test/text-antialias-none-ps-rgb24-ref.png: * test/text-antialias-subpixel-ps-rgb24-ref.png: * test/transforms-ps-rgb24-ref.png: * test/unantialiased-shapes-ps-rgb24-ref.png: Remove PS-specific reference images for many tests which are now using more fallback paths than before. @ text @d1 5 @ 1.1145 log @ 2005-11-08 Carl Worth * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_paint), (_cairo_meta_surface_mask), (_cairo_meta_surface_stroke), (_cairo_meta_surface_fill), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_replay): Add support to cairo_meta_surface for the 5 basic drawing operations. Remove _cairo_meta_surface_get_extents and _cairo_meta_surface_old_show_glyphs. * src/cairo-meta-surface.c: (_cairo_meta_surface_create), (_cairo_meta_surface_create_similar): Remove size for _cairo_meta_surface_create. It is no longer needed now that get_extents is not a required backend function. * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (_cairo_ps_surface_show_page): Track change in cairo_meta_surface_create no longer requiring a size * src/cairoint.h: * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): * src/cairo-surface.c: (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs): Qualify the glyphs argument to backend->show_glyphs as const. * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): Whitespace style cleanup. @ text @d3 46 @ 1.1144 log @ 2005-11-08 Carl Worth * ROADMAP: Split the 1.2.0 features into "essential" and "desired". @ text @d3 31 @ 1.1143 log @ 2005-11-08 Carl Worth * ROADMAP: Slip the 1.2 release by two weeks to 2005-11-15. @ text @d3 5 @ 1.1142 log @ 2005-11-07 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_append_multiple), (_cairo_array_allocate): Add new _cairo_array_allocate function for growing the array and getting a pointer to the buffer of new data. This is intended to be used in place of the abuse of passing data=NULL to _cairo_array_append_multiple. * src/cairo-font-subset.c: (cairo_pdf_ft_font_allocate_write_buffer): Add new function to be used instead of the abuse of pasing data=NULL to cairo_pdf_ft_font_write. * src/cairo-font-subset.c: (cairo_pdf_ft_font_write): Just return a status now instead of a pointer to the written buffer, since cairo_pdf_ft_font_allocate_write_buffer should now be used instead when a pointer is needed. * src/cairo-font-subset.c: (cairo_pdf_ft_font_align_output), (cairo_pdf_ft_font_write_generic_table), (cairo_pdf_ft_font_write_glyf_table), (cairo_pdf_ft_font_write_hmtx_table), (cairo_pdf_ft_font_write_offset_table): Switch to use cairo_pdf_ft_font_allocate_write_buffer. * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): Fix use of uninitialized status value. * src/cairo-pattern.c (_cairo_pattern_get_extents): Add (not strictly necessary) initialization just to keep the compiler quiet about possibly uninitialized variables. @ text @d1 4 @ 1.1141 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy): Use field-by-field copying rather than whole structure copying. This avoids the hidden copies being overlooked in future code modifications. @ text @d3 39 @ 1.1140 log @ 2005-11-07 Carl Worth * src/cairo-clip.c (_cairo_clip_init_copy): Fix to copy region if NULL. @ text @d3 7 @ 1.1139 log @ 2005-11-07 Carl Worth * src/cairo-clip.c: (_cairo_clip_init), (_cairo_clip_fini), (_cairo_clip_reset): Reorder function bodies to match the order of fields in the structure definition. Some style cleanups. * src/cairo-clip.c: (_cairo_clip_init_copy): Fix bug in that several fields were not being copied. @ text @d3 5 @ 1.1138 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c (_cairo_gstate_init_copy): Two more instances of copy-and-reference in a single step. @ text @d3 9 @ 1.1137 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy): Perform copy and reference in a single step. * src/cairo-gstate-.c: (_cairo_gstate_fini): Remove unnecessary checks for NULL before _destroy() functions. Reset pointers to NULL after _destroy(). @ text @d3 5 @ 1.1136 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_init_copy), (_cairo_gstate_fini): Reorder function bodies to match to match the order of the fields in the structure definition. @ text @d3 9 @ 1.1135 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_create), (_cairo_gstate_clone): Style fix: test-and-bail rather than making the working body conditional. * src/cairo-gstate.c: (_cairo_gstate_destroy): Allow destroy to work on a NULL object. @ text @d3 6 @ 1.1134 log @ 2005-11-07 Carl Worth * src/Makefile.am: * src/cairoint.h: * src/cairo-stroke-style.c: (_cairo_stroke_style_init), (_cairo_stroke_style_init_copy), (_cairo_stroke_style_fini): Add functions to initialize and copy cairo_stroke_style_t objects. * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini): Use new _cairo_stroke_style functions rather than direct modification. * src/cairoint.h: Add missing prototype for _cairo_font_options_init_copy. @ text @d3 9 @ 1.1133 log @ 2005-11-07 Carl Worth * src/cairoint.h: Remove unused prototypes for _cairo_gstate_begin_group and _cairo_gstate_end_group. @ text @d3 15 @ 1.1132 log @ 2005-11-07 Carl Worth * src/cairo-gstate.c: Add documentation for _cairo_gstate_create, _cairo_gstate_init_copy, and _cairo_gstate_clone. @ text @d3 5 @ 1.1131 log @ 2005-11-05 Carl Worth * src/cairo-font-options.c: (_cairo_font_options_init_copy), (cairo_font_options_copy): Add a function for copying font options rather than just using direct structure copying. @ text @d1 5 @ 1.1130 log @ 2005-11-05 Carl Worth * src/cairo-ps-surface.c: (_cairo_ps_surface_show_page), (_cairo_ps_surface_get_font): Add missing declarations for status variables. Thanks to Mikael Hallendal for pointing this out. @ text @d3 6 @ 1.1129 log @ 2005-11-04 Carl Worth * src/cairoint.h: * src/cairo-array.c: (_cairo_array_append), (_cairo_array_append_multiple): Rename old, rarely used _cairo_array_append to _cairo_array_append_multiple. Add much more common _cairo_array_append. Fix both to return a cairo_status_t. Remove undocumented code to allow a non-copying append when elements is NULL, (let's not encourage unintialized data, shall we?) * src/cairo-array.c: (_cairo_user_data_array_set_data): Cleanup to not rely on undocumented copy-avoidance in _cairo_array_append. * src/cairo-font-subset.c: (cairo_pdf_ft_font_write): * src/cairo-meta-surface.c: (_cairo_meta_surface_composite), (_cairo_meta_surface_fill_rectangles), (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_intersect_clip_path), (_cairo_meta_surface_old_show_glyphs), (_cairo_meta_surface_fill): * src/cairo-pdf-surface.c: (_cairo_pdf_document_new_object), (_cairo_pdf_surface_add_stream), (_cairo_pdf_surface_add_pattern), (_cairo_pdf_surface_add_xobject), (_cairo_pdf_surface_add_alpha), (_cairo_pdf_surface_add_font), (_cairo_pdf_document_get_font), (_cairo_pdf_document_add_page): * src/cairo-ps-surface.c: (_cairo_ps_surface_show_page), (_cairo_ps_surface_get_font): * src/cairo-win32-font.c: (_flush_glyphs), (_add_glyph): Track change in number of arguments and return value of _cairo_array_append. @ text @d1 6 @ 1.1128 log @ 2005-11-04 Carl Worth * src/cairo-array.c: Add documentation for all _cairo_array interface functions. @ text @d3 31 @ 1.1127 log @ 2005-11-04 Carl Worth * src/cairoint.h: Rework support in the surface backend for the five basic drawing operations (paint, mask, stroke, fill, and show_glyphs). Now, all 5 operations have backend functions, and all use a consistent convention for argument naming and ordering. The old fill_path has been replaced with a new fill. The old show_glyphs function was recently renamed to old_show_glyphs and has not yet been ported to the new show_glyphs, (so all backends have a NULL show_glyphs function). In fact, of the 5 new backend functions, fill is the only one that has an implementation in any backend. As part of this cleanup a new cairo_stroke_style_t object is introduced to capture the many settings unique to the stroke operation, (line_width, line_cap, line_join, miter_limit, dash, num_dashes, and dash_offset). * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_finish), (_cairo_meta_surface_fill), (_cairo_meta_surface_replay): * src/cairo-ps-surface.c: (_cairo_ps_surface_fill), (_ps_output_fill): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_fill): Track changes in surface backend from fill_path to fill. * src/cairo-surface.c: (_fallback_paint), (_cairo_surface_paint), (_fallback_mask), (_cairo_surface_mask), (_fallback_stroke), (_cairo_surface_stroke), (_fallback_fill), (_cairo_surface_fill), (_fallback_show_glyphs), (_cairo_surface_show_glyphs): * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_paint), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_cairo_gstate_fill), (_cairo_gstate_show_glyphs): Track the new canonical argument naming and ordering for the 5 drawing operations. * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_set_line_width), (_cairo_gstate_get_line_width), (_cairo_gstate_set_line_cap), (_cairo_gstate_get_line_cap), (_cairo_gstate_set_line_join), (_cairo_gstate_get_line_join), (_cairo_gstate_set_dash), (_cairo_gstate_set_miter_limit), (_cairo_gstate_get_miter_limit), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_stroke_extents): * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_step_dash), (_cairo_stroker_init), (_cairo_stroker_join), (_cairo_stroker_add_cap), (_compute_face), (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Move various stroke style settings into new cairo_stroke_style_t. * src/cairo-glitz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Drop NULL fill_path backend function which no longer exists. @ text @d3 5 @ 1.1126 log @ 2005-11-01 Carl Worth Reviewed by: keithp * src/cairoint.h: * src/cairo-atsui-font.c: (_cairo_atsui_font_old_show_glyphs): * src/cairo-glitz-surface.c: (_cairo_glitz_surface_old_show_glyphs): * src/cairo-image-surface.c: * src/cairo-meta-surface.c: (_cairo_meta_surface_old_show_glyphs), (_cairo_meta_surface_replay): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_old_show_glyphs): * src/cairo-ps-surface.c: (_cairo_ps_surface_old_show_glyphs), (_ps_output_old_show_glyphs): * src/cairo-quartz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: (_cairo_xlib_surface_old_show_glyphs8), (_cairo_xlib_surface_old_show_glyphs16), (_cairo_xlib_surface_old_show_glyphs32), (_cairo_xlib_surface_old_show_glyphs): Rename surface->backend->show_glyphs to surface->backend->old_show_glyphs. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_show_glyphs): * src/cairo-surface.c: (_cairo_surface_old_show_glyphs_draw_func), (_fallback_show_glyphs), (_cairo_surface_show_glyphs), (_cairo_surface_old_show_glyphs): Move show_glyphs fallback from gstate to surface where it belongs. @ text @d1 57 @ 1.1125 log @2005-11-01 Keith Packard * src/cairo-surface.c: (_fallback_stroke), (_cairo_surface_stroke): Clean up argument order for _fallback_stroke to match other functions @ text @d1 29 @ 1.1124 log @ 2005-10-31 Carl Worth Originally 2005-10-28 Keith Packard : * src/cairo-gstate-private.h: Remove pen_regular field from the gstate. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_stroke_extents): * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_step_dash), (_cairo_stroker_init), (_cairo_stroker_fini), (_cairo_stroker_join), (_cairo_stroker_add_cap), (_compute_face), (_cairo_stroker_add_sub_edge), (_cairo_stroker_line_to_dashed), (_cairo_stroker_curve_to), (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): * src/cairo-surface.c: (_fallback_stroke), (_cairo_surface_stroke): Move stroke fallback from gstate to surface where it belongs. * src/cairo-pen.c: (_cairo_pen_init): Eliminate dependence on cairo_gstate_t object. * src/cairo-meta-surface.c: Fix to include just cairo-clip-private.h rather than cairo-gstate.private.h. @ text @d1 6 @ 1.1123 log @ * src/cairo-win32-font.c (_cairo_win32_scaled_font_init_glyph_path): Call _cairo_scaled_glyph_set_path(). @ text @d1 28 @ 1.1122 log @2005-10-28 Keith Packard * src/cairo-surface.c: (_fallback_paint): Use _cairo_pattern_get_extents in _fallback_paint to bound paint operators. @ text @d1 5 @ 1.1121 log @2005-10-28 Keith Packard * src/cairo-pattern.c: (_cairo_pattern_get_extents): * src/cairo-surface.c: (_fallback_mask): * src/cairoint.h: Bound mask fallback operation by transformed mask and source. This should speed up any applications calling cairo_mask with a bounded source or mask operand. @ text @d3 6 @ 1.1120 log @2005-10-28 Keith Packard * src/cairo-gstate.c: (_cairo_operator_bounded_by_mask), (_cairo_operator_bounded_by_source), (_cairo_gstate_clip_and_composite), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (_cairo_image_surface_composite), (_cairo_image_surface_composite_trapezoids): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_show_glyphs): * src/cairoint.h: Split _cairo_operator_bounded into two separate functions _cairo_operator_bounded_by_mask and _cairo_operator_bound_by_source to distinguish between how operators use source and mask operands. @ text @d3 9 @ 1.1119 log @ 2005-10-27 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_paint): Fix leak of pattern (missing _cairo_pattern_fini). * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_paint), (_cairo_gstate_clip_and_composite), (_cairo_gstate_mask): * src/cairo-pattern.c: * src/cairo-surface.c: (_cairo_surface_mask_draw_func), (_fallback_mask), (_cairo_surface_mask): Move mask fallback from gstate to surface where it belongs. * src/cairoint.h: Temporarily export some previously private cairo_gstate functions, (soon to become private cairo_fallback functions). @ text @d1 18 @ 1.1118 log @ 2005-10-27 Carl Worth * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_paint): * src/cairo-surface.c: (_fallback_paint), (_cairo_surface_paint): Move paint fallback from gstate to surface where it belongs. * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_init), (_cairo_surface_set_clip): Add clip pointer to surface. @ text @d3 17 @ 1.1117 log @ 2005-10-25 Carl Worth * src/cairo-xcb-surface.c: Add explicit NULLs for unimplmented backend functions to better document what might be improved here. @ text @d1 11 @ 1.1116 log @ 2005-10-25 Carl Worth * ROADMAP: Add critical bug #4863 to the 1.0.4 roadmap. @ text @d3 5 @ 1.1115 log @ 2005-10-25 Carl Worth * BUGS: Add mention of suspected bug in PS backend. @ text @d3 4 @ 1.1114 log @ 2005-10-18 Carl Worth * ROADMAP: Mark the composite-integer-translate-source test as now passing for the PS backend (6 to go). * src/cairo-ps-surface.c: (pattern_type_supported), (pattern_operation_needs_fallback): Use fallbacks for any operation using a pattern other than a solid pattern, since it's the only type that will actually emit anything right now. * src/cairo-ps-surface.c: (emit_surface_pattern), (emit_linear_pattern), (emit_radial_pattern): Add comments indicating these functions are not yet implemented. @ text @d1 4 @ 1.1113 log @ 2005-10-18 Carl Worth Reviewed by: keithp * ROADMAP: Mark the operator-source and trap-clip tests as now passing for the PS backend (7 to go). * src/cairo-ps-surface.c: (_ps_output_add_fallback_area), (_ps_output_finish), (_ps_output_surface_create): Replace the surface->fallback_region with a page-level surface->fallback Boolean instead, since that's all it was being used as anyway. * src/cairo-ps-surface.c: (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_intersect_clip_path), (_ps_output_show_glyphs): Do nothing in the ps_output->fallback case. * src/cairo-ps-surface.c: (_ps_output_render_fallbacks): Do nothing in the ! ps_output->fallback case. @ text @d3 14 @ 1.1112 log @ 2005-10-18 Carl Worth * ROADMAP: Added list of 9 remaining PS backend test suite failures to the 1.2.0 roadmap. @ text @d3 20 @ 1.1111 log @ 2005-10-18 Carl Worth * test/text-antialias-none-ps-rgb24-ref.png: * test/text-antialias-subpixel-ps-rgb24-ref.png: Add reference images for antialiasing modes which are basically not applicable to the PS output. @ text @d3 5 @ 1.1110 log @ 2005-10-14 Carl Worth * test/Makefile.am: * test/dash-offset-negative-ps-rgb24-ref.png: Add verified image for PS output for dash-offset-negative. @ text @d1 7 @ 1.1109 log @ 2005-10-13 Carl Worth Reviewed by: keithp, otaylor * src/cairo-meta-surface.c: (_init_pattern_with_snapshot): New function to create a snapshot copy of a pattern. * src/cairo-meta-surface.c: (_cairo_meta_surface_composite), (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_show_glyphs), (_cairo_meta_surface_fill_path): Port code to use _init_pattern_with_snapshot rather than _cairo_pattern_init_copy for all source and mask patterns. * src/cairo-surface.c: (_cairo_surface_snapshot): New function to create a snapshot copy of a surface (still preliminary---no support for meta-surfaces or any other surface for which acquire_source_surface will fail). * src/cairoint.h: * src/cairo-surface.c: (_cairo_surface_init): Add new surface->is_snapshot and initialize to FALSE. * src/cairo-surface.c: (cairo_surface_mark_dirty), (cairo_surface_mark_dirty_rectangle), (cairo_surface_set_device_offset), (_cairo_surface_clone_similar), (_cairo_surface_composite), (_cairo_surface_fill_rectangle), (_cairo_surface_fill_region), (_fallback_fill_rectangles), (_cairo_surface_fill_rectangles), (_cairo_surface_fill_path), (_cairo_surface_composite_trapezoids), (_cairo_surface_copy_page), (_cairo_surface_show_page), (_cairo_surface_show_glyphs), (_cairo_surface_composite_fixup_unbounded), (_cairo_surface_composite_shape_fixup_unbounded): Assert that none of these surface-modifying functions are ever called with a snapshot surface. @ text @d1 6 @ 1.1108 log @ 2005-10-13 Carl Worth * src/cairo-pdf-surface.c: (emit_surface_pattern): Add comment for obviously broken function. @ text @d3 37 @ 1.1107 log @ 2005-10-13 Carl Worth Reviewed by: keithp * src/cairo-surface.c: (_fallback_fill_path), (_cairo_surface_fill_path): * src/cairo-gstate.c: (_cairo_gstate_fill): Push fill_path fallbacks down from gstate into the surface where all the other fallbacks are. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_surface_is_meta): Add _cairo_surface_is_meta. * src/cairo-meta-surface.c: (_cairo_meta_surface_fill_path), (_cairo_meta_surface_replay): Add antialias to the fill_path meta-surface command. * src/cairoint.h: * src/cairo-pdf-surface.c: (_cairo_pdf_surface_fill_path): * src/cairo-ps-surface.c: (_cairo_ps_surface_fill_path), (_ps_output_fill_path): Add an antialias parameter to the backend fill_path function. * test/fill-and-stroke.c: Fix test description. @ text @d3 5 @ 1.1106 log @ 2005-10-13 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_clip_and_composite_trapezoids): Fix indentation. @ text @d3 26 @ 1.1105 log @ 2005-10-13 Carl Worth Reviewed by: otaylor * configure.in: Increment libtool versioning to 5:0:3 in anticipation of 1.2.0 which will add interfaces. The motivation for this is to make the 1.1.1 release install a library which will be considered newer than 1.0.2. * Makefile.am: Add a release-verify-soname-major check to verify that the soname major number is always 2 as part of the release-publish target. @ text @d3 5 @ 1.1104 log @ Reviewed by: cworth * src/cairo-clip.c (_cairo_clip_intersect_mask): Intersect clip region with target surface so we don't waste time and memory. @ text @d1 13 @ 1.1103 log @ 2005-10-12 Carl Worth * ROADMAP: Add extend-reflect to the 1.2.0 roadmap. Mark dashed splines and clip-all as fixed. * test/Makefile.am: * test/extend-reflect.c: (main): Mark extend-reflect as an expected failure. @ text @d1 7 @ 1.1102 log @ 2005-10-12 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/clip-fill-rule-pixel-aligned-ref.png: * test/clip-fill-rule-pixel-aligned-rgb24-ref.png: * test/clip-fill-rule-pixel-aligned.c: (pixel_aligned_path), (draw), (main): * test/clip-fill-rule-ps-rgb24-ref.png: * test/clip-fill-rule-ref.png: * test/clip-fill-rule-rgb24-ref.png: * test/clip-fill-rule.c: (star_path), (draw), (main): Add a couple of tests to improve our coverage (clipping under both fill rules). @ text @d3 9 @ 1.1101 log @ 2005-10-12 Carl Worth * src/cairo-pdf-surface.c (emit_pattern): Add return value at ASSERT_NOT_REACHED. @ text @d3 14 @ 1.1100 log @2005-10-11 Kristian Høgsberg * src/cairo-pdf-surface.c (emit_surface_pattern), (emit_linear_colorgradient), (emit_stiched_colorgradient), (emit_pattern_stops): Implement non-uniformly spaced color stops for PDF gradients. Patch from Jens Taprogge (#4722). @ text @d1 5 @ 1.1099 log @2005-10-10 Billy Biggs * src/cairo.h: Call it CAIRO_EXTEND_PAD instead of CAIRO_EXTEND_NEAREST. * src/cairoint.h: * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_acquire_surface): * src/cairo-image-surface.c (_cairo_image_surface_set_attributes): * src/cairo-pattern.c (_cairo_pattern_calc_color_at_pixel): * src/cairo-xcb-surface.c (_cairo_xcb_surface_set_attributes): * src/cairo-xlib-surface.c (_cairo_xlib_surface_set_attributes): Update everybody to use _PAD instead of _NEAREST. @ text @d1 8 @ 1.1098 log @2005-10-10 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_fill): Transform source pattern for _cairo_surface_fill_path() also (#4673). * test/ps-surface.c, test/pdf-surface.c (draw): Use cairo_fill_preserve() instead of cairo_save()/cairo_restore(). * src/cairo-pdf-surface.c (emit_surface_pattern): Add missing return values. @ text @d1 14 @ 1.1097 log @2005-10-10 Billy Biggs * src/cairo.h (cairo_extend_t): Add documentation for the extend modes. * src/cairo-pattern.c (cairo_pattern_set_extend), (cairo_pattern_get_extend): Document the extend functions for patterns. * src/cairo.c (cairo_copy_path): Remove some redundancy in the documentation. @ text @d1 11 @ 1.1096 log @2005-10-09 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (_ps_output_add_fallback_area), (_ps_output_finish), (format_is_translucent), (surface_is_translucent), (gradient_is_translucent), (pattern_is_translucent), (operator_always_opaque), (operator_always_translucent), (color_operation_needs_fallback), (pattern_operation_needs_fallback), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_show_glyphs), (_ps_output_fill_path), (_ps_output_render_fallbacks), (_ps_output_surface_create): Switch fallback from list of rects to region. Check operator and patterns for non-ps drawing ability. Operators can sometimes be always opaque, independent of the pattern, sometimes always translucent, independent of the pattern and sometimes depend on whether is translucent. @ text @d1 10 @ 1.1095 log @2005-10-09 Keith Packard * src/cairo-image-surface.c: (_cairo_surface_is_image): * src/cairoint.h: Add const to _cairo_surface_is_image parameter @ text @d3 20 @ 1.1094 log @2005-10-09 Billy Biggs * test/Makefile.am: Add a new test to start investigating bug 4183. * test/extend-reflect.c (draw), (main): The new test. * test/.cvsignore: Ignore the new test. @ text @d1 6 @ 1.1093 log @2005-10-09 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (emit_image): The comment said 'blend over white', the code did 'blend under garbage'. I made the code look like the comment. More tests pass now. mmm. @ text @d1 6 @ 1.1092 log @ 2005-10-09 Carl Worth * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/source-surface-scale-paint.c: (draw): Make surface image data static to work around a bug in cairo-meta-surface.c (not copying source surface pattern data). @ text @d1 9 @ 1.1091 log @2005-10-09 Billy Biggs reviewed by: davidr, cworth, otaylor * src/cairo.h: Add a "nearest" extend mode, where the closest pixel is repeated for pixels outside of the source area. Note that for gradients, applications which had explicitly set a repeat mode of NONE will now need to change to use NEAREST to get the same behaviour. * src/cairoint.h: Split CARIO_EXTEND_DEFAULT to indicate defaults for surfaces and gradients. The default for gradients is still the NEAREST beaviour. * src/cairo-glitz-surface.c (_cairo_glitz_pattern_acquire_surface): Support the NEAREST mode, change NONE to be TRANSPARENT. * src/cairo-image-surface.c: (_cairo_image_surface_set_attributes): Update the extend mode code to use the pixman support. * src/cairo-pattern.c (_cairo_pattern_init), (_cairo_pattern_calc_color_at_pixel): Handle NEAREST, note that support for NONE is not yet handled for gradients. * src/cairo-xcb-surface.c (_cairo_xcb_surface_set_attributes): Add a check for NEAREST but don't do anything useful. * src/cairo-xlib-surface.c (_cairo_xlib_surface_set_attributes): Add a check for NEAREST but don't do anything useful. * src/cairo-pdf-surface.c: Update a comment about the extend support in the image backend. @ text @d1 11 @ 1.1090 log @ 2005-10-08 Carl Worth * ROADMAP: Remove 1.0.2 entries now that it is out. Note that the PS backend has now been added to the test suite. @ text @d1 26 @ 1.1089 log @ 2005-10-08 Carl Worth * test/caps-sub-paths-ps-rgb24-ref.png: * test/dash-caps-joins-ps-rgb24-ref.png: * test/fill-and-stroke-ps-rgb24-ref.png: * test/fill-rule-ps-rgb24-ref.png: * test/leaky-polygon-ps-rgb24-ref.png: * test/line-width-ps-rgb24-ref.png: * test/path-data-ps-rgb24-ref.png: * test/rectangle-rounding-error-ps-rgb24-ref.png: * test/show-text-current-point-ps-rgb24-ref.png: * test/text-antialias-gray-ps-rgb24-ref.png: * test/transforms-ps-rgb24-ref.png: Add ps-backend-specific reference images for test for which the current output is fine, but just happens to not be identical to the existing reference images, (ie. just minor differences shape-boundary pixels). @ text @d3 5 @ 1.1088 log @ 2005-10-08 Carl Worth * test/.cvsignore: Ignore output of PS tests. * test/cairo-test.c: (create_ps_surface): Fix the PS tests to work again, (track change in create_surface interface). @ text @d3 17 @ 1.1087 log @ 2005-10-08 Carl Worth * configure.in: Enable PS and PDF backends by default, (in preparation for 1.2.0) @ text @d3 7 @ 1.1086 log @ 2005-10-08 Carl Worth * configure.in: Fix typo leading to truncated error message (Christian Biesinger ). @ text @d3 5 @ 1.1085 log @2005-10-07 Kristian Høgsberg * src/cairo-pdf-surface.c: (emit_solid_pattern), (emit_surface_pattern), (_cairo_pdf_color_stop_compare), (emit_pattern_stops), (emit_linear_pattern), (emit_radial_pattern), (emit_pattern), (_cairo_pdf_surface_fill_path), (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_show_glyphs): Apply patch from #4672 by Jens Taprogge to implement color stop sorting and multiple color stops for gradients. @ text @d1 5 @ 1.1084 log @ Add ChangeLog information for code that was accidentally committed along with an earlier bug fix: 2005-10-06 Carl Worth * src/cairo-xlib-surface.c: (_draw_image_surface): Add missing initialization for ximage.xoffset. * test/.cvsignore: Ignore the -argb32-out.png and -rgb24-out.png images as well. * test/cairo-test.c: (cairo_test_for_target): Pass a format to the surface create functions. (create_image_surface): Condense create_argb_image_surface and create_rgb_image_surface into a single function. (create_xlib_surface): Add support for CAIRO_FORMAT_RGB24 in addition to CAIRO_FORMAT_ARGB32. Add a new target for testing xlib with CAIRO_FORMAT_RGB24. @ text @d1 11 @ 1.1083 log @ 2005-10-06 Carl Worth * src/cairo-xlib-surface.c: (_draw_image_surface): Add missing initialization for ximage.xoffset. @ text @d6 11 @ 1.1082 log @2005-10-04 Anders Carlsson * configure.in: Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. @ text @d1 5 @ 1.1081 log @ 2005-10-03 Carl Worth * NEWS: Add notes for the 1.0.2 release. @ text @d1 5 @ 1.1080 log @2005-09-30 Anders Carlsson * src/cairo-atsui-font.c: (_cairo_atsui_font_face_destroy): (_cairo_atsui_font_face_scaled_font_create): (cairo_atsui_font_face_create_for_atsu_font_id): (CreateSizedCopyOfStyle): (_cairo_atsui_font_set_metrics): (_cairo_atsui_font_create_scaled): (_cairo_atsui_font_create_toy): (_cairo_atsui_font_init_glyph_metrics): (_move_to): (_line_to): (_curve_to): (_close_path): (_cairo_atsui_scaled_font_init_glyph_path): (_cairo_atsui_font_scaled_glyph_init): (_cairo_atsui_font_text_to_glyphs): (_cairo_atsui_font_show_glyphs): * src/cairo-atsui.h: Bring the ATSUI backend up to date wrt the new font backend changes. Also, add cairo_atsui_font_face_create_for_atsu_font_id which takes an ATSUFontID and returns a cairo_font_face_t. @ text @d1 4 @ 1.1079 log @2005-09-30 Bertram Felgenhauer reviewed by: keithp * src/cairo-hull.c (_cairo_hull_create): simplify id initialisation of last patch @ text @d1 24 @ 1.1078 log @ChangeLog cosmetics. @ text @d3 5 @ 1.1077 log @2005-09-30 Bertram Felgenhauer reviewed by: cworth * src/cairo-hull.c (_cairo_hull_create), (_cairo_hull_vertex_compare): Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead. * ROADMAP: mark 4599 as fixed @ text @d8 3 a10 2 So we introduce our own total order instead. * ROADMAP: mark 4599 as fixed @ 1.1076 log @2005-09-29 Keith Packard reviewed by: cworth * test/Makefile.am: * test/a8-mask-rgb24-ref.png: * test/cairo-test.c: (cairo_target_format_name), (create_argb_image_surface), (create_rgb_image_surface), (create_xlib_surface), (create_ps_surface), (ps_surface_write_to_png), (cleanup_ps), (cairo_test_for_target), (cairo_test_expecting): * test/caps-joins-ps-rgb24-ref.png: * test/caps-joins-rgb24-ref.png: * test/caps-sub-paths-rgb24-ref.png: * test/clip-all-rgb24-ref.png: * test/clip-nesting-ps-rgb24-ref.png: * test/clip-nesting-rgb24-ref.png: * test/clip-operator-rgb24-ref.png: * test/clip-twice-ps-rgb24-ref.png: * test/clip-twice-rgb24-ref.png: * test/composite-integer-translate-over-repeat-rgb24-ref.png: * test/composite-integer-translate-over-rgb24-ref.png: * test/composite-integer-translate-source-rgb24-ref.png: * test/create-from-png-rgb24-ref.png: * test/create-from-png-stream-rgb24-ref.png: * test/dash-caps-joins-rgb24-ref.png: * test/dash-offset-negative-rgb24-ref.png: * test/fill-and-stroke-rgb24-ref.png: * test/fill-rule-rgb24-ref.png: * test/filter-nearest-offset-rgb24-ref.png: * test/gradient-alpha-rgb24-ref.png: * test/leaky-polygon-rgb24-ref.png: * test/line-width-rgb24-ref.png: * test/linear-gradient-rgb24-ref.png: * test/mask-ctm-rgb24-ref.png: * test/mask-rgb24-ref.png: * test/mask-surface-ctm-rgb24-ref.png: * test/move-to-show-surface-rgb24-ref.png: * test/nil-surface-rgb24-ref.png: * test/operator-clear-rgb24-ref.png: * test/operator-source-rgb24-ref.png: * test/paint-rgb24-ref.png: * test/paint-with-alpha-rgb24-ref.png: * test/path-data-rgb24-ref.png: * test/pixman-rotate-rgb24-ref.png: * test/rectangle-rounding-error-rgb24-ref.png: * test/rel-path-rgb24-ref.png: * test/scale-source-surface-paint-rgb24-ref.png: * test/self-copy-rgb24-ref.png: * test/self-intersecting-rgb24-ref.png: * test/set-source-rgb24-ref.png: * test/show-text-current-point-rgb24-ref.png: * test/source-clip-rgb24-ref.png: * test/source-surface-scale-paint-rgb24-ref.png: * test/surface-pattern-rgb24-ref.png: * test/text-antialias-gray-rgb24-ref.png: * test/text-antialias-none-rgb24-ref.png: * test/text-antialias-subpixel-rgb24-ref.png: * test/text-pattern-rgb24-ref.png: * test/text-rotate-rgb24-ref.png: * test/transforms-rgb24-ref.png: * test/translate-show-surface-rgb24-ref.png: * test/trap-clip-rgb24-ref.png: * test/unantialiased-shapes-ps-rgb24-ref.png: * test/unantialiased-shapes-rgb24-ref.png: * test/unbounded-operator-rgb24-ref.png: Add rgb24 surface tests, support per-target reference images and support PS surface testing @ text @d1 10 @ 1.1075 log @ 2005-09-29 Carl Worth * src/cairo-surface.c: (_cairo_surface_composite_trapezoids): Oops. Reverting debug output that was mistakenly committed. @ text @d1 69 @ 1.1074 log @ 2005-09-29 Carl Worth * ROADMAP: Add date of 2005-10-03 for 1.0.2. Add 4630 to the 1.0.2 roadmap. @ text @d3 5 @ 1.1073 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Use _cairo_utf8_to_utf16 for character conversion. @ text @d1 5 @ 1.1072 log @ * ROADMAP: Note that Bug #4612 (Text not being drawn if first character entirely out of surface) is now fixed. * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_bbox): Add cast so that sign conversion doesn't alter comparison. @ text @d3 5 @ 1.1071 log @ 2005-09-27 Carl Worth * ROADMAP (https): Add 4612 to the 1.0.2 roadmap. @ text @d1 8 @ 1.1070 log @ * ROADMAP: Note that Bug #4602 (use of 0x0 images causes win32 backend failure) is now fixed. * src/cairo-win32-surface.c (_create_dc_and_bitmap): Avoid creating size-0 bitmap, which fails. @ text @d1 4 @ 1.1069 log @ 2005-09-27 Carl Worth * ROADMAP: Note that bug #4409 (Dashes are missing initial caps) is now fixed. * src/cairo-path-stroke.c: (_cairo_stroker_add_cap), (_cairo_stroker_add_leading_cap), (_cairo_stroker_add_trailing_cap), (_cairo_stroker_add_caps): Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap. * src/cairo-path-stroke.c: (_cairo_stroker_line_to_dashed): Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate. * test/Makefile.am (XFAIL_TESTS): * test/dash-caps-joins-ref.png: * test/dash-caps-joins.c: (main): Remove dash-caps-joins from the XFAIL list and add reference image. @ text @d1 8 @ 1.1068 log @ 2005-09-27 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-joins-ref.png: * test/caps-joins.c: (make_path), (draw), (main): * test/dash-caps-joins.c: (make_path), (draw), (main): Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). @ text @d3 21 @ 1.1067 log @ 2005-09-26 Carl Worth * ROADMAP: Added bug 4599 and 4602 to the 1.0.2 roadmap. @ text @d1 10 @ 1.1066 log @2005-09-26 Tor Lillqvist * src/cairo-win32-font.c (_win32_scaled_font_get_scaled_hfont), (_win32_scaled_font_get_unscaled_hfont): Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, print error message and set metrics to zero. (#3927, Hans Breuer) (cairo_win32_scaled_font_select_font): Add detail on what API failed to the error messages. @ text @d1 4 @ 1.1065 log @ 2005-09-19 Carl Worth * ROADMAP: Note that the clip-all test now passes. @ text @d1 13 @ 1.1064 log @ 2005-09-19 Carl Worth * src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report. * test/Makefile.am: * test/clip-all.c: (main): Remove clip-all from the XFAIL list since it works now. @ text @d3 4 @ 1.1063 log @ 2005-09-19 Carl Worth Originally: 2005-09-19 Hans Breuer * src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections] * src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in. @ text @d3 11 @ 1.1062 log @ 2005-09-19 Carl Worth * src/Makefile.am (libcairo_la_SOURCES): Add cairo-cache-private.h which was missing from the list, (thanks to sunmoon1997). @ text @d3 13 @ 1.1061 log @ 2005-09-19 Carl Worth * ROADMAP: Note that 4414 is now fixed. @ text @d3 5 @ 1.1060 log @ * configure.in: Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. @ text @d1 4 @ 1.1059 log @ Bug #4414, reviewed by otaylor, cworth. * configure.in: Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE. @ text @d3 5 @ 1.1058 log @ 2005-09-16 Carl Worth * src/cairo-path-stroke.c: (_cairo_stroker_start_dash), (_cairo_stroker_init): Prefer cairo_bool_t, TRUE, and FALSE over int, 1, and 0. @ text @d1 8 @ 1.1057 log @ 2005-09-16 Carl Worth * ROADMAP: Mark 4408 as resolved. @ text @d3 6 @ 1.1056 log @ 2005-09-16 Carl Worth Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408 * src/cairo-path-stroke.c: (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now). @ text @d3 4 @ 1.1055 log @ 2005-09-16 Carl Worth * ROADMAP: Mark 4260 as resolved. Add 4414 to the 1.0.2 roadmap. @ text @d3 11 @ 1.1054 log @Change Carl's comment about saturate operator @ text @d1 4 @ 1.1053 log @Track changes to glitz and update glyph caching in glitz backend @ text @d5 1 @ 1.1052 log @ 2005-09-13 Carl Worth * src/cairo-scaled-font.c (_cairo_scaled_font_text_to_glyphs): Set return-value *glyphs to NULL after freeing it in the error case. @ text @d1 5 @ 1.1051 log @ 2005-09-13 Carl Worth * ROADMAP: Mark bug #4299 fixed (by the several lock-related commits below). Add clip-all XFAIL to the 1.0.2 roadmap. @ text @d3 5 @ 1.1050 log @ 2005-09-13 Carl Worth * src/cairo-scaled-font.c: (_cairo_scaled_glyph_lookup): Add missing locking around the call into the thread-shared cache here. @ text @d3 5 @ 1.1049 log @ 2005-09-13 Carl Worth * test/pthread-show-text.c: (start), (main): Adjust parameters to stress things a bit more, (better exposing another locking bug). @ text @d3 5 @ 1.1048 log @ 2005-09-13 Carl Worth * src/cairo-scaled-font.c: (cairo_scaled_font_reference), (cairo_scaled_font_destroy): Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. @ text @d3 5 @ 1.1047 log @ 2005-09-13 Carl Worth * test/cairo-test.h: Add documentation for cairo_test functions. * test/cairo-test.c: (cairo_test_init), (cairo_test_expecting): Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test(). * test/.cvsignore: * test/Makefile.am: * test/pthread-show-text.c: (start), (main): Add new test for bug #4299 as reported by Alexey Shabalin. @ text @d3 8 @ 1.1046 log @ 2005-09-12 Carl Worth Originally 2005-09-06 Carl Worth : * src/cairo-cache-private.h: Rename: _cairo_cache_preserve -> _cairo_cache_freeze _cairo_cache_release -> _cairo_cache_thaw * src/cairo-scaled-font.c: (_cairo_scaled_font_show_glyphs): Track rename of _cairo_cache_freeze/thaw. * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_freeze), (_cairo_cache_thaw), (_cairo_cache_shrink_to_accomodate), (_cairo_cache_insert): Track rename. Add stacking behavior to _cairo_cache_freeze/thaw. Abstract out shrinking from _cairo_cache_insert so that _cairo_cache_thaw will also shrink as necessary. * src/cairo-cache.c: (_cairo_cache_remove): Make this function static since its current limitation to accept an entry rather than a key makes it not as externally useful as would be desirable. Document this limitation. @ text @d1 13 @ 1.1045 log @ 2005-09-12 Carl Worth Fix for bug #4401 as reported by Tim Mooney: * configure.in: Don't bother checking for sincos function. * src/cairo-matrix.c: (cairo_matrix_init_rotate): Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least). @ text @d3 24 @ 1.1044 log @ 2005-09-09 Carl Worth * ROADMAP: Add two bugs to the 1.0.2 roadmap: 4408 Missing dashes on stroked curves 4409 Dashes are missing initial caps @ text @d1 10 @ 1.1043 log @2005-09-08 Carl Worth * ROADMAP: Add open bug list for 1.0.2. @ text @d1 6 @ 1.1042 log @ 2005-09-07 Carl Worth * ROADMAP: Put win32 mutex locking on the 1.2.0 roadmap. Portability improvements for win32 thanks to Hans Breuer : * pixman/src/pixman.h: Defined sized-integer types when under the influence of _MSC_VER and without stdint.h. * src/cairoint.h: Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release). @ text @d1 4 @ 1.1041 log @ 2005-09-07 Carl Worth * src/cairo-features.h.in: Give cairo_public an empty definition by default. * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb-xrender.h: * src/cairo-xcb.h: * src/cairo-xlib-xrender.h: * src/cairo-xlib.h: * src/cairo.h: Add new cairo_public macro before every public function call prototype. @ text @d3 14 @ 1.1040 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass appropriate pointer for image_extra to release_dest_image. @ text @d1 18 @ 1.1039 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. @ text @d4 5 @ 1.1038 log @ 2005-09-06 Carl Worth * src/.cvsignore: Ignore cairo.def. * src/cairo-gstate.c: Remove cairo_private since we only use it in .h files, not .c files. @ text @d1 6 @ 1.1037 log @ 2005-09-02 Carl Worth * ROADMAP: Make a very preliminary attempt at 1.0.2, 1.2.0, and 1.4.0 roadmaps. @ text @d1 7 @ 1.1036 log @ 2005-09-02 Carl Worth * doc/public/tmpl/cairo-version.sgml: Add description of cairo's versioning scheme. @ text @d3 5 @ 1.1035 log @ 2005-09-02 Carl Worth * src/cairo-cache-private.h: * src/cairo-cache.c: (_cairo_cache_fini): Clean up some documentation issues pointed out by otaylor. @ text @d3 5 @ 1.1034 log @2005-09-01 Keith Packard reviewed by: otaylor deserves credit for noticing a problem * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Oops. Call _cairo_scaled_font_set_metrics to set user-space metrics for scaled fonts. @ text @d1 6 @ 1.1033 log @2005-09-01 Bertram Felgenhauer * src/cairo-scaled-font.c (_cairo_scaled_font_text_to_glyphs): Add missing pair of braces. This fixes a crash on text output. @ text @d1 8 @ 1.1032 log @ 2005-09-01 Carl Worth * test/cairo-test.h: Add includes to get sized-integer types such as uint32_t. * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/move-to-show-surface.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/set-source.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/translate-show-surface.c: (draw): Fix declaration of image data array to be uint32_t rather than unsigned long. Fixes four out of the remaining five failures in bug #4245. @ text @d1 5 @ 1.1031 log @2005-08-31 Carl Worth * test/cairo-test.c: (create_xlib_surface): Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason). * test/clip-all.c: (main): Note reason for expected failure. 2005-08-31 Owen Taylor * src/cairoint.h (_cairo_scaled_font_backend) src/cairo-scaled-font.c: Add an optional text_to_glyphs() virtual function that the backend can implement instead of ucs4_to_index(). * test/cairo-test.c: Protect inclusion of fontconfig.h with HAVE_FCFINI. @ text @d1 17 @ 1.1030 log @ 2005-08-31 Carl Worth * test/cairo-test.c: (create_xlib_surface): Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason). * test/clip-all.c: (main): Note reason for expected failure. @ text @d11 19 @ 1.1029 log @2005-08-31 Owen Taylor * src/cairo-xlib-surface.c (_get_image_surface) (_draw_image_surface): Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) @ text @d1 8 @ 1.1028 log @2005-08-31 Keith Packard Reviewed by: otaylor, cworth * src/Makefile.am: Split out scaled font code to cairo-scaled-font.c * src/cairo-cache-private.h: * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_fini), (_cairo_cache_create), (_cairo_cache_destroy), (_cairo_cache_preserve), (_cairo_cache_release), (_cairo_cache_lookup), (_cairo_cache_remove_random), (_cairo_cache_insert), (_cairo_cache_remove), (_cairo_cache_foreach): Replace cairo cache implementation (this code from cworth) * src/cairo-debug.c: (cairo_debug_reset_static_data): * src/cairo-font.c: (_cairo_font_reset_static_data): No more global glyph cache to clean up * src/cairo-ft-font.c: (_get_bitmap_surface), (_render_glyph_outline), (_render_glyph_bitmap), (_transform_glyph_bitmap), (_get_pattern_ft_options), (_cairo_ft_scaled_font_create), (_cairo_ft_scaled_font_create_toy), (_decompose_glyph_outline), (_cairo_ft_scaled_glyph_init), (_cairo_ft_ucs4_to_index), (_cairo_ft_show_glyphs), (_cairo_ft_font_face_scaled_font_create), (_cairo_ft_font_face_create), (cairo_ft_font_face_create_for_pattern), (cairo_ft_font_face_create_for_ft_face): Store glyphs in new per-scaled font caches which hold user-space metrics and device space bounding boxes * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs), (_cairo_gstate_show_glyphs_draw_func), (_cairo_gstate_show_glyphs): Refactor glyph drawing APIs so that the surface API is invoked directly from the gstate code. * src/cairo-path.c: (_cairo_path_fixed_create), (_cairo_path_fixed_destroy): Add path creation/destruction routines (to hold glyph paths) * src/cairo-scaled-font.c: (_cairo_scaled_glyph_keys_equal), (_cairo_scaled_glyph_fini), (_cairo_scaled_glyph_destroy), (_cairo_scaled_font_set_error), (cairo_scaled_font_status), (_cairo_scaled_font_map_lock), (_cairo_scaled_font_map_unlock), (_cairo_scaled_font_map_destroy), (_hash_bytes_fnv), (_cairo_scaled_font_init_key), (_cairo_scaled_font_keys_equal), (_cairo_scaled_font_init), (_cairo_scaled_font_set_metrics), (_cairo_scaled_font_fini), (cairo_scaled_font_create), (cairo_scaled_font_reference), (cairo_scaled_font_destroy), (cairo_scaled_font_extents), (cairo_scaled_font_glyph_extents), (_cairo_scaled_font_text_to_glyphs), (_cairo_scaled_font_glyph_device_extents), (_cairo_scaled_font_show_glyphs), (_scaled_glyph_path_move_to), (_scaled_glyph_path_line_to), (_scaled_glyph_path_curve_to), (_scaled_glyph_path_close_path), (_cairo_scaled_font_glyph_path), (_cairo_scaled_glyph_set_metrics), (_cairo_scaled_glyph_set_surface), (_cairo_scaled_glyph_set_path), (_cairo_scaled_glyph_lookup): New implementation of scaled fonts which uses per-scaled_font caches for glyphs and keeps user-space metrics, device-space bboxes along with glyph images and/or glyph paths. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar_with_format), (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_finish), (_cairo_xlib_surface_clone_similar), (_cairo_xlib_surface_font_init), (_cairo_xlib_surface_scaled_font_fini), (_cairo_xlib_surface_scaled_glyph_fini), (_cairo_xlib_surface_add_glyph), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs): Adapt to new scaled font API changes. * src/cairoint.h: New cache and scaled_font APIs * test/clip-operator-ref.png: * test/operator-clear-ref.png: * test/operator-source-ref.png: * test/text-antialias-gray-ref.png: * test/text-antialias-gray.c: * test/text-antialias-none-ref.png: * test/text-antialias-none.c: * test/text-antialias-subpixel-ref.png: * test/text-antialias-subpixel.c: * test/unbounded-operator-ref.png: Repond to bug fix in metrics computation for glyphs where y values were rounded up instead of down because of a sign difference between cairo and FreeType. @ text @d1 7 @ 1.1027 log @ 2005-08-31 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.1.1 after making branch tag BRANCH_1_0. @ text @d1 95 @ 1.1026 log @ 2005-08-31 Carl Worth * INSTALL: Add note to use ./autogen.sh instead of ./configure when working with source from cvs. @ text @d3 5 @ 1.1026.2.1 log @2005-08-31 Owen Taylor * src/cairo-xlib-surface.c (_get_image_surface) (_draw_image_surface): Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) @ text @a0 7 2005-08-31 Owen Taylor * src/cairo-xlib-surface.c (_get_image_surface) (_draw_image_surface): Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) @ 1.1026.2.2 log @ 2005-08-31 Carl Worth * test/cairo-test.c: (create_xlib_surface): Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason). * test/clip-all.c: (main): Note reason for expected failure. @ text @a0 8 2005-08-31 Carl Worth * test/cairo-test.c: (create_xlib_surface): Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason). * test/clip-all.c: (main): Note reason for expected failure. @ 1.1026.2.3 log @ 2005-09-01 Carl Worth * test/cairo-test.h: Add includes to get sized-integers types such as uint32_t. * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/move-to-show-surface.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/set-source.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/translate-show-surface.c: (draw): Fix declaration of image data array to be uint32_t rather than unsigned long. Fixes four out of the remaining five failures in bug #4245. @ text @a0 17 2005-09-01 Carl Worth * test/cairo-test.h: Add includes to get sized-integer types such as uint32_t. * test/filter-nearest-offset.c: (draw): * test/mask-ctm.c: (draw): * test/mask-surface-ctm.c: (draw): * test/move-to-show-surface.c: (draw): * test/paint-with-alpha.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/set-source.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/translate-show-surface.c: (draw): Fix declaration of image data array to be uint32_t rather than unsigned long. Fixes four out of the remaining five failures in bug #4245. @ 1.1026.2.4 log @ 2005-09-12 Carl Worth Fix for bug #4401 as reported by Tim Mooney: * configure.in: Don't bother checking for sincos function. * src/cairo-matrix.c: (cairo_matrix_init_rotate): Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least). @ text @a0 10 2005-09-12 Carl Worth Fix for bug #4401 as reported by Tim Mooney: * configure.in: Don't bother checking for sincos function. * src/cairo-matrix.c: (cairo_matrix_init_rotate): Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least). @ 1.1026.2.5 log @2005-09-13 Carl Worth * test/cairo-test.h: Add documentation for cairo_test functions. * test/cairo-test.c: (cairo_test_init), (cairo_test_expecting): Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test(). * test/.cvsignore: * test/Makefile.am: * test/pthread-show-text.c: (start), (main): Add new test for bug #4299 as reported by Alexey Shabalin. @ text @a0 13 2005-09-13 Carl Worth * test/cairo-test.h: Add documentation for cairo_test functions. * test/cairo-test.c: (cairo_test_init), (cairo_test_expecting): Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test(). * test/.cvsignore: * test/Makefile.am: * test/pthread-show-text.c: (start), (main): Add new test for bug #4299 as reported by Alexey Shabalin. @ 1.1026.2.6 log @ 2005-09-13 Carl Worth * src/cairo-scaled-font.c: (cairo_scaled_font_reference), (cairo_scaled_font_destroy): Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. @ text @a2 8 * src/cairo-scaled-font.c: (cairo_scaled_font_reference), (cairo_scaled_font_destroy): Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. 2005-09-13 Carl Worth @ 1.1026.2.7 log @ 2005-09-13 Carl Worth * test/pthread-show-text.c: (start), (main): Adjust parameters to stress things a bit more, (better exposing another locking bug). @ text @a2 5 * test/pthread-show-text.c: (start), (main): Adjust parameters to stress things a bit more, (better exposing another locking bug). 2005-09-13 Carl Worth @ 1.1026.2.8 log @ 2005-09-13 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_scaled_font_text_to_glyphs): Expand locking to include all modification of cairo_scaled_font and related objects. @ text @a2 6 * src/cairo-ft-font.c: (_cairo_ft_scaled_font_text_to_glyphs): Expand locking to include all modification of cairo_scaled_font and related objects. 2005-09-13 Carl Worth @ 1.1026.2.9 log @ 2005-09-16 Carl Worth Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408 * src/cairo-path-stroke.c: (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now). @ text @a0 11 2005-09-16 Carl Worth Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408 * src/cairo-path-stroke.c: (_cairo_stroker_curve_to_dashed), (_cairo_path_fixed_stroke_to_traps): Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now). @ 1.1026.2.10 log @ Bug #4414, reviewed by otaylor, cworth. * configure.in: Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE. Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. @ text @a0 10 2005-09-18 Billy Biggs Bug #4414, reviewed by otaylor, cworth. * configure.in: Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE. Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. @ 1.1026.2.11 log @ 2005-09-19 Carl Worth Originally: 2005-09-19 Hans Breuer * src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections] * src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in. @ text @a0 13 2005-09-19 Carl Worth Originally: 2005-09-19 Hans Breuer * src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections] * src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in. @ 1.1026.2.12 log @ 2005-09-19 Carl Worth * src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report. * test/Makefile.am: * test/clip-all.c: (main): Remove clip-all from the XFAIL list since it works now. @ text @a2 11 * src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report. * test/Makefile.am: * test/clip-all.c: (main): Remove clip-all from the XFAIL list since it works now. 2005-09-19 Carl Worth @ 1.1026.2.13 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. @ text @a0 6 2005-09-20 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_show_glyphs): Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. @ 1.1026.2.14 log @2005-09-26 Tor Lillqvist * src/cairo-win32-font.c (_win32_scaled_font_get_scaled_hfont), (_win32_scaled_font_get_unscaled_hfont): Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) @ text @a0 8 2005-09-26 Tor Lillqvist * src/cairo-win32-font.c (_win32_scaled_font_get_scaled_hfont), (_win32_scaled_font_get_unscaled_hfont): Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) @ 1.1026.2.15 log @2005-09-26 Tor Lillqvist * src/cairo-win32-font.c (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, set metrics to zero. (#3927, Hans Breuer) (Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.) @ text @a7 4 (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, set metrics to zero. (#3927, Hans Breuer) (Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.) @ 1.1026.2.16 log @ 2005-09-26 Carl Worth Backported from HEAD: 2005-08-31 Owen Taylor * test/cairo-test.c: Protect inclusion of fontconfig.h with HAVE_FCFINI. * test/nil-surface.c: Remove stray cairo-ft.h include. * test/nil-surface.c: Include stddef.h for NULL. * test/create-from-png-stream.c (draw): Open the file rb. @ text @a0 14 2005-09-26 Carl Worth Backported from HEAD: 2005-08-31 Owen Taylor * test/cairo-test.c: Protect inclusion of fontconfig.h with HAVE_FCFINI. * test/nil-surface.c: Remove stray cairo-ft.h include. * test/nil-surface.c: Include stddef.h for NULL. * test/create-from-png-stream.c (draw): Open the file "rb". @ 1.1026.2.17 log @ 2005-09-26 Carl Worth Backported from HEAD: 2005-09-07 Carl Worth Portability improvements for win32 thanks to Hans Breuer : * pixman/src/pixman.h: Defined sized-integer types when under the influence of _MSC_VER and without stdint.h. * src/cairoint.h: Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release). @ text @a3 15 2005-09-07 Carl Worth Portability improvements for win32 thanks to Hans Breuer : * pixman/src/pixman.h: Defined sized-integer types when under the influence of _MSC_VER and without stdint.h. * src/cairoint.h: Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release). 2005-09-26 Carl Worth Backported from HEAD: @ 1.1026.2.18 log @ 2005-09-27 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-joins-ref.png: * test/caps-joins.c: (make_path), (draw), (main): * test/dash-caps-joins.c: (make_path), (draw), (main): Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). @ text @a0 10 2005-09-27 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-joins-ref.png: * test/caps-joins.c: (make_path), (draw), (main): * test/dash-caps-joins.c: (make_path), (draw), (main): Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). @ 1.1026.2.19 log @ 2005-09-27 Carl Worth * ROADMAP: Note that bug #4409 (Dashes are missing initial caps) is now fixed. * src/cairo-path-stroke.c: (_cairo_stroker_add_cap), (_cairo_stroker_add_leading_cap), (_cairo_stroker_add_trailing_cap), (_cairo_stroker_add_caps): Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap. * src/cairo-path-stroke.c: (_cairo_stroker_line_to_dashed): Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate. * test/Makefile.am (XFAIL_TESTS): * test/dash-caps-joins-ref.png: * test/dash-caps-joins.c: (main): Remove dash-caps-joins from the XFAIL list and add reference image. @ text @a2 21 * ROADMAP: Note that bug #4409 (Dashes are missing initial caps) is now fixed. * src/cairo-path-stroke.c: (_cairo_stroker_add_cap), (_cairo_stroker_add_leading_cap), (_cairo_stroker_add_trailing_cap), (_cairo_stroker_add_caps): Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap. * src/cairo-path-stroke.c: (_cairo_stroker_line_to_dashed): Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate. * test/Makefile.am (XFAIL_TESTS): * test/dash-caps-joins-ref.png: * test/dash-caps-joins.c: (main): Remove dash-caps-joins from the XFAIL list and add reference image. 2005-09-27 Carl Worth @ 1.1026.2.20 log @ Bug #4602, reviewed by cworth. * src/cairo-win32-surface.c (_create_dc_and_bitmap): Avoid creating size-0 bitmap, which fails. @ text @a0 7 2005-09-27 T Rowley Bug #4602, reviewed by cworth. * src/cairo-win32-surface.c (_create_dc_and_bitmap): Avoid creating size-0 bitmap, which fails. @ 1.1026.2.21 log @ Bug #4612, reviewed by cworth. * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_bbox): Add cast so that sign conversion doesn't alter comparison. @ text @a0 7 2005-09-28 T Rowley Bug #4612, reviewed by cworth. * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_bbox): Add cast so that sign conversion doesn't alter comparison. @ 1.1026.2.22 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Use _cairo_utf8_to_utf16 for character conversion. @ text @a2 5 * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Use _cairo_utf8_to_utf16 for character conversion. 2005-09-28 T Rowley @ 1.1026.2.23 log @2005-09-30 Bertram Felgenhauer reviewed by: cworth * src/cairo-hull.c (_cairo_hull_create), (_cairo_hull_vertex_compare): Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead. @ text @a0 9 2005-09-30 Bertram Felgenhauer reviewed by: cworth * src/cairo-hull.c (_cairo_hull_create), (_cairo_hull_vertex_compare): Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead. @ 1.1026.2.24 log @ChangeLog cosmetics. @ text @d8 1 a8 1 So we introduce our own total order instead. (#4599) @ 1.1026.2.25 log @2005-09-30 Bertram Felgenhauer reviewed by: keithp * src/cairo-hull.c (_cairo_hull_create): simplify id initialisation of last patch @ text @a2 5 reviewed by: keithp * src/cairo-hull.c (_cairo_hull_create): simplify id initialisation of last patch @ 1.1026.2.26 log @ 2005-10-03 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.2 and libtool versioning to 4:3:2. * NEWS: Add notes for the 1.0.2 release. @ text @a0 7 2005-10-03 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.2 and libtool versioning to 4:3:2. * NEWS: Add notes for the 1.0.2 release. @ 1.1026.2.27 log @ 2005-10-03 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.3 after tagging RELEASE_1_0_2. @ text @a2 5 * configure.in: Increment CAIRO_VERSION to 1.0.3 after tagging RELEASE_1_0_2. 2005-10-03 Carl Worth d5 1 a5 1 @ 1.1026.2.28 log @ 2005-10-03 Carl Worth * src/cairo-win32-surface.c: (DllMain): Add missing initialization for _global_image_glyph_cache_mutex (Vladimir Vukicevic ). @ text @a2 6 * src/cairo-win32-surface.c: (DllMain): Add missing initialization for _global_image_glyph_cache_mutex (Vladimir Vukicevic ). 2005-10-03 Carl Worth @ 1.1026.2.29 log @2005-10-04 Anders Carlsson * configure.in: Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. @ text @a0 5 2005-10-04 Anders Carlsson * configure.in: Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. @ 1.1026.2.30 log @ 2005-10-06 Carl Worth * src/cairo-xlib-surface.c: (_draw_image_surface): Add missing initialization for ximage.xoffset. @ text @a0 5 2005-10-06 Carl Worth * src/cairo-xlib-surface.c: (_draw_image_surface): Add missing initialization for ximage.xoffset. @ 1.1026.2.31 log @ 2005-10-08 Carl Worth * configure.in: Fix typo leading to truncated error message (Christian Biesinger ). @ text @a0 5 2005-10-08 Carl Worth * configure.in: Fix typo leading to truncated error message (Christian Biesinger ). @ 1.1026.2.32 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_glyph_path): Apply proper transform to generated paths. @ text @a0 5 2005-10-10 T Rowley * src/cairo-atsui-font.c (_cairo_atsui_font_glyph_path): Apply proper transform to generated paths. @ 1.1026.2.33 log @ Reviewed by: cworth * src/cairo-clip.c (_cairo_clip_intersect_mask): Intersect clip region with target surface so we don't waste time and memory. @ text @a0 7 2005-10-12 T Rowley Reviewed by: cworth * src/cairo-clip.c (_cairo_clip_intersect_mask): Intersect clip region with target surface so we don't waste time and memory. @ 1.1026.2.34 log @ 2005-11-18 Carl Worth * src/pixman-remap.h: Remove spurios INT_ prefixes which break the build with very recent binutils. @ text @a0 5 2005-11-18 Carl Worth * src/pixman-remap.h: Remove spurios INT_ prefixes which break the build with very recent binutils. @ 1.1026.2.35 log @ 2005-11-21 Carl Worth * src/pixman-remap.h: Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. @ text @a0 5 2005-11-21 Carl Worth * src/pixman-remap.h: Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. @ 1.1026.2.36 log @ 2005-12-07 Carl Worth * configure.in: Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. @ text @a0 6 2005-12-07 Carl Worth * configure.in: Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. @ 1.1025 log @ 2005-08-31 Carl Worth * test/get-and-set.c: Fix test to not try to set a non-invertible matrix. (We'd gotten away with this due to round-off error on many systems). Fixes one out of six failures in bug #4245. @ text @d3 5 @ 1.1024 log @ 2005-08-31 Carl Worth * AUTHORS: Add Radek Doulík. * test/.cvsignore: * test/Makefile.am: * test/clip-all.c: (draw), (main): Add test exposing a BadValue (0-size pixmap) bug in cairo-xlib-surface when everything is clipped away (thanks to Radek Doulík ). @ text @d3 6 @ 1.1023 log @2005-08-30 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Liberalize the ServerVendor check so that we can handle the Mandriva vendor string. (#4298, Frederic Crozat) @ text @d1 10 @ 1.1022 log @2005-08-27 Owen Taylor * src/cairo-pattern.c (_cairo_pattern_acquire_surface_for_gradient): Use a 8xN rather than a 1xN strip for a vertical gradient. This is much more tolerant of slow compositing code, and is worth some extra expense computing the gradient. (#4263, found in test case from Richard Stellingwerff) @ text @d1 6 @ 1.1021 log @2005-08-27 Owen Taylor reviewed by: cworth * src/cairo-traps.c (_cairo_traps_extract_region): Make the check for rectangular trapezoids simpler and more accurate. (#4220, found using test case from Richard Stellingwerff) @ text @d3 8 @ 1.1020 log @2005-08-27 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Make the vendor string check for XFree86 more liberal, to deal with older versions of gentoo that modified it in a different way. (#4231, fix from Billy Biggs) @ text @d3 8 @ 1.1019 log @2005-08-27 Owen Taylor * src/cairoint.h: Undef MIN/MAX before defining them in case some system header happens to define them. (#4196, Christian Biesinger) @ text @d3 7 @ 1.1018 log @2005-08-27 Owen Taylor * src/cairo-image-surface.c (cairo_image_surface_create) (cairo_image_surface_create_for_data): Fix docs not to talk about %NULL returns. #4271, Duncan Coutts. @ text @d3 6 d11 1 a11 1 %NULL returns. #4271, Duncan Coutts. @ 1.1017 log @2005-08-25 Tor Lillqvist * Makefile.am (developer_zip_file): Include the documentation, too. @ text @d1 6 @ 1.1016 log @ * doc/public/tmpl/cairo-font-options.sgml: * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-image.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-scaled-font.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-text.sgml: * doc/public/tmpl/cairo-transforms.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo-version.sgml: * doc/public/tmpl/cairo-win32-fonts.sgml: * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Update formatting of the title and short description, as this actually changes how the TOC appears in devhelp. @ text @d1 4 @ 1.1015 log @2005-08-25 Bertram Felgenhauer * Makefile.am (.PHONY): add docs-publish as a phony target @ text @d1 30 @ 1.1014 log @ 2005-08-24 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.1 after tagging RELEASE_1_0_0. @ text @d1 4 @ 1.1013 log @ 2005-08-24 Carl Worth * configure.in: Increment CAIRO_VERSION to 1.0.0 and libtool versioning to 4:2:2. @ text @d3 5 @ 1.1012 log @ 2005-08-24 Carl Worth * NEWS: Fix typos. Add CAIRO_STATUS_INVALID_DASH. @ text @d3 5 @ 1.1011 log @ 2005-08-24 Carl Worth * README: Unabbreviate "eg." to "for example,". @ text @d3 4 @ 1.1010 log @ 2005-08-24 Carl Worth * PORTING_GUIDE: Update name from "0.5 porting guide" to "1.0 porting guide." @ text @d3 4 @ 1.1009 log @ 2005-08-24 Carl Worth * README: Some text cleanups from Øyvind Kolås. @ text @d3 5 @ 1.1008 log @ 2005-08-24 Carl Worth * AUTHORS: Add Amaury Jacquot. @ text @d3 5 @ 1.1007 log @2005-08-24 Carl Worth * RELEASING: Fix typo. @ text @d3 4 @ 1.1006 log @ 2005-08-24 Carl Worth * AUTHORS: * README: Fix typos. @ text @d3 4 @ 1.1005 log @2005-08-24 Tor Lillqvist * src/Makefile.am (cairo.def): Drop PDF and PS backend and FT font API from Win32 DLL entry points for now. @ text @d1 5 @ 1.1004 log @ 2005-08-24 Carl Worth * README: Fix typos. @ text @d1 5 @ 1.1003 log @ 2005-08-24 Carl Worth * README: Move glitz into the experimental list. @ text @d3 4 @ 1.1002 log @ 2005-08-24 Carl Worth * INSTALL: Put glitz in the experimental section. * configure.in: Give glitz the experimental treatment, (disable it by default. @ text @d3 4 @ 1.1001 log @ 2005-08-24 Carl Worth * INSTALL: Add some more detailed build instructions. @ text @d3 7 @ 1.1000 log @ * src/cairo.c (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text): Fix some minor typos in the doc. @ text @d1 4 @ 1.999 log @2005-08-24 Carl Worth * configure.in: Disable ATSUI by default as well. @ text @d1 5 @ 1.998 log @ 2005-08-24 Carl Worth * BUGS: Add pointer to http://bugs.freedesktop.org. @ text @d3 4 @ 1.997 log @ 2005-08-24 Carl Worth * README: Add more detailed notes on what is required to compile cairo on Mac OS X or win32. @ text @d3 4 @ 1.996 log @ 2005-08-24 Carl Worth * Makefile.am: * RELEASING: Change upload directory from snapshots to releases now thatwe're doing stable releases of cairo. @ text @d3 5 @ 1.995 log @ 2005-08-24 Carl Worth * configure.in: Give PostScript and PDF backends the experimental treatment, disabling them by default. @ text @d3 6 @ 1.994 log @ 2005-08-24 Carl Worth * NEWS: Add notes for 1.0 release. Thanks to Owen Taylor. * README: Note that PS and PDF backends are experimental. * ROADMAP: Note the progress that has been completed so that 1.0 is ready now. @ text @d3 5 @ 1.993 log @ 2005-08-24 Carl Worth * src/cairo.c (cairo_new_path, cairo_move_to, cairo_line_to, cairo_curve_to, cairo_arc, cairo_rel_move_to, cairo_rel_line_to, cairo_rel_curve_to, cairo_rectangle, cairo_close_path): Update documentation for most path construction functions. Add discussion of the effects on the current point to all functions. Rephrase the wording of the relative functions. Big rewrite of cairo_arc description. Add discussion of join not caps to cairo_close_path. @ text @d1 9 @ 1.992 log @2005-08-24 Keith Packard reviewed by: cworth * src/cairo-ps-surface.c: (_cairo_ps_surface_create_for_stream_internal), (cairo_ps_surface_set_dpi), (color_is_translucent), (pattern_is_translucent), (emit_image), (_ps_output_composite), (_ps_output_fill_rectangles), (_ps_output_composite_trapezoids), (_ps_output_path_move_to), (_ps_output_path_line_to), (_ps_output_path_curve_to), (_ps_output_intersect_clip_path), (_ps_output_show_glyphs), (_ps_output_fill_path), (_cairo_ps_surface_render_page): Use new device_x_scale/device_y_scale surface fields to set the device coordinate space to the nominal pixels. Treat more alpha values as translucent (up to 0.999) Fix emit_image to actually use a temporary image when necessary. Change PS coordinate space to match cairo (top-down), adjust PS output to use new space. Find more cases where PS output was not supported and fall back to image surface. @ text @d81 7 a87 1 * src/cairo.c: @ 1.991 log @2005-08-24 Keith Packard reviewed by: cworth * src/cairo-meta-surface.c: (_cairo_meta_surface_replay): _cairo_surface_show_glyphs may return UNSUPPORTED in which case a call to scaled_font->backend->show_glyphs is needed. @ text @d5 28 @ 1.990 log @2005-08-24 Keith Packard reviewed by: cworth * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_apply_device_transform), (_cairo_gstate_apply_device_inverse_transform), (_cairo_gstate_get_matrix), (_cairo_gstate_set_matrix), (_cairo_gstate_identity_matrix), (_cairo_gstate_user_to_backend), (_cairo_gstate_backend_to_user): * src/cairo-surface.c: (_cairo_surface_init), (cairo_surface_set_device_offset): * src/cairoint.h: Add device_x_scale and device_y_scale to surface so that the coordinate system seen by the backend can differ from the nominal device coordinate space used by the application. Useful for printer backends where the device coordinate space should be in pixels while the user visible device space is in points. There is no API to set these values; the backends using this functionality should do that themselves before the first cairo_t is created. @ text @d5 8 @ 1.989 log @2005-08-24 Carl Worth * src/cairo.c: (cairo_show_text): Fix cairo_show_text to advance the current point. Add documentation for cairo_show_text. * test/.cvsignore: * test/Makefile.am: * test/show-text-current-point-ref.png: * test/show-text-current-point.c: (draw), (main): Add test to verify that the current-point-advancing behavior of cairo_show_text is working. * BUGS: Remove bug about cairo_show_text not advancing the current point. @ text @d1 27 @ 1.988 log @ 2005-08-24 Carl Worth * src/cairo.c (cairo_new_path, cairo_move_to, cairo_line_to, cairo_curve_to, cairo_arc, cairo_rel_move_to, cairo_rel_line_to, cairo_rel_curve_to, cairo_rectangle, cairo_close_path): Update documentation for most path construction functions. Add discussion of the effects on the current point to all functions. Rephrase the wording of the relative functions. Big rewrite of cairo_arc description. Add discussion of join not caps to cairo_close_path. @ text @d3 15 @ 1.987 log @ 2005-08-23 Carl Worth * src/cairo.h: Minor doc edit. @ text @d1 4 @ 1.986 log @ 2005-08-23 Carl Worth * doc/public/tmpl/cairo-matrix.sgml: Minor doc edits. @ text @d3 4 @ 1.985 log @ 2005-08-23 Carl Worth * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo.sgml: Prefer cairo over Cairo when not at the beginning of a sentence. @ text @d3 4 @ 1.984 log @ * doc/public/tmpl/cairo-image.sgml: Add a long description. * doc/public/tmpl/cairo.sgml: Fix a typo. * src/cairo-font.c: Document the return value of cairo_scaled_font_reference(). * src/cairo-xlib-surface.c: Document the width and height parameters of cairo_xlib_surface_set_drawable(). @ text @d1 8 @ 1.983 log @ * src/cairo.c: Document the rest of the path functions (except the two text ones, which should coordinate with their corresponding non-path versions). * doc/public/cairo-sections.txt: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-text.sgml: Minor shuffling. @ text @d3 9 @ 1.982 log @2005-08-23 Kristian Høgsberg * AUTHORS: * README: More minor edits. @ text @d1 9 @ 1.981 log @ * README: Minor edits. @ text @d1 5 @ 1.980 log @ * doc/public/tmpl/cairo-matrix.sgml: Update the long description of cairo_matrix_t to match the current sources. * doc/public/tmpl/cairo-paths.sgml: Add cairo_path_data_t. * src/cairo-ft-font.c: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo.c: * src/cairo.h: Some documentation updates and improvements. @ text @d3 4 @ 1.979 log @ 2005-08-23 Carl Worth * test/.valgrind-suppressions: Add suppression for uninitialized data in fbBltOne. @ text @d1 11 @ 1.978 log @ 2005-08-23 Carl Worth * README: Big update in preparation for 1.0. @ text @d3 5 @ 1.977 log @ 2005-08-23 Carl Worth * AUTHORS: Added several names to the AUTHORS file (since 2005-01-24): Josh Aas Billy Biggs Damien Carbery Steve Chaplin Tomasz Cholewo John Ehresman Behdad Esfahbod Bertram Felgenhauer J. Ali Harlow Adrian Johnson Michael Johnson Øyvind Kolås Martin Kretzschmar Tor Lillqvist Luke-Jr Jeff Muizelaar Peter Nilsson Geoff Norton Robert O'Callahan Mike Owens Stuart Parmenter Tim Rowley Jason Dorje Short Travis Spencer Malcolm Tredinnick @ text @d3 4 @ 1.976 log @ * doc/public/cairo-docs.xml: Experimental Quartz and XCB backends removed from the public doc for now. @ text @d1 31 a10665 3 @ 1.975 log @2005-08-23 Owen Taylor * configure.in: Reverse the help text for --enable-xcb, --enable-quartz. @ text @d1 5 @ 1.974 log @2005-08-23 Owen Taylor * configure.in: Disable XCB and Quartz backends unless explicitely enabled. Add a big warning message if they are enabled about bugs and API instability. @ text @d3 5 @ 1.973 log @2005-08-23 Owen Taylor * src/cairo-pattern.c (_cairo_pattern_calc_color_at_pixel): Rip out all the code for doing anything other than linear interpolation between color stops, instead of doing different funky things based on pattern->filter. (#4184) @ text @d3 6 @ 1.972 log @ 2005-08-23 Carl Worth * src/cairo-font.c: (cairo_font_face_reference), (cairo_scaled_font_reference): Remove assert statements that violate two intentional instances of ref_count == 0. @ text @d1 7 @ 1.971 log @ 2005-08-23 Carl Worth * test/text-pattern.c: (draw): Fix memory leak of pattern. @ text @d3 6 @ 1.970 log @2005-08-23 Owen Taylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_show_glyphs): Check for AlphaBlend() with GetProcAddress() to support older compilation environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla) * src/cairo-win32-private.h: Remove WINVER define, since it was (hopefully) there only for AlphaBlend(). @ text @d1 4 @ 1.969 log @2005-08-23 Owen Taylor * src/cairo-ft-font.c: Call _get_pattern_load_flags() on the resolved pattern, not the input pattern. (Further fix from sunmoon1997) @ text @d3 13 @ 1.968 log @ 2005-08-23 Carl Worth Reviewed by: otaylor Fixes bug #4198 * src/cairo-font.c: (cairo_font_face_reference), (cairo_font_face_destroy), (cairo_scaled_font_reference), (cairo_scaled_font_destroy): * src/cairo-pattern.c: (cairo_pattern_reference), (cairo_pattern_destroy): * src/cairo-surface.c: (cairo_surface_reference), (cairo_surface_destroy): * src/cairo.c: (cairo_reference), (cairo_destroy): Detect (by assert and crash) if users attempt to twice destroy or re-reference a destroyed object. The condition for detecting this case is a ref_count of 0. @ text @d1 6 @ 1.967 log @ 2005-08-23 Carl Worth * src/cairo.h: * src/cairoint.h: Move CAIRO_CONTENT_VALID and CAIRO_FORMAT_VALID from the public cairo.h to the private cairoint.h where they belong. @ text @d3 17 @ 1.966 log @2005-08-23 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_scaled_font_show_glyphs): when creating the temporary mask, do glyph ADD mask, not (glyph IN source) ADD mask. Set the mask as having component alpha when it's 4-channel. * test/text-antialias-subpixel.c test/Makefile.am: No longer XFAIL. * test/text-antialias-gray.c test/text-antialias-subpixel.c * test/text-antialias-none.c (draw): Don't turn off metrics hinting, it doesn't make sense. * test/text-antialias-*-ref.png: Update. @ text @d1 7 @ 1.965 log @ 2005-08-23 Carl Worth * CODING_STYLE: Revise the description of indentation and tabs to be clear (I hope). @ text @d1 15 @ 1.964 log @ 2005-08-23 Carl Worth * test/text-antialias-subpixel.c (draw): Clear to opaque white at the beginning of the test so that the 0 alpha values in the destination don't cause bizarre results. (main): Note that only the image backend should fail now. * test/text-antialias-subpixel-ref.png: Add new reference image. @ text @d3 5 @ 1.963 log @ 2005-08-23 Carl Worth * test/text-rotate-ref.png: * test/text-rotate.c: (draw), (main): Add more comments on the improved state of this bug. Commit a reference image generated with cairo_text_path; cairo_fill. (We may not require getting this exact result, but I think it is worth examining the differences closely.) @ text @d3 9 @ 1.962 log @ 2005-08-23 Carl Worth * Makefile.am: Add docs-publish target to build and push documentation, (since our nightly server-side cron job is not working right now). @ text @d3 9 @ 1.961 log @ 2005-08-23 Carl Worth * BUGS: * src/cairo-xlib-screen.c: Move comment about missing cleanup of caches on XCloseDisplay from BUGS to a _cairo_xlib_close_display. Also covered in bug #4120. @ text @d3 6 @ 1.960 log @ 2005-08-23 Carl Worth * test/Makefile.am: * test/caps-sub-paths.c: (main): Remove caps-sub-paths from the XFAIL list since it is fixed now. @ text @d3 7 @ 1.959 log @ 2005-08-23 Carl Worth Fix for bug #4205: * src/cairo-path-stroke.c: (_cairo_stroker_add_caps): (_cairo_path_fixed_stroke_to_traps): Abstract the cap-addition code from the end of the stroke operation into a new _cairo_stroker_add_caps function. * src/cairo-path-stroke.c: (_cairo_stroker_move_to): Call the new _cairo_stroker_add_caps at the beginning of every move_to so that we get caps on every subpath and not just the last one. @ text @d3 6 @ 1.958 log @ * src/Makefile.am: Add libpixman.la to the libcairo_la_DEPENDENCIES line so that changes to pixman get picked up. @ text @d1 13 @ 1.957 log @2005-08-23 Owen Taylor Some fixes for warnings from sparse (Part of #4208, Kjartan Maraas) * test/cairo-test.c (create_xlib_surface): Use NULL, not 0. * src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): Fix C99'ism of mixed code and declarations. @ text @d1 5 @ 1.956 log @ 2005-08-23 Carl Worth * BUGS: caps only added to last subpath: COVERED by test/caps-sub-paths and bug #4205. @ text @d1 10 @ 1.955 log @ 2005-08-23 Carl Worth * test/caps-sub-paths.c: Use the expect_failure variant of cairo_test so that make check prints the reason this test fails. @ text @d3 5 @ 1.954 log @ 2005-08-23 Carl Worth * test/.cvsignore: * test/Makefile.am: * test/caps-sub-paths-ref.png: * test/caps-sub-paths.c: (draw), (main): Add test to demonstrate bug #4205, missing caps on all but last sub-path in a complex path. @ text @d3 5 @ 1.953 log @ 2005-08-22 Carl Worth * src/cairo.c (cairo_create): Remove discussion of the BAD_NESTING restriction from the documentation of cairo_create. No such restriction exists anymore. @ text @d1 9 @ 1.952 log @ 2005-08-22 Carl Worth Fix for bug #4192: * src/cairo-ft-font.c: (_font_map_release_face_lock_held): New function to handle both calling FT_Done_Face on unscaled->face and decrementing font_map->num_open_faces. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_destroy), (_cairo_ft_unscaled_font_destroy), (_cairo_ft_unscaled_font_lock_face): Call new _font_map_release_face_lock_held as approporiate. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_destroy): Assert that (font_map->num_open_faces == 0) when we're done, to help guarantee the bug is fixed. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_fini): Don't call FT_Done_Face anymore, instead assert that (unscaled->face == NULL) by the time this function is called. * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_set_scale): Prefer TRUE/FALSE as values for cairo_bool_t have_scale. @ text @d3 6 @ 1.951 log @ * doc/public/Makefile.am: Add version.xml to content_files so it will be copied to the right place for DESTDIR builds. @ text @d1 26 @ 1.950 log @ * doc/public/cairo-docs.xml: * doc/public/cairo-sections.txt: Rework the index for the reference manual. * doc/public/tmpl/cairo-font-options.sgml: * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-image.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-paths.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-scaled-font.sgml: * doc/public/tmpl/cairo-status.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-text.sgml: * doc/public/tmpl/cairo-transforms.sgml: * doc/public/tmpl/cairo-types.sgml: * doc/public/tmpl/cairo-version.sgml: * doc/public/tmpl/cairo-win32-fonts.sgml: * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Update descriptions and add new files for added sections. @ text @d3 5 @ 1.949 log @2005-08-22 Owen Taylor * src/cairo-ft-font.c: Make cairo_ft_unscaled_font_backend static. * src/cairo-gstate.c (_cairo_gstate_fini): Add missing static. * src/cairo-pattern.c (_cairo_pattern_init_gradient): * src/cairo-ps-surface.c (_cairo_ps_surface_finish): * src/cairo-xlib-surface.c (_get_image_surface): Use NULL, not 0. * src/cairo-font.c (_cairo_lock,unlock,get_global_image_glyph_cache): Use void in the definition of void functions, not (). * src/cairo-pattern.c: Make non-exported cairo_pattern_nil_* static. @ text @d1 33 @ 1.948 log @ 2005-08-22 Carl Worth * BUGS: ref_counts will go negative: COVERED by https://bugs.freedesktop.org/show_bug.cgi?id=4198 @ text @d1 17 @ 1.947 log @ 2005-08-22 Carl Worth * BUGS: Remove several entries in an effort to obsolete the BUGS file in favor of bugzilla and cairo/test. Specifically: cairo_image_surface_create should clear image: NOTABUG. The user can clear if desired, and cairo clearing unconditionally would be performance overhead). cairo_clip is really slow: FIXED/COVERED. Since the time this entry was added we've got rectangular, pixel-alignend clipping optimized. And there's a bug in bugzilla (https://bugs.freedesktop.org/show_bug.cgi?id=4191) for optimizing IN. self-intersecting path is wrong: COVERED by test/self-intersecting.c. Cairo is crashing Xnest: NEEDINFO. Is this still happening? Xfake has been working quite well for a very long time now. font-size=0 in SVG does bad things: FIXED. @ text @d3 5 @ 1.946 log @2005-08-22 Bertram Felgenhauer * src/cairoint.h, src/cairo-matrix.c (_cairo_matrix_compute_eigen_values): remove. @ text @d1 23 @ 1.945 log @2005-08-22 Bertram Felgenhauer * src/cairo-arc.c (_arc_segments_needed): correct the calculation of the error bound. @ text @d3 5 @ 1.944 log @2005-08-22 Bertram Felgenhauer * src/cairo-pen.c (_cairo_pen_vertices_needed): use new function. strip comment of derivation for major axis length. * src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): use _cairo_matrix_get_affine to retrieve matrix entries. * src/cairoint.h, src/cairo-matrix.c (_cairo_matrix_transformed_circle_major_axis): new function split out of cairo-pen.c. UTF8-ify the comment that explains the calculation. @ text @d3 5 @ 1.943 log @2005-08-22 Bertram Felgenhauer * src/cairo-pen.c (_cairo_pen_vertices_needed): use correctly transposed version of the matrix and fix up the comments above to use row vector notation. @ text @d3 12 @ 1.942 log @2005-08-22 Tor Lillqvist * configure.in: Calculate LT_CURRENT_MINUS_AGE (which forms part of the DLL name on Win32), and AC_SUBST it. * Makefile.am: Add target "zips" to create zip file based distribution for Win32. * src/Makefile.am: Produce a cairo.def file for distribution by preprocessing the relevant header files and grepping for declarations of functions that start with cairo_. Works for now, will have to modify later if necessary. Use the .def file when linking on Win32. @ text @d1 6 @ 1.941 log @2005-08-22 Owen Taylor Support artificial bold fonts with FC_EMBOLDEN; patch from Jackey Yang and sunmoon1997. * configure.in: Check for FT_GlyphSlot_Embolden() * src/cairo-ft-font.c: Call FT_GlyphSlot_Embolden for fonts where FC_EMBOLDEN is set but that aren't bold. Add another private flag for this. @ text @d1 14 @ 1.940 log @ 2005-08-22 Carl Worth * test/Makefile.am (EXTRA_DIST): Fix typo that was causing make dist to fail. @ text @d1 11 @ 1.939 log @2005-08-22 Owen Taylor * test/text-rotate.c (draw): Use floor(0.5+x) rather than round(), which is C99. (David Hollenberg) @ text @d1 5 @ 1.938 log @2005-08-22 Owen Taylor * autogen.sh: Set LC_ALL=C rather than LANG and LC_NUMERIC to be robust against whatever settings the user has. (Martin Dobias) @ text @d3 5 @ 1.937 log @ * src/cairo.c: (cairo_paint_with_alpha): Optimize away calls to cairo_paint_with_alpha() if the alpha value given is <= 0. * src/cairoint.h: Add a new macro CAIRO_ALPHA_IS_ZERO. @ text @d1 5 @ 1.936 log @ Fix for bug #4172: * src/cairo-pattern.c: (_cairo_pattern_shader_gaussian), (_cairo_image_data_set_linear), (_cairo_image_data_set_radial): Use _cairo_fixed_to_double and _cairo_double_to_fixed when converting between double and 16.16 fixed point. These functions round nicely, and solve some inconsistencies in rendering between my PPC and x86 machines. Thanks to Owen Taylor for suggesting the fix. * test/gradient-alpha-ref.png: * test/linear-gradient-ref.png: * test/text-pattern-ref.png: The above change does affect linear gradients slightly, but it seems worth it. Update the reference images to follow. @ text @d3 7 @ 1.935 log @2005-08-21 Owen Taylor * src/cairo-surface.c (_cairo_surface_acquire_dest_image): Remove stray doc sentence that wasn't meant to be committed. @ text @d1 17 @ 1.934 log @ Fix for bug #4165: * src/cairo-hull.c: (_cairo_hull_vertex_compare): Use pointer comparison for coincident points to ensure a well-defined ordering, and avoid setting discard on both points. This fixes problems with my Mac's implementation of qsort. Final patch by Bertram Felgenhauer. * test/clip-operator-ref.png: * test/linear-gradient-ref.png: * test/operator-clear-ref.png: * test/operator-source-ref.png: * test/unantialiased-shapes-ref.png: * test/unbounded-operator-ref.png: Update reference images after the change. @ text @d1 5 @ 1.933 log @2005-08-21 Owen Taylor * autogen.sh: Check automake- if automake isn't sufficiently new. (#3593, Philip Van Hoof) @ text @d1 18 @ 1.932 log @2005-08-21 Owen Taylor * autogen.sh: When invoked as, say, ../autogen.sh, switch to the sourcedir to run the auto*. Based on corresponding code in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons) * gtk-doc.make: Update from gtk-doc CVS, bringing in some minor output changes. (Eliminate the *** from the messages that don't indicate errors.) * doc/public/Makefile.am (EXTRA_DIST): Use += for EXTRA_DIST, since gtk-doc.make already defines it. @ text @d3 5 @ 1.931 log @2005-08-21 Owen Taylor * configure.in: Check for FT_Load_Sfnt_Table and disable the PDF/PS backends if not found. (#4144, Billy Biggs) @ text @d3 13 @ 1.930 log @2005-08-21 Owen Taylor * src/cairo-surface.c (_cairo_surface_clone_similar): Fix the handling of backend->clone_similar == NULL. (#4161, Christian Biesinger) @ text @d3 5 @ 1.929 log @2005-08-21 Owen Taylor * src/cairo-surface.c: Improve the documentation of internal functions. (Based on a patch from Christian Biesinger, #4162) @ text @d3 6 @ 1.928 log @2005-08-21 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Recognize gentoo's (and maybe other distro's) modified server vendor string, where extra text is added to the upstream value. (#4068, reported by Doug Goldstein, others. Patch from Mart Raudsepp) @ text @d3 5 @ 1.927 log @2005-08-21 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_unscaled_font_create_glyph): Don't try to transform val->image when it is NULL. (#4163, Mathias Hasselmann) @ text @d3 8 @ 1.926 log @ 2005-08-20 Carl Worth Fix for bug #4142: * test/cairo-test.c (create_xlib_surface): Disable xlib tests on X servers without the Render, since they currently just crash there. A better long-term fix would be to do some useful tests in this case. Thanks to Tim Mooney. @ text @d1 6 @ 1.925 log @2005-08-20 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Include Xfree86-4.5 in the blacklist. (Reported by Andrew Benton) @ text @d1 9 @ 1.924 log @ Fix for bug #4096: * src/cairo-png.c: (multiply_alpha), (premultiply_data): Improve the performance of png reading by adding special cases for fully transparent and fully opaque alpha, and using the standard optimization for 8-bit division by 255. * src/cairoint.h: Add an INLINE macro for gcc. @ text @d1 6 @ 1.923 log @ 2005-08-19 Carl Worth From Bertram Felgenhauer : * test/.cvsignore: * test/Makefile.am: * test/rectangle-rounding-error-ref.png: * test/rectangle-rounding-error.c: (draw), (main): Add regression test for bug #4137 (fixed earlier). @ text @d1 11 @ 1.922 log @ * test/pixman-rotate.c: No need to include cairo-pdf.h. @ text @d1 10 @ 1.921 log @ 2005-08-19 Carl Worth Fix for bug #4137: * src/cairo-fixed.c: (_cairo_fixed_from_double): Fix to round properly. @ text @d1 4 @ 1.920 log @2005-08-19 Owen Taylor * src/cairo-pdf-surface.c (_cairo_pdf_surface_show_glyphs): Ignore really small fonts, since size zero fonts give xpdf fits. (#2938) @ text @d1 7 @ 1.919 log @ 2005-08-19 Carl Worth * src/cairo-font.c: (_cairo_scaled_font_set_error): Fix to actually test scaled_font->status instead of just having a comment that claims to test it. Thanks to Behdad Esfahbod . @ text @d1 6 @ 1.918 log @2005-08-18 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite): We need the call to fixup_unbounded when we optimize the RENDER operator to XCopyArea as well. @ text @d1 7 @ 1.917 log @ 2005-08-19 Carl Worth Fixes for a general problem of which bug #4094 was a specific instance: * src/cairo.c: (_cairo_set_error): * src/cairo-font.c: (_cairo_scaled_font_set_error): * src/cairo-pattern.c: (_cairo_pattern_set_error): * src/cairo-surface.c: (_cairo_surface_set_error): Don't change the status value if it already holds an error. This avoids destroying "first error" information and also avoids attempting to write read-only data, (eg. from nil objects). * src/cairo-font.c: (cairo_scaled_font_extents), (cairo_scaled_font_glyph_extents): * src/cairo-pattern.c:: (cairo_pattern_create_rgb), (cairo_pattern_create_rgba): * src/cairo-surface.c: (cairo_surface_flush), (cairo_surface_mark_dirty_rectangle), (cairo_surface_set_device_offset): * src/cairo-win32-font.c: (cairo_win32_scaled_font_select_font): * src/cairo.c: (cairo_save), (cairo_restore), (cairo_set_operator), (cairo_set_source_rgb), (cairo_set_source_rgba), (cairo_set_source_surface), (cairo_set_source), (cairo_set_tolerance), (cairo_set_antialias), (cairo_set_fill_rule), (cairo_set_line_width), (cairo_set_line_cap), (cairo_set_line_join), (cairo_set_dash), (cairo_set_miter_limit), (cairo_translate), (cairo_scale), (cairo_rotate), (cairo_transform), (cairo_set_matrix), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_new_path), (cairo_move_to), (cairo_line_to), (cairo_curve_to), (cairo_arc), (cairo_arc_negative), (cairo_rel_move_to), (cairo_rel_line_to), (cairo_rel_curve_to), (cairo_rectangle), (cairo_close_path), (cairo_paint), (cairo_paint_with_alpha), (cairo_mask), (cairo_mask_surface), (cairo_stroke_preserve), (cairo_fill_preserve), (cairo_copy_page), (cairo_show_page), (cairo_in_stroke), (cairo_in_fill), (cairo_stroke_extents), (cairo_fill_extents), (cairo_clip_preserve), (cairo_reset_clip), (cairo_select_font_face), (cairo_get_font_face), (cairo_font_extents), (cairo_set_font_face), (cairo_set_font_size), (cairo_set_font_matrix), (cairo_set_font_options), (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text), (cairo_show_glyphs), (cairo_text_path), (cairo_glyph_path), (cairo_append_path): Don't set an error on the same object if it is in an error state to begin with, just return immediately. This is intended to reduce (eventual) error prints to the first cause of an error for any given object, instead of a continual spew. @ text @d1 6 @ 1.916 log @ 2005-08-19 Carl Worth Fix for bug #2729: * src/cairo-gstate.c: (_cairo_gstate_set_dash): Adjust negative offsets up to their equivalent positive value. Add error checking for dash values, (must each be non-negative and must not be all zero). * src/cairo.c (cairo_set_dash): Add documentation. * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Add new CAIRO_STATUS_INVALID_DASH. * test/.cvsignore: * test/Makefile.am: Add dash-offfset-negative test from Owen. * doc/public/tmpl/cairo.sgml: churn @ text @d1 51 @ 1.915 log @2005-08-19 Kristian Høgsberg * src/cairo-ps-surface.c (cairo_ps_surface_set_dpi): Add this missing fuction. * src/cairo-pdf-surface.c (cairo_pdf_surface_create): Document this funtion. @ text @d11 20 @ 1.914 log @ 2005-08-19 Carl Worth Fix for bug #3915: * src/cairo-pattern.c: (_cairo_pattern_nil_for_status): Add new NULL_POINTER nil pattern. * src/cairo-pattern.c: (cairo_pattern_create_for_surface): Check for surface == NULL and return a nil pattern. * test/nil-surface.c: (draw): Verify that the above fix works. @ text @d1 8 @ 1.913 log @ 2005-08-18 Carl Worth Fix for bug #4088: * src/cairo-pattern.c: (_cairo_pattern_nil_for_status): New function to return the current nil pattern depending on the status. * src/cairo-pattern.c: (cairo_pattern_create_for_surface): * src/cairo-pattern.c: (_cairo_pattern_init_for_surface): Add missing early bailout on surface->status with error propagation to the pattern. Related cleanups for cairo_pattern_t: * src/cairo-pattern.c: (_cairo_gradient_pattern_init_copy): Don't check other->status since this is a static function. * src/cairo-pattern.c: (_cairo_pattern_init_copy): Add missing early bailout on other->status. * src/cairo-pattern.c: (_cairo_pattern_fini): Cleanup identifier names. * src/cairo-pattern.c: (_cairo_pattern_create_solid), (cairo_pattern_create_linear), (cairo_pattern_create_radial): Track rename of nil patterns. * src/cairo-pattern.c: (cairo_pattern_set_matrix), (cairo_pattern_set_filter), (cairo_pattern_set_extend): Don't call _cairo_error for pre-existing errors. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface): Take care to initialize some fields to that _cairo_pattern_release_surface will work even after an error. * src/cairoint.h: * src/cairo.c: (cairo_get_source): Track rename of cairo_solid_pattern_nil to cairo_pattern_nil. * test/.cvsignore: * test/Makefile.am: * test/nil-surface-ref.png: * test/nil-surface.c: (draw), (main): New test to ensure that a file-not-found error will propagate from a surface, through a pattern, and onto a cairo_t. @ text @d1 12 @ 1.912 log @ 2005-08-18 Carl Worth * test/.valgrind-suppressions: Suppress a pthread initialization error now that tests are linked with -lpthread. @ text @d3 48 @ 1.911 log @ 2005-08-18 Carl Worth * src/cairo-pattern.c: Fix documentation comment to use & in place of &. @ text @d3 5 @ 1.910 log @2005-08-18 Owen Taylor Reviewed by: krh * configure.in: Fix tests to just disable FreeType if a too-old FreeType is found, rather than erroring out. (#2298) @ text @d1 5 @ 1.909 log @2005-08-18 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_show_glyphs): Fix offset passed in for source patterns. (#2333, Tim Rowley) * test/text-pattern.c: Fix font to Vera Sans rather than "Sans" @ text @d3 7 @ 1.908 log @ 2005-08-18 Carl Worth * ROADMAP: Update the roadmap. Remove difficulty rating from completed tasks. Note that PostScript/PDF is (grudgingly) done as far as 1.0 is concerned, but there is more work to completing this that is slipped beyond 1.0. Note that the deadlock bug is fixed as of 0.9.2. Update who is working on what for performance. Add some new detail for post-1.0 PostScript/PDF work. Slip the overlapping source/dest Render workaround past 1.0. @ text @d1 7 @ 1.907 log @2005-08-18 Owen Taylor * test/text-pattern.c: Add a test for bug #2333 (Tim Rowley) @ text @d1 10 @ 1.906 log @2005-08-17 Owen Taylor * src/cairo-gstate.c: Implement new equations for CLEAR and SOURCE CLEAR: (mask IN clip) ? 0 : dest SOURCE: (mask IN clip) ? src : dest That behave more like what people expect. * src/cairo-gstate.c (_cairo_operator_bounded): CLEAR and SOURCE are now bounded. * src/cairo-font.c (_cairo_ft_scaled_font_show_glyphs) * src/cairo-surface.c (_cairo_surface_composite_trapezoids): Assert that SOURCE and CLEAR aren't passed to these functions. * src/cairo-surface.c (_cairo_surface_composite): Assert that SOURCE and CLEAR aren't passed to these functions when there is a mask. * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite) * src/cairo-image-surface.c (_cairo_image_surface_composite): Do fixups for SOURCE and CLEAR as well as unbounded operators, since in the absence of a mask, we need SOURCE to work correctly (don't care about CLEAR) * src/cairo-ft-font.c (_transform_glyph_bitmap, _cairo_ft_font_show_glyphs) Consistently use CLEAR/TRANSPARENT (source doesn't matter) rather than SOURCE/TRANSPARENT when clearing rectangles. * src/cairo-xlib-surface.c src/cairo-surface.c: Use IN rather than SOURCE as an example of an unbounded operator in docs. * test/unbounded-operator.c: Remove CLEAR/SOURCE columns since they are no longer unbounded. * test/operator-clear.c test/operator-source Makefile.am: Add targetted tests of CLEAR/SOURCE. @ text @d1 4 @ 1.905 log @ 2005-08-18 Carl Worth * src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_source_image): Fix to not leak surface->cgImage on out-of-memory (thanks to Josh Aas ). @ text @d1 38 @ 1.904 log @ 2005-08-18 Carl Worth * src/cairo-fixed.c: (_cairo_fixed_integer_ceil): Fix to not right-shift a negative number when called with an argument of 0. @ text @d3 7 @ 1.903 log @ 2005-08-18 Carl Worth * test/cairo-test.c: (cairo_test_expecting): Disable not-yet-implemented quartz stuff. @ text @d3 5 @ 1.902 log @ * doc/public/version.xml.in: Add an autoconf-generated version file to advertise what cairo version the manual was generated for. Idea taken from the GTK+ documentation. * doc/public/cairo-docs.xml: Include the version number, along with the title, in a bookinfo section. * doc/public/Makefile.am: Add the version.xml.in to the dist. * doc/public/.cvsignore: Ignore version.xml. * configure.in: Generate doc/public/version.xml. @ text @d1 5 @ 1.901 log @ 2005-08-18 Carl Worth * Makefile.am: Clear setgid bit on regular files prior to tarring up a release. @ text @d1 15 @ 1.900 log @2005-08-18 Kristian Høgsberg * configure.in: Fix typo in freetype configure check. @ text @d1 5 @ 1.899 log @2005-08-17 Kristian Høgsberg * configure.in: Try to use pkg-config to detect freetype2, then fall back to the existing freetype-config based check. @ text @d1 4 @ 1.898 log @ 2005-08-17 Carl Worth Fixes for bug #4110: * src/cairo-ft-font.c (_cairo_ft_unscaled_font_init): Don't call _cairo_ft_unscaled_font_init_key in the from_face case, just clear filename and id instead. Initialize unscaled->base first so that initialization order matches the structure declaration order. * src/cairo-cache.c (_cairo_hash_string): Fix to accept a NULL string and hash it identically to a zero-length string. * test/Makefile.am: * test/ft-font-create-for-ft-face: Add a test that calls cairo_ft_font_create_for_ft_face to demonstrate bug #4110. @ text @d1 5 @ 1.897 log @ * test/filter-nearest-offset.c: (draw): Fix the filter-nearest-offset test to actually test CAIRO_FILTER_NEAREST. @ text @d1 16 d70 1 a70 1 @ 1.896 log @2005-08-16 Owen Taylor * src/cairo-region.c (_cairo_region_rectangle_extents) (_cairo_region_create_from_rectangle) src/cairoint.h: Split out a couple of useful utility functions. * src/cairo-clip.c src/cairo-gstate.c: Use them. * src/cairo-surface.c (_cairo_surface_fill_region): Move code to fill a pixman_region16_t to here. * src/cairo-surface.c (_cairo_surface_fill_rectangle) * src/cairo-surface.c (_cairo_surface_fill_rectangles): Document. * src/cairo-gstate.c (_cairo_surface_clip_and_composite_trapezoids): Use _cairo_surface_fill_region(). * src/cairo-surface.c (_cairo_surface_composite_fixup_unbounded): Add a return status, use regions to simplify. * src/cairoint.h * src/cairo-image-surface.c (_cairo_image_surface_composite) * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite) (_show_glyphs_fixup_unbounded): Handle the return value from _cairo_surface_composite_fixup_unbounded(). * src/cairo-surface.c src/cairoint.h (_cairo_surface_composite_shape_fixup_unbounded): Add a variant of _cairo_surface_composite_fixup_unbounded() to avoid creating a dummy cairo_surface_attributes_t. * src/cairo-xlib-surface (_show_glyphs_fixup_unbounded): Use _cairo_surface_composite_shape_fixup_unbounded(). * src/cairo-image-surface.c (_cairo_image_surface_composite_trapezoids) * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite_trapezoids): Call _cairo_surface_composite_shape_fixup_unbounded(), since the source might still be restricted, even though the mask is unbounded. * src/cairo-gstate.c (_cairo_surface_clip_and_composite_trapezoids): Restore the rectangle optizations when drawing with unbounded operators by adding a clear for the extra area after drawing the rectangles. @ text @d1 5 @ 1.895 log @ * configure.in: Add a check for the MMX intrinsics used by pixman. gcc >= 3.4 is required. @ text @d1 44 @ 1.894 log @ 2005-08-16 Carl Worth * src/cairoint.h (CAIRO_PRINTF_FORMAT): Rename cairo_printf_format to CAIRO_PRINTF_FORMAT. Fix syntax error in the case of an empty definition. (Thanks to Vladimir Vukicevic). @ text @d1 5 @ 1.893 log @2005-08-14 Kristian Høgsberg * src/cairo-ft-font.c (_cairo_ft_unscaled_font_lock_face): Zero out 'entry', not 'unscaled' when evicting face from cache. @ text @d1 6 @ 1.892 log @2005-08-13 Kristian Høgsberg * src/cairo-ps-surface.c: (_ps_output_fill_rectangles): Fix a mismatch between printf arguments and format string (thanks to Adrian Johnson). * src/cairoint.h (cairo_printf_format): Add macro to mark printf like functions. @ text @d1 5 @ 1.891 log @2005-08-13 Owen Taylor * Makefile.am (DIST_SUBDIRS): Change docREEL back to doc. (Found by Kjartan Maraas) @ text @d1 9 @ 1.890 log @ 2005-08-13 Carl Worth * NEWS: Fix typo ('internal' should have been 'external'). @ text @d1 5 @ 1.889 log @ 2005-08-13 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.9.3 after tagging RELEASE_0_9_2. * Makefile.am (release-publish): Slight rewording of announcement email. @ text @d3 4 @ 1.888 log @ 2005-08-13 Carl Worth * NEWS: Added notes for release 0.9.2. * configure.in: Increment CAIRO_VERSION to 0.9.2 and libtool versioning to 3:1:1. * RELEASING: Remove some more 'snapshot' language. Make it more clear that the libtool versioning numbers need to be updated. @ text @d3 8 @ 1.887 log @ 2005-08-13 Carl Worth * src/cairo-pattern.c: Fix unterminated comment that eliminated cairo_pattern_add_color_stop_rgba. @ text @d3 10 a29 6 * NEWS: * src/cairo-pattern.c: * src/cairo.c: 2005-08-13 Carl Worth a41 4 * src/cairoint.h: 2005-08-13 Carl Worth @ 1.886 log @ 2005-08-13 Carl Worth * NEWS: Add missing notes on soname and user-space locking for cairo_set_source() to the 0.9.0 release notes. * src/cairo-pattern.c: Document cairo_pattern_add_color_stop_rgb, cairo_pattern_add_color_stop_rgba, cairo_pattern_set_matrix, and cairo_pattern_get_matrix. * src/cairo.c: Add note on user-space locking to the documentation for cairo_set_source(). @ text @d3 5 @ 1.885 log @ 2005-08-13 Carl Worth * src/cairoint.h: Turn the mutex code back on. It looks like the deadlocks have disappeared as of the cairo_scaled_font_map patch from two days ago. * configure.in: Setup an automake conditional for the HAVE_PTHREAD case. * test/Makefile.am: Link all tests with -lpthread if available, so that we can get some testing of cairo with mutexes turned on. @ text @d3 18 @ 1.884 log @ 2005-08-13 Carl Worth Minor, cosmetic changes: * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_lock_face): Reowrd comment to be more clear. * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Prefer return of address of base field rather than cast. * src/cairo-ft-font.c: (_cairo_ft_font_face_destroy): Whitespace fix. @ text @d3 16 @ 1.883 log @ 2005-08-13 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_map_create), (_cairo_ft_unscaled_font_init_key), (_cairo_ft_unscaled_font_init), (_cairo_unscaled_font_is_ft), (_cairo_ft_unscaled_font_fini), (_cairo_ft_unscaled_font_keys_equal), (_cairo_ft_unscaled_font_create_from_face), (_cairo_ft_unscaled_font_destroy): Shuffle functions around to put them in a sane order within the file. There should be no functional change here. @ text @d3 13 @ 1.882 log @ 2005-08-11 Carl Worth Reviewed by: keithp * src/cairoint.h: Add hash_entry field to cairo_scaled_font_t so that it can be hashed. * src/cairo-font.c: (_cairo_scaled_font_map_lock), (_cairo_scaled_font_map_unlock), (_cairo_scaled_font_map_destroy), (_cairo_scaled_font_init_key), (_cairo_scaled_font_keys_equal), (_cairo_scaled_font_init), (_cairo_scaled_font_fini), (cairo_scaled_font_create), (cairo_scaled_font_reference), (cairo_scaled_font_destroy), (_cairo_font_reset_static_data): Convert the font_face/matrix/ctm/options => cairo_scaled_font_t mapping from a two-layer cairo-cache.c implementation to a single cairo-hash.c implementation backed by a simple array for the secondary cache. @ text @d1 11 @ 1.881 log @2005-08-13 Behdad Esfahbod * src/cairo-path-data.c (_cairo_path_data_append_to_context): Move checks for invalid number of points before the calls that use the points. @ text @d1 18 d57 2 d75 2 @ 1.880 log @2005-08-13 Behdad Esfahbod * src/cairo-color.c: Fix conversion to short, to get a uniform range even for 0xffff. In other words, a color component of of (1.0 - epsilon) would convert to 0xffff, not 0xfffe. @ text @d3 6 @ 1.879 log @2005-08-13 Behdad Esfahbod * RELEASING: * Makefile.am: Generate sh1sum instead of md5sum. Use gpg to sign it. You need gpg set up. @ text @d3 6 @ 1.878 log @ 2005-08-12 Carl Worth * RELEASING: * Makefile.am: Move tag from an instruction in RELEASING to an automated step at the end of release-publish. @ text @d1 6 d10 2 a11 2 * Makefile.am: Move tag from an instruction in RELEASING to an automated step at the end of release-publish. @ 1.877 log @2005-08-13 Behdad Esfahbod * Makefile.am (release-publish): Check that the micro component of the version number is even. * RELEASING: Fixed the pattern to find all public header files. @ text @d1 6 @ 1.876 log @ 2005-08-11 Carl Worth * src/cairo-font.c (_cairo_toy_font_face_fini): Fix inverted sense of assert statement which led to lots of unpleasant crashes. @ text @d1 7 d178 1 a178 1 Patch from Behdad Esfahbod : @ 1.875 log @ 2005-08-08 Carl Worth * src/cairoint.h: Add hash_entry field to cairo_font_face_t so that it can (optionally) be hashed. * src/cairo-font.c: (_cairo_toy_font_face_hash_table_lock), (_cairo_toy_font_face_hash_table_unlock), (_cairo_toy_font_face_init_key), (_cairo_toy_font_face_init), (_cairo_toy_font_face_fini), (_cairo_toy_font_face_keys_equal), (_cairo_toy_font_face_create), (_cairo_toy_font_face_destroy), (_cairo_toy_font_face_scaled_font_create), (_cairo_font_reset_static_data): Complete the remainder of the simple -> toy renaming. Convert the family/slant/weight -> cairo_toy_font_face_t mapping to use cairo-hash.c rather than cairo-cache.c. @ text @d1 5 @ 1.874 log @ 2005-08-11 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_init_key), (_cairo_ft_unscaled_font_keys_equal), (_cairo_ft_unscaled_font_fini), (_cairo_ft_unscaled_font_map_destroy), (_cairo_ft_unscaled_font_map_lock), (_cairo_ft_unscaled_font_map_unlock), (_cairo_ft_unscaled_font_map_create), (_cairo_ft_unscaled_font_create_for_pattern), (_has_unlocked_face), (_cairo_ft_unscaled_font_lock_face), (_cairo_ft_unscaled_font_destroy), (_cairo_ft_scaled_font_create_toy), (cairo_ft_font_face_create_for_pattern), (_cairo_ft_font_reset_static_data): Move implementation of filename/id => cairo_ft_unscaled_font_t from cairo-cache.c to cairo-hash.c, with new cairo_ft_unscaled_font_map. * src/cairoint.h: Add cairo_unscaled_font->hash_entry so that unscaled fonts can live in hash tables. @ text @d1 16 @ 1.873 log @ 2005-08-08 Carl Worth Reviewed by: otaylor * src/cairoint.h: Re-order cairo_scaled_font->font_face parameter to maintain the font_face,font_matrix,ctm,options order that prevails throughout the implementation. Add font_face parameter to _cairo_scaled_font_init. * src/cairoint.h: * src/cairo-atsui-font.c: (_cairo_atsui_font_create_toy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_create_toy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create_toy): Remove const qualifier from toy_face parameter to creat_toy, as these functions may reference the font face. Track addition of font_face parameter to _cairo_scaled_font_init. * src/cairo-font.c: (_cairo_inner_font_cache_create_entry), (_cairo_scaled_font_init): Implement font_face parameter to _cairo_scaled_font_init, moving the reference of the font_face from _cairo_inner_font_cache_create_entry. * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create): Add a font_face parameter in addition to the unscaled_font parameter. * src/cairo-ft-font.c: (_cairo_ft_font_face_scaled_font_create): Track new font_face parameter to _cairo_ft_scaled_font_create. * src/cairo-ft-font.c: (_cairo_ft_font_face_create), (cairo_ft_scaled_font_lock_face): Whitespace touchup. @ text @d1 23 d417 23 @ 1.872 log @ * test/clip-operator-ref.png: Update to match the output from libpixman. @ text @d1 31 @ 1.871 log @ 2005-08-10 Carl Worth Thanks to Olivier Andrieu: * NEWS: Add mention of cairo_get_antialias. Fix to mention cairo_surface_flush by its correct name, (rather than the non-existent cairo_flush). @ text @d1 5 @ 1.870 log @ 2005-08-10 Carl Worth * doc/public/cairo-docs.xml: Fix id to be cairo rather than libglade. (Thanks to Christian Biesinger). @ text @d3 8 @ 1.869 log @ 2005-08-10 Carl Worth * src/cairo.h: * src/cairo.c: (cairo_version), (cairo_version_string): Augment existing CAIRO_VERSION_MAJOR/MINOR/MICRO and CAIRO_VERSION_STRING with CAIRO_VERSION_ENCODE and CAIRO_VERSION. Add functions for run-time access: cairo_version cairo_version_string @ text @d3 5 @ 1.868 log @ 2005-08-10 Carl Worth From Travis Spencer : * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite_trapezoids): Fix typo causing a syntax error. @ text @d3 11 @ 1.867 log @2005-08-10 Keith Packard * test/Makefile.am: Place private include directives before CAIRO_CFLAGS in case pixman remains installed in the system. @ text @d1 8 @ 1.866 log @ 2005-08-10 Carl Worth From Keith Packard , Build pixman internally as a private part of cairo, with suitable name changes to avoid any visible pixman symbols in the cairo library: * Makefile.am: Descend into pixman. * cairo.pc.in: Drop libpixman from Requires. * configure.in: Don't check for libpixman. Check version of pkg-config and use Requires.private instead of Requires in cairo.pc if possible. Generate pixman Makefiles. * pixman/Makefile.am: Rip out release-publish target and installation of libpixman.pc. * pixman/src/Makefile.am: Add pixman-remap.h. Drop libpixman.la target. * pixman/src/icint.h: Fix to include config.h rather than ../config.h * pixman/src/pixman-remap.h: This is the cpp magic to rename all pixman functions from the various fb, Fb, INT_pixman, pixman, Render, _Render, or no prefix to _cairo_pixman_ prefixes. * pixman/src/pixman.h: Include pixman-remap.h to get all the cairo-internalized names. * src/Makefile.am: * test/Makefile.am: Add -Ipixman/src to get at pixman-remap.h. @ text @d1 6 @ 1.865 log @2005-08-10 Vladimir Vukicevic * src/cairo-glitz-surface.c: Additional fix for 0-width/0-height glyphs. @ text @d1 36 @ 1.864 log @ 2005-08-10 Carl Worth * Makefile.am: * RELEASING: Change release instructions to indicate new odd-micro version for in-progress development, and even-micro for released versions. Do a bit of snapshot->release renaming. @ text @d1 5 @ 1.863 log @ 2005-08-10 Carl Worth Patch from Behdad Esfahbod : * configure.in: Update to use AC_INIT and AM_INIT_AUTOMAKE in recommended ways. Add support for substituting CAIRO_VERSION_MAJOR/MINOR/MICRO into generated headers. * src/cairo-features.h.in: Add CAIRO_VERSION_MAJOR/MINOR/MICRO and CAIRO_VERSION_STRING which are generated by configure. @ text @d3 9 @ 1.862 log @ 2005-08-10 Carl Worth * src/cairo-path-data-private.h: * src/cairoint.h: Add cairo_private to the few pieces of data that were missing it. @ text @d3 11 @ 1.861 log @2005-08-09 Vladimir Vukicevic * src/cairo-glitz-surface.c: Don't crash on 0-width or 0-height glyphs; also correctly initialize entry->key.base.memory with the image cache image. * src/cairo-xlib-surface.c (_xlib_glyphset_cache_create_entry): Free allocated entry in case of error to avoid leaking memory. @ text @d1 6 @ 1.860 log @ 2005-08-09 Carl Worth * src/cairo-arc-private.h: * src/cairo-ft-private.h: * src/cairo-meta-surface-private.h: * src/cairoint.h: Add cairo_private to several function prototypes that were missing it. @ text @d1 9 @ 1.859 log @ 2005-08-09 Carl Worth * ROADMAP: Note that sane clipping is done now. Add release versions for previously completed items. * test/.cvsignore: Ignore unantialiased-shapes. @ text @d3 8 @ 1.858 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_create_toy): Get cairo_toy_font_face_t type right. @ text @d1 7 @ 1.857 log @2005-08-09 Carl Worth * configure.in: Add -head to CAIRO_VERSION after tagging with RELEASE_0_9_0. @ text @d1 5 @ 1.856 log @ 2005-08-08 Carl Worth * NEWS: Added notes for release 0.9.0. * configure.in: Increment CAIRO_VERSION to 0.9.0. Increment LT_CURRENT to 2 to mark the beginning of proper soname management. @ text @d1 5 @ 1.855 log @ 2005-08-08 Carl Worth * src/Makefile.am (libcairo_la_SOURCES): Add missing cairo-debug.h which was hold up make distcheck. @ text @d3 7 @ 1.854 log @ 2005-08-08 Carl Worth * test/Makefile.am (EXTRA_DIST): Fix typo that was holding up make distcheck from working. @ text @d3 5 @ 1.853 log @ * src/cairo-path-data-private.h: Declare _cairo_path_nil as extern. @ text @d1 5 @ 1.852 log @ reviewed by: cworth, otaylor * src/cairo.c: (cairo_set_antialias), (cairo_get_antialias): * src/cairo.h: Add a new API for disabling antialiasing of shapes drawn by cairo. This is a hint and is not supported by all backends. * src/cairoint.h: * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_composite_traps_draw_func), (_cairo_surface_clip_and_composite_trapezoids), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_set_antialias), (_cairo_gstate_get_antialias): Store the antialiasing mode in the gstate and pass it to the backend for trapezoid rendering and for clipping. * src/cairo-clip-private.h: * src/cairo-clip.c: (_cairo_clip_intersect_path), (_cairo_clip_intersect_mask), (_cairo_clip_clip): Pass the antialiasing parameter down to the backend where appropriate. * src/cairo-surface.c: (_fallback_composite_trapezoids), (_cairo_surface_composite_trapezoids), (_cairo_surface_reset_clip), (_cairo_surface_intersect_clip_path), (_cairo_surface_set_clip_path_recursive), (_cairo_surface_set_clip_path): Pass the antialiasing parameter down to the backend where appropriate. * src/cairo-image-surface.c: (_cairo_image_surface_composite_trapezoids): Add support for A1 format trapezoid rendering, and remove the _create_mask_image function, creating a temporary image from memory we allocate and clear. * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite_trapezoids): Support A1 masks to disable antialiasing using the RENDER extension when requested. * src/cairo-xlib-surface.c: (_create_trapezoid_mask), (_cairo_xlib_surface_composite_trapezoids): Support A1 masks to disable antialiasing using the RENDER extension when requested. * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: (_cairo_meta_surface_composite_trapezoids), (_cairo_meta_surface_intersect_clip_path), (_cairo_meta_surface_replay): Blindly pass through the antialising parameter. * src/cairo-glitz-surface.c: (_cairo_glitz_surface_composite_trapezoids): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_trapezoids), (_cairo_pdf_surface_intersect_clip_path): * src/cairo-ps-surface.c: (_cairo_ps_surface_composite_trapezoids), (_cairo_ps_surface_intersect_clip_path), (_ps_output_composite_trapezoids), (_ps_output_intersect_clip_path): Add the antialiasing parameter but don't support it. * test/Makefile.am: * test/unantialiased-shapes-ref.png: * test/unantialiased-shapes.c: (big_star_path), (draw), (main): Add a test case and a reference image from the latest libpixman. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo.sgml: * doc/public/cairo-sections.txt: Add the new antialiasing disabling API to the docs. * TODO: Update progress on a parameter to disable antialiasing. @ text @d3 4 @ 1.851 log @ 2005-08-08 Carl Worth * test/.cvsignore: Ignore clip-operator and unbounded-operator. @ text @d1 74 @ 1.850 log @ 2005-08-08 Carl Worth * RELEASING: Fix gnome-announce-list address. @ text @d3 4 @ 1.849 log @2005-08-08 Owen Taylor * src/cairo-xlib-surface.c (_xlib_glyphset_cache_destroy_entry): Don't free the glyph if the entry doesn't have a glyph. (Maybe #3909, Carlos Garnacho Parro) @ text @d1 4 @ 1.848 log @ 2005-08-08 Carl Worth * src/cairo-gstate.c: (_cairo_operator_bounded): Add a return value after ASSERT_NOT_REACHED to quiet an anxious compiler. @ text @d1 6 @ 1.847 log @2005-08-08 Owen Taylor * src/cairo-gstate.c: (_cairo_surface_clip_and_composite_trapezoids): Fix accidentally committed line. @ text @d1 5 @ 1.846 log @2005-08-08 Kristian Høgsberg * src/cairo-surface.c (_cairo_surface_set_clip_path): Update doc comment. @ text @d1 5 @ 1.845 log @2005-08-08 Owen Taylor * src/cairo-gstate.c (_cairo_operator_bounded): Add a function to test whether a cairo_operator_t is bounded (does nothing for 0 src/mask) * src/cairo-surface.c (_cairo_surface_composite_fixup_unbounded) cairoint.h: Add a helper function to take clearing areas that are outside the source/mask but are cleared by unbounded operations. * src/cairo-image-surface.c (_cairo_image_surface_composite) src/cairo-xlib-surface.c (_cairo_xlib_surface_composite): Use _cairo_surface_composite_fixup_unbounded() as needed. * src/cairo-image-surface.c src/cairint.h: Keep track of whether the surface has a clip or not ... we need this for determining when we can bypass an intermediate mask for composite_trapezoids(). * src/cairo-image-surface.c (_cairo_image_surface_composite_trapezoids): Create an intermediate mask of the right size with pixman_add_trapezoids() and composite that. * src/cairo-xlib-surface.c (_cairo_xlib_surface_composite_trapezoids): When rendering with an unbounded operator, create the intermediate mask ourselves and render with ADD to that, then composite the result. * src/cairo-ft-font.c (_cairo_ft_scaled_font_show_glyphs): Create an intermediate surface the size of the extents, render the glyphs to that then composite the results. * src/cairo-xlib-surface.c (glyphset_cache_entry_t): Add the size of the glyph * src/cairo-xlib-surface.c (_show_glyphs_fixup_unbounded): Compute the size of the glyph mask, then use _cairo_surface_composite_fixup_unbounded(). * src/cairo-xlib-surface.c (_cairo_xlib_surface_show_glyphs32): Use the right mask format. (Unrelated bugfix) * src/cairo-gstate.c (_cairo_gstate_clip_and_composite): New function taking a drawing function as a parameter to encapsulate shared logic between compositing trapezoid, glyphs, and masks. * src/cairo-gstate.c (_cairo_gstate_mask, _cairo_surface_clip_and_composite_trapezoids, _cairo_gstate_show_glyphs): Use _cairo_gstate_clip_and_composite(). Also fix extents computations for unbounded operators. * src/cairo-clip.c src/cairo-clip-private.h (_cairo_clip_combine_to_surface): Add the destination as an extra parameter to allow combining to an intermediate surface. * tests/unbounded-operator.c tests/Makefile.am: Add a test for the operation of the 6 unbounded operators against different shapes. * tests/clip-operator.c tests/Makefile.am: Add a test that tests surface clipping with different shapes against all the operators. * test/composite-integer-translate-over-repeat.c (draw): Make use OVER like the name and description. With fixed semantics, SOURCE does something different. @ text @d1 5 @ 1.844 log @ 2005-08-06 Carl Worth * BUGS: Remove several bugs that have been fixed. * ROADMAP: Slip group support off of the 1.0 roadmap. Update status of clipping work which otaylor is working on. * TODO: Update for progress on cairo_surface_mark_dirty (committed), non-antialiased rendering (patch), cairo_arc_to (patch), consistent error handling (committed), cairo_content_t (committed). Remove details for some completed items. * src/cairo-gstate.c (_cairo_gstate_set_font_face): Don't crash if font_face is NULL, (this is a documented mechanism for returning to the default font_face). @ text @d1 60 @ 1.843 log @ 2005-08-06 Carl Worth * src/cairo.c (cairo_get_font_face): Fix to return &_cairo_font_face_nil instead of NULL on error. @ text @d3 16 @ 1.842 log @2005-08-06 Jeff Muizelaar * test/a8-mask.c: (main): Give reason for failure. @ text @d1 5 @ 1.841 log @2005-08-06 Owen Taylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_show_glyphs): Remove a non-sensical XXX that crept in at some point; for a solid color, there is no difference between premultiplied and non-premultiplied colors. @ text @d1 4 @ 1.840 log @ 2005-08-06 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create), (_cairo_ft_scaled_font_create_toy), (_cairo_ft_scaled_font_glyph_extents), (_cairo_ft_font_face_scaled_font_create): Fix up some stale comments. Rename _cairo_ft_scaled_font_create_for_unscaled to its proper name of _cairo_ft_scaled_font_create (which is available now that _cairo_ft_scaled_font_create_toy has its correct name). Also prefer 'scaled_font' over 'f' as an identifier. @ text @d1 7 @ 1.839 log @ 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_init), (_cairo_ft_unscaled_font_create_from_face), (_cairo_ft_unscaled_font_create_from_filename): Unify initialization for _cairo_ft_unscaled_font_create_from_face and _cairo_ft_unscaled_font_create_from_filename through new _cairo_ft_unscaled_font_init. @ text @d1 11 @ 1.838 log @ 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_font_face_create): Rename _ft_font_face_backend to be preoperly namespaced as _cairo_ft_font_face_backend. @ text @d3 9 @ 1.837 log @ 2005-08-05 Carl Worth * src/cairo-ft-font.c: (_cairo_ft_font_face_destroy), (_cairo_ft_font_face_create): Rename cairo_ft_font_face->next_face to next. @ text @d3 6 @ 1.836 log @ 2005-08-05 Carl Worth * src/cairoint.h: Include cairo-hash-private.h. * src/Makefile.am (libcairo_la_SOURCES): Add cairo-hash.c and cairo-hash-private.h since we're actually going to start using them now. @ text @d3 6 @ 1.835 log @ 2005-08-05 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_set_font_face): Simplify the implementation by taking advantage of the fact that destroy and reference are safe for NULL, and that reference returns its argument. @ text @d3 8 @ 1.834 log @ 2005-08-05 Carl Worth * src/cairo-gstate.c: (_cairo_gstate_translate), (_cairo_gstate_scale), (_cairo_gstate_rotate), (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_identity_matrix), (_cairo_gstate_unset_scaled_font), (_cairo_gstate_set_font_size), (_cairo_gstate_set_font_matrix), (_cairo_gstate_set_font_options), (_cairo_gstate_ensure_scaled_font), (_cairo_gstate_get_font_extents), (_cairo_gstate_text_to_glyphs), (_cairo_gstate_set_font_face), (_cairo_gstate_glyph_extents), (_cairo_gstate_show_glyphs), (_cairo_gstate_glyph_path): Rename two functions: _cairo_gstate_unset_font -> _cairo_gstate_unset_scaled_font _cairo_gstate_ensure_font -> _cairo_gstate_ensure_scaled_font @ text @d3 7 @ 1.833 log @ 2005-08-05 Carl Worth * src/cairoint.h: Entagle the cairo_unscaled_font_t typedef. @ text @d3 17 @ 1.832 log @ 2005-08-05 Carl Worth * src/cairoint.h: Rename font_face_backend->create_font to scaled_font_create. Group the scaled_font prototypes together. A little more simple -> toy renaming. * src/cairo-font.c: (_cairo_toy_font_face_create_from_cache_key), (_cairo_toy_font_face_destroy), (_cairo_toy_font_face_create): * src/cairo-gstate.c: (_cairo_gstate_select_font_face), (_cairo_gstate_ensure_font_face): A little more simple -> toy renaming. * src/cairo-font.c: (_cairo_toy_font_face_scaled_font_create), (_cairo_inner_font_cache_create_entry): * src/cairo-ft-font.c: (_cairo_ft_font_face_scaled_font_create): * src/cairo-win32-font.c: (_cairo_win32_font_face_scaled_font_create): Track rename of font_face_backend->scaled_font_create. @ text @d3 4 @ 1.831 log @ 2005-08-05 Carl Worth * src/cairoint.h: Rather gratuitous (though mostly harmless) whitespace changes for font backend tables. @ text @d3 19 @ 1.830 log @ 2005-08-05 Carl Worth * src/cairo.c: Document the implicit closing of sub-paths for cairo_fill and cairo_fill_preserve. @ text @d3 5 @ 1.829 log @ 2005-08-05 Carl Worth * src/cairoint.h: Rename parameters to scalend_font_backend from font to scaled_font. @ text @d3 5 @ 1.828 log @ 2005-08-05 Carl Worth * src/cairoint.h: Rename scaled_font_backend->destroy to the more accurate fini, (since it frees only the dependent data within the scaled_font and not the scaled_font itself). * src/cairo-atsui-font.c: (_cairo_atsui_font_fini): * src/cairo-font.c: (cairo_scaled_font_destroy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_fini): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_fini): Track rename of scaled_font_backend->fini. @ text @d3 5 @ 1.827 log @ 2005-08-05 Carl Worth * src/cairoint.h: Rename scaled_font_backend->create to create_toy. Move declaration of cairo_simple_font_face_t from cairo_font.c to cairoint.h and rename it cairo_toy_font_face_t. Rework create_toy to accept a cairo_toy_font_face_t rather than separate family, slant, and weight. * src/cairo-atsui-font.c: (_cairo_atsui_font_create_toy): * src/cairo-ft-font.c: (_cairo_ft_scaled_font_create_toy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_create_toy): Track change in create_toy interface. * src/cairo-font.c: (_cairo_toy_font_face_create_from_cache_key), (_cairo_simple_font_cache_create_entry), (_cairo_simple_font_face_destroy), (_cairo_simple_font_face_create_font): Partial rename of simple->toy. It's not complete as this is a step in the process of merging in a large patch of mine which actually removes most of the affected code. @ text @d3 12 @ 1.826 log @ 2005-08-05 Carl Worth * test/.cvsignore: ignore a8-mask @ text @d3 22 @ 1.825 log @ 2005-08-05 Carl Worth * test/a8-mask.c (draw): Patch memory leaks. @ text @d3 4 @ 1.824 log @2005-08-05 Jeff Muizelaar * test/Makefile.am: * test/a8-mask-ref.png: * test/a8-mask.c: (draw), (main): Add a test case for CAIRO_FORMAT_A8 masks that fails with libpixman. @ text @d1 4 @ 1.823 log @ 2005-08-05 Carl Worth * autogen.sh (automake_min_vers): Bump automake_min_vers up to 1.7 since we clearly don't work with 1.4 anymore. @ text @d1 8 @ 1.822 log @2005-08-05 Jeff Muizelaar * test/xlib-surface.c: (do_test): use the newly added buffer_diff_noalpha for comparing buffers of CAIRO_FORMAT_RGB24. @ text @d1 5 @ 1.821 log @2005-08-05 Jeff Muizelaar * test/buffer-diff.c: (buffer_diff_core), (buffer_diff), (buffer_diff_noalpha): * test/buffer-diff.h: rewrite buffer_diff to be endian safe and add a new fuction buffer_diff_noalpha @ text @d3 6 @ 1.820 log @ 2005-08-05 Carl Worth * doc/public/cairo-sections.txt: Remove CAIRO_BEGIN_DECLS and CAIRO_END_DECLS which don't belong here. @ text @d1 7 @ 1.819 log @ 2005-08-05 Carl Worth * test/surface-finish-twice.c (draw): Remove unused variable. @ text @d3 5 @ 1.818 log @ 2005-08-05 Carl Worth * doc/public/Makefile.am: Ignore cairo-clip-private.h. * doc/public/cairo-docs.xml: Drop non-existent cairo-atsui.xml. * src/cairo-font.c: Fix misnamed parameters in comment blocks. * test/cairo-test.c: Include config.h so HAVE_UNISTD_H gets picked up as necessary. @ text @d3 4 @ 1.817 log @ 2005-08-05 Carl Worth * doc/public/cairo-sections.txt: Add some missing declarations to the appropriate sections. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: churn * src/cairo-path-data-private.h: Rename cairo_path_nil to _cairo_path_nil since it may be exported, and tag it cairo_private to try to avoid exporting it. Qualify it as const well. * src/cairo-path-data.c: (_cairo_path_data_create_real): * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat): Track new name of _cairo_path_nil and cast away the const as required. @ text @d3 16 @ 1.816 log @ 2005-08-05 Carl Worth * src/cairo-arc.c: * src/cairo-matrix.c: Remove include of math.h since cairoint.h does it more carefully, (for annoying platforms for which just including math.h without extra defines is not enough). * src/cairo.c: Replace Cairo with cairo. * test/buffer-diff.c: Include config.h so HAVE_UNISTD_H gets picked up as necessary. * test/cairo-test.c: Fix non-UTF-8 copyright symbol. @ text @d3 19 @ 1.815 log @ 2005-08-05 Carl Worth Patch from John Ehresman to aid win32 compilation: * src/cairo-output-stream.c: Define snprintf as _snprintf when under the influence of _MSC_VER. * test/read-png.c: (read_png_argb32): * src/cairo-wideint.h: Define int32_t and friends as __int32 and friends when under the influence of _MSC_VER. * test/buffer-diff.c: * test/cairo-test.c: Make include of unistd.h conditional on HAVE_UNISTD_H. @ text @d3 14 @ 1.814 log @2005-08-05 Kristian Høgsberg Patch from Adrian Johnson * src/cairo-font-subset.c (cairo_pdf_ft_font_write_glyf_table) (cairo_pdf_ft_font_remap_composite_glyph): Remap composite glyps to use subset font glyph indices. @ text @d1 16 @ 1.813 log @2005-08-05 Kristian Høgsberg Reviewed by: otaylor * src/Makefile.am: * src/cairo-clip-private.h: * src/cairo-clip.c: New files. Move code for manipulating cairo_clip_t out into cairo_clip_* functions and put them in cairo-clip.c. * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rewrite to use new cairo_clip_t functions for manipulating the clip state, change the clip_and_composite_trapezoids call tree to use cairo_clip_t instead of cairo_gstate_t. * src/cairo-meta-surface.c: Use new cairo_clip_t function to maintain clip state while replaying. * src/cairo-path-fill.c: (_cairo_filler_init), (_cairo_filler_curve_to), (_cairo_path_fixed_fill_to_traps): Pass fill rule and tolerance directly, to break gstate dependency. * src/cairo-surface.c: (_cairo_surface_set_clip): New function. Set the clip for a surface as specified by the cairo_clip_t. * src/cairo-traps.c: (_cairo_traps_translate): Move translate_traps() from cairo-gstate.c to here and rename it. @ text @d3 8 @ 1.812 log @2005-08-04 Kristian Høgsberg * src/cairo-font.c: (cairo_font_face_reference), (_cairo_unscaled_font_reference), (cairo_scaled_font_reference): * src/cairo-gstate.c: (_cairo_clip_path_reference): * src/cairo-pattern.c: (cairo_pattern_reference): * src/cairo-pdf-surface.c: (_cairo_pdf_document_reference): * src/cairo-surface.c: (cairo_surface_reference): * src/cairo.c: (cairo_reference): * src/cairo.h: * src/cairoint.h: Change *_reference() functions to return the object being referenced. @ text @d1 29 @ 1.811 log @ * src/cairo-xlib-surface.c ( _categorize_composite_operation): Check for render bug involving repeated patterns with a general transform matrix. @ text @d1 14 @ 1.810 log @ 2005-08-04 Carl Worth Originally 2005-07-13 Carl Worth Reviewed by: otaylor * src/cairo-ft-private.h: Export opaque cairo_ft_unscaled_font_t and change _cairo_ft_unscaled_font_[un]lock_face to accept cairo_ft_unscaled_font_t rather than cairo_unscaled_font_t. * src/cairo-font-subset.c: (_cairo_font_subset_create), (cairo_pdf_ft_font_generate): Cast explicitly to cairo_ft_unscaled_font_t to track change in prototype of _cairo_ft_unscaled_font_[un]lock_face. * src/cairo-ft-font.c: Lots of renaming to use consistent namespacing: ft_font_transform_t -> cairo_ft_font_transform_t ft_font_face_t -> cairo_ft_font_face_t ft_unscaled_font_t -> cairo_ft_unscaled_font_t Add missing _cairo prefix to many functions. Disambiguate _ft_scaled_font_create and _cairo_ft_scaled_font_create by renaming the former to _cairo_ft_scaled_font_create_for_unscaled. @ text @d1 8 @ 1.809 log @ 2005-08-03 Carl Worth Fix for bug #3951: * configure.in: Add new _CHECK_FUNCS_WITH_FLAGS to abstract out the pain of temporarily setting flags for AC_CHECK_FUNCS. Use this to check for the existence of FcFini. * test/cairo-test.c: (cairo_test_expecting): Make call to FcFini conditional on HAVE_FCFINI. * test/text-cache-crash.c: (main): Remove stale comment about cleaning up memory which is now handled by cairo-test.c. @ text @d1 28 @ 1.808 log @2005-08-01 Owen Taylor reviewed by: cworth * src/cairo-gstate.c src/cairo-gstate-private.h: Store the inverse CTM at the time of cairo_gstate_set_source() to "lock" the user space matrix. * src/cairo-gstate.c: Move the source pattern transformation to the outside of _cairo_gstate_clip_and_composite_trapezoids() instead of doing it at the leaves. * test/source-surface-scale-paint.c: Change size of output surface for aesthetics. * test/source-surface-scale-paint-ref.png: Updated to correspond to the current definition. * test/Makefile.am (XFAIL_TESTS): Remove source-surface-scale-paint. @ text @d1 14 @ 1.807 log @ 2005-08-01 Carl Worth * src/cairo-debug.h: New public header file. * src/cairo-debug.c: (cairo_debug_reset_static_data): New function to reset all static data (eg. caches) to their initial state. * Makefile.am: Fix check-valgrind target to depend on the 'all' target. * configure.in: Add check for a new, proposed, XrmFinalize function. * src/Makefile.am: Add cairo-debug.c. * src/cairo.h: * src/cairo-features.h.in: Move the definition of CAIRO_BEGIN_DECLS to cairo-features.h so that it can be shared between public header files, and so that it doesn't clutter cairo.h * src/cairoint.h: * src/cairo-font.c: (_get_global_simple_cache), (_get_outer_font_cache), (_get_inner_font_cache), (_cairo_unlock_global_image_glyph_cache), (_cairo_font_reset_static_data): * src/cairo-ft-font.c: (_cairo_ft_font_reset_static_data): * src/cairo-xlib-screen.c: (_cairo_xlib_close_display), (_cairo_xlib_screen_info_reset), (_cairo_xlib_screen_reset_static_data): * src/cairo-xlib-surface.c: (_unlock_xlib_glyphset_caches), (_destroy_glyphset_cache_recurse), (_cairo_xlib_surface_reset_static_data): Implement reset_static_data in all modules as required. * test/xlib-surface.c: (main): * test/cairo-test.h: * test/cairo-test.c: (cairo_test_for_target), (cairo_test_expecting): Call cairo_debug_reset_static_data and FcFini so that we can have all tests be valgrind-clean with respect to memory leaks and still-reachable data. @ text @d1 21 d123 1 a123 1 (http://bugzilla.gnome.org/show_bug.cgi?id=#311299, @ 1.806 log @2005-08-01 Owen Taylor * src/cairo.h src/cairoint.h src/cairo-surface.c: Add cairo_mark_dirty[_rectangle]() and cairo_flush() for * src/cairo-win32-surface.c: Implement a cairo_flush() that restores the original clip. Also restore the original flush when a surface is finished. * ROADMAP: Check off the item. @ text @d1 42 d687 13 @ 1.805 log @ reviewed by: keithp * src/cairo-ft-font.c: (_ft_unscaled_font_set_scale): Support versions of freetype without exact FT_Bitmap_Size.x/y_ppem values by using the pixel width and height values instead. * configure.in: Add a check for FT_Bitmap_Size.y_ppem. @ text @d1 11 @ 1.804 log @ * src/cairo-quartz-surface.c: (cairo_quartz_surface_create): Cast away the const on the nil surface to avoid a compiler warning. @ text @d3 10 @ 1.803 log @ * src/cairo-atsui-font.c: (_cairo_atsui_font_create): Pass the options down to the scaled font object to keep things compiling. @ text @d3 5 @ 1.802 log @2005-07-30 Keith Packard * src/cairo-wideint.c: (_cairo_int32x32_64_mul), (_cairo_uint64_divrem), (_cairo_uint128_divrem): * src/cairo-wideint.h: Replace wide integer divide algorithms with trivial bit-at-a-time code. Original code was of unclear provenance, this new code is completely different. @ text @d1 5 @ 1.801 log @ * ROADMAP: Remove completed 0.6 tasks. Add cairo_surface_flush to the cairo_surface_mark_dirty task. @ text @d1 11 @ 1.800 log @ * src/cairo-atsui-font.c ( _cairo_atsui_font_create): src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_dest_image): Minor updates to keep quartz backend limping along. @ text @d1 5 @ 1.799 log @2005-07-29 Owen Taylor * src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c src/cairoint.h: Move the font options into the base cairo_scaled_font_t object so that we have them available to use when we are removing a scaled font from the cache. (http://bugzilla.gnome.org/show_bug.cgi?id=#311299, Ali Akcaagac, Behdad Esfahbod) @ text @d1 6 @ 1.798 log @ * src/cairo-gstate.c: (_cairo_gstate_mask): Run the mask pattern through the CTM in the same way as the source pattern. This fixes the bug demonstrated by the mask-ctm and mask-surface-ctm tests so they should no longer fail. @ text @d1 9 @ 1.797 log @ * test/.cvsignore: * test/Makefile.am: * test/mask-ctm-ref.png: * test/mask-ctm.c: (draw), (main): * test/mask-surface-ctm-ref.png: * test/mask-surface-ctm.c: (draw), (main): Add two new tests: mask-ctm mask-surface-ctm demonstrating that masks are not currently being modified by the CTM. @ text @d3 7 @ 1.796 log @ * RELEASING: CC gnome-announce-list@@gnome.org on cairo release announcements. @ text @d3 13 @ 1.795 log @ * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_6_0. @ text @d3 5 @ 1.794 log @ * NEWS: Added notes for snapshot 0.6.0 * configure.in: Increment CAIRO_VERSION to 0.6.0 @ text @d3 5 @ 1.793 log @ * src/cairo-ft-font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to): Remove const qualifiers that only make things happy with a from-cvs version of freetype. Now we should be back to being happy with a released version. @ text @d3 6 @ 1.792 log @ * test/Makefile.am (EXTRA_DIST): Remove text-antialias-subpixel-ref.png from the list since it doesn't exist yet. @ text @d3 11 @ 1.791 log @ * doc/public/tmpl/cairo.sgml: More doc/public/tmpl churn. @ text @d3 6 @ 1.790 log @ * test/Makefile.am (EXTRA_DIST): Add text-antialias-{gray|none|subpixel}-ref.png so they get distributed. @ text @d3 4 @ 1.789 log @2005-07-28 Dave Beckett * test/cairo-test.c (cairo_test_create_surface_from_png): Use cairo_surface_status(image) instead of testing for NULL from cairo_image_surface_create_from_png to enable testing when srcdir != builddir again. @ text @d1 6 @ 1.788 log @ * ROADMAP: Note that consistent error handling is done now. @ text @d1 7 @ 1.787 log @ * src/cairo-image-surface.c: (cairo_image_surface_get_width), (cairo_image_surface_get_height): Fix to call _cairo_error and return 0 on surface-type mismatch. @ text @d3 4 @ 1.786 log @2005-07-28 Owen Taylor * configure.in Makefile.am: Skip tests/ directory if libpng was disabled. (#3423, reported by Steve Chaplin) @ text @d1 6 @ 1.785 log @ * src/cairo-png.c: (read_png), (cairo_image_surface_create_from_png): Fix so that one of three different error status values will be returned: CAIRO_STATUS_NO_MEMORY CAIRO_STATUS_FILE_NOT_FOUND CAIRO_STATUS_READ_ERROR * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Add new CAIRO_STATUS_FILE_NOT_FOUND. * src/cairoint.h: * src/cairo-surface.c: Add new _cairo_surface_nil_read_error and _cairo_surface_nil_file_not_found. * test/create-from-png.c: (draw): Test the new FILE_NOT_FOUND error. @ text @d1 5 @ 1.784 log @2005-07-28 Stuart Parmenter * src/cairo-win32-font.c * src/cairo-win32-surface.c Use surface->base.status instead of just surface on cairo_win32_surface_t *s @ text @d1 21 @ 1.783 log @2005-07-28 Owen Taylor * configure.in: Disable PS surface build if no freetyp @ text @d1 7 @ 1.782 log @2005-07-28 Owen Taylor * src/cairo-win32-font.c (_draw_glyphs_on_surface): Pass -1 not 1 to RestoreDC to restore to the last SaveDC. (#3905, Stuart Parmenter @ text @d3 4 @ 1.781 log @2005-07-16 Owen Taylor Patch from Martin Kretzschmar , #3798 * src/cairo-xlib-surface.c (_get_image_surface): prevent sign-extension of masks.*_mask on 64bit architectures. * src/cairo-xcb-surface.c (_get_image_surface): ditto. @ text @d1 6 @ 1.780 log @2005-07-28 Owen Taylor * src/cairo-image-surface.c (_cairo_image_surface_acquire_source,dest_image) src/cairo-quartz-surface.c (_cairo_quartz_surface_acquire_dest_image) src/cairo-xcb-surface.c (_cairo_xcb_surface_acquire_source,dest_image): src/cairo-xlib-surface.c (_cairo_xlib_surface_acquire_source,dest_image): Set image_extra to NULL to avoid purify warnings. (#3777, Stuart Parmenter) @ text @d1 9 @ 1.779 log @ * src/cairoint.h: * src/cairo-path-data-private.h: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo-surface.c: Remove all create_in_error functions as they were just muddling up the memory management semantics: _cairo_path_data_create_in_error _cairo_pattern_create_in_error _cairo_surface_create_in_error * src/cairo-gstate.c: (_cairo_gstate_mask), (_composite_traps_intermediate_surface), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_show_glyphs): Don't bother with extra check of other->status to anticipate and try to prevent cairo_surface_create_similar from returning through cairo_surface_create_in_error. * src/cairo-glitz-surface.c: (cairo_glitz_surface_create): * src/cairo-image-surface.c: (cairo_image_surface_create), (cairo_image_surface_create_for_data): * src/cairo-png.c: (cairo_image_surface_create_from_png): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (cairo_surface_create_similar), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_for_dc): * src/cairo-xlib-surface.c: (cairo_xlib_surface_create): * src/cairo.c: (cairo_get_source), (cairo_get_font_face): (cairo_get_target), (cairo_copy_path), (cairo_copy_path_flat): Just return &_cairo_surface|pattern|path_nil rather than _cairo_surface|pattern|path_create_in_error. * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-pattern.c: * src/cairo-ps-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: After checking surface->status from a cairo__surface_create function, just return CAIRO_STATUS_NO_MEMORY since that's the only error we'll get from one of these create functions. * src/cairo-gstate.c: (_cairo_gstate_get_target): Remove unnecessary check for gstate == NULL; * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient): Fix old check for image == NULL instead of image->base.status. * src/cairo-quartz-surface.c: (_cairo_quartz_surface_acquire_source_image): Add missing check of surface->image_base.status after creating surface->image. * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar): Add missing check of surface->base.status after creating surface. @ text @d1 8 @ 1.778 log @2005-07-27 Owen Taylor * src/cairo-font.c src/cairoint.h: Define _cairo_font_face_nil. (cairo_font_face_reference, cairo_font_face_destroy cairo_font_face_set_user_data): Handle a nil font face. (cairo_font_face_status): New function. * src/cairo-font.c (_cairo_simple_font_face_create) src/cairo-ft-font.c (cairo_ft_font_face_create_for_pattern): src/cairo-ft-font.c (cairo_ft_font_face_create_for_ft_face): src/cairo-win32-font.c (cairo_win32_font_face_create_for_logfontw): Return _cairo_font_face_nil on out-of-memory. * src/cairo-gstate.c (_cairo_gstate_select_font_face) * src/cairo-gstate.c (_cairo_gstate_ensure_font_face): Check return of _cairo_simple_font_face_create(). * src/cairo-gstate.c (_cairo_gstate_set_font_face): Error out if font_face has a status. * src/cairo-surface.c (cairo_surface_set_user_data): Handle a nil surface. @ text @d1 67 @ 1.777 log @2005-07-27 Owen Taylor * test/Makefile.am (XFAIL_TESTS): Remove text-antialias-none which is now fixed. * test/text-antialias-none.c (main): No longer xfail. @ text @d3 23 @ 1.776 log @2005-07-27 Owen Taylor * src/cairo-win32-font.c (_win32_scaled_font_create): * src/cairo-ft-font.c (_ft_scaled_font_create): Go back to returning NULL. * src/cairoint.h src/cairo-ft-font.c: Stop exporting _cairo_scaled_font_nil, since we dont' need it publically any more. * src/cairo-surface.c (_cairo_surface_reset_clip): return surface->status not status. (Fixes warning) @ text @d3 7 @ 1.775 log @ * src/cairo.h: Add CAIRO_STATUS_INVALID_CONTENT, CAIRO_STATUS_INVALID_FORMAT, and CAIRO_STATUS_INVALID_VISUAL. Change functions to return type of void: cairo_scaled_font_extents cairo_surface_finish Add new functions to query object status: cairo_scaled_font_status cairo_surface_status * doc/public/tmpl/cairo.sgml: * src/cairo-array.c: * src/cairo-atsui-font.c: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-meta-surface.c: * src/cairo-path-data.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairo.c: * src/cairoint.h: Implementation of new error handling scheme for cairo_surface_t and cairo_scaled_font_t. * test/surface-finish-twice.c: Track change in return value of cairo_surface_finish. @ text @d1 13 @ 1.774 log @2005-07-27 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_get_font_options): Turn off antialiasing for rendering to alpha surfaces. @ text @d1 42 @ 1.773 log @ * ROADMAP: Note that the XFAIL tests all need to be fixed before 1.0. * test/.cvsignore: * test/Makefile.am: * test/text-antialias-gray-ref.png: * test/text-antialias-gray.c: (draw), (main): * test/text-antialias-none-ref.png: * test/text-antialias-none.c: (draw), (main): * test/text-antialias-subpixel.c: (draw), (main): Add three new tests for testing the various antialiasing options for text rendering. @ text @d1 5 @ 1.772 log @ * src/cairo-png.c: (cairo_image_surface_create_from_png_stream): Fix typo that caused cairo_image_surface_create_from_png_stream to segfault. Closes bug #3863 (thanks to Steve Chaplin). * test/.cvsignore: * test/Makefile.am: * test/create-from-png-stream-ref.png: * test/create-from-png-stream.c: * test/create-from-png.c: Add a test to actually call cairo_image_surface_create_from_png_stream. @ text @d3 15 @ 1.771 log @2005-07-27 Owen Taylor * src/cairo-xlib-surface.c (_xlib_glyphset_cache_create_entry): Deal with glyphs with entry->im->image NULL. (This can happen if fonts have size-zero bitmaps for some characters, for example) (http://bugzilla.gnome.org/show_bug.cgi?id=311709, Sangu Kim) @ text @d1 13 @ 1.770 log @2005-07-27 Owen Taylor * src/cairo-ft-font.c (_get_bitmap_surface): FreeType bitmaps may only be padded out to 8-bit boundaries, not 32-bit boundaries. (_render_glyph_bitmap): Fix sign error in using glyphslot->bitmap_left @ text @d3 7 @ 1.769 log @Fix infinite loop bug in xlib backend @ text @d1 6 @ 1.768 log @ * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-pdf-surface.c: Replace all occurences of refcount with ref_count. * doc/public/language-bindings.xml: Replace refcounted with reference-counted. @ text @d1 5 @ 1.767 log @2005-07-25 Owen Taylor reviewed by: cworth * src/cairo.[ch] src/cairo-gstate-private.h src/cairo-gstate.c src/cairoint.c: Add cairo_{get,set}_font_options(). * doc/public/Makefile.am (IGNORE_HFILES): Add cairo-xlib-private.h * doc/public/cairo-sections.txt: Update @ text @d1 12 @ 1.766 log @2005-07-24 Owen Taylor * src/cairo-ft-font.c (_render_glyph_outline): Fix size of allocated buffer for vertical subpixel rendering. (Reported by Fryderyk Dziarmagowski, http://bugzilla.gnome.org/show_bug.cgi?id=310935) (_get_pattern_load_flags): Fix a problem where we were OR'ing multiple FT_LOAD_* flags together. * src/cairo-xlib-screen.c (_cairo_xlib_init_screen_font_options): Fix reversed check for subpixel or not. @ text @d1 11 @ 1.765 log @* src/cairo-ft-font.c: * src/cairo.h: Add some missing parameters for API docs. @ text @d1 11 @ 1.764 log @2005-07-23 Owen Taylor * src/cairo-xlib-private.h src/cairo-xlib-screen.c: Switch to using Screen * not screen number to match surface code. * src/cairo-xlib-screen.c: Get the screen info for the right screen for the surface. @ text @d1 5 @ 1.763 log @2005-07-22 Owen Taylor * src/cairo-ft-font.c: Protect against division by zero in various places. (http://bugzilla.gnome.org/show_bug.cgi?id=311299, reported by Ali Akcaag @ text @d1 8 @ 1.762 log @2005-07-22 Owen Taylor Patch from Tor Lillqvist * src/cairo-win32-font.c: Define TT_PRIM_CSPLINE if it wasn't in the headers. (_get_system_quality): Add missing variable smoothing_type. @ text @d3 5 @ 1.761 log @ * src/cairoint.h: Get the case right. It's cairo, not Cairo. @ text @d1 8 @ 1.760 log @ * ROADMAP: Note that sub-pixel text rendering is done now. @ text @d3 4 @ 1.759 log @2005-07-21 Owen Taylor * src/cairo-ft-font.c: The FT_LOAD_TARGET_* flags aren't separate bitfields, but rather an embedded subfield, so test with FT_LOAD_TARGET_MODE (val->key.flags) == FT_RENDER_LCD, and similar. @ text @d1 4 @ 1.758 log @2005-07-21 Keith Packard reviewed by: cworth, otaylor * src/cairo-ft-font.c: (_ft_font_cache_create_entry), (_ft_unscaled_font_set_scale), (_native_byte_order_lsb), (_get_bitmap_surface), (_render_glyph_outline), (_render_glyph_bitmap), (_get_pattern_load_flags), (_get_options_load_flags): * src/cairo-xlib-surface.c: (cairo_xlib_surface_set_size), (_native_byte_order_lsb), (_xlib_glyphset_cache_create_entry), (_xlib_glyphset_cache_destroy_entry), (_get_glyphset_cache), (_select_text_mask_format), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8): * src/cairoint.h: Add ARGB glyph support. Change Bi-level glyph support to use A1 format. Support bit/byte swapping of glyph image data in the Xlib backend. @ text @d1 6 @ 1.757 log @ * src/cairo-ft.h: * src/cairo-quartz.h: Whitespace fixes. @ text @d1 24 @ 1.756 log @Fix empty glyph issue in glitz backend @ text @d1 5 @ 1.755 log @2005-07-21 Keith Packard reviewed by: otaylor, cworth * ROADMAP: * src/cairo-xlib-surface.c: (cairo_xlib_surface_set_drawable): * src/cairo-xlib.h: Add cairo_xlib_surface_set_drawable which changes the target drawable for an xlib cairo_t to another which shares the same format, screen and display. @ text @d1 5 @ 1.754 log @ * ROADMAP: Note that cairo_font_options_t is done now. @ text @d1 11 @ 1.753 log @2005-07-13 Owen Taylor reviewed by: cworth * src/cairo-font-options.c src/cairo.h src/cairoint.h src/Makefile.am: Add an opaque cairo_font_options_t structure. * src/cairo-font.c src/cairo.h src/cairoint.h: Add a cairo_font_options_t object to cairo_scaled_font_create(). * src/cairo-surface.c src/cairoint.h: Add virtualized cairo_surface_get_font_options() to get the font options for a surface. * src/cairo-gstate.c: Adapt to cairo_scaled_font_create() change. * src/cairo-pdf-surface.c: Add an implementation of get_font_options() that turns off metrics hinting. * src/cairo-xlib-screen.c src/cairo-xlib-private.h: Add a "screen info" structure that holds (for now) information about the default font options for the screen. * src/cairo-xlib-surface.c: Implement get_font_options() * src/cairo-ft-font.c src/cairo-ft.h: Add functions to apply a cairo_font_options_t to a FcPattern or get the load flags for a cairo_font_options_t. * src/cairo-ft-font.c: Adapt to font options additions. Add support for non-antialiased rendering of scalable fonts. Add support for turning off metrics hinting. * src/cairo-win32-font.c: Adapt to font options additions. * doc/public/Makefile.am doc/public/cairo-sections.txt: Update. @ text @d1 4 @ 1.752 log @ * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_release_surface), (_cairo_glitz_pattern_acquire_surfaces), (_cairo_glitz_surface_composite), (_cairo_glitz_surface_composite_trapezoids), (_cairo_glitz_surface_show_glyphs): Finally grepped through and fixed up the last remaining calls to cairo_pattern_release_surface. @ text @d1 37 @ 1.751 log @ * src/cairo-xcb-surface.c: (_cairo_xcb_surface_composite), (_cairo_xcb_surface_composite_trapezoids): Fix yet another file that I missed when I made the cairo_pattern_release_surface change. You would think that I would have grepped for all uses of this function by now. @ text @d3 11 @ 1.750 log @ * ROADMAP: Mark cairo_xlib_surface_create as complete. Move cairo_xlib_surface_set_drawable from 0.6 to 1.0 since it is an API addition, not a change. @ text @d3 8 @ 1.749 log @ * src/cairo.h (CAIRO_CONTENT_VALID): Fix macro to not consider CAIRO_FORMAT_ARGB32 (==0) as a valid cairo_content_t. @ text @d1 6 @ 1.748 log @2005-07-20 Keith Packard reviewed by: otaylor * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_same_screen), (_cairo_xlib_surface_clone_similar), (_surfaces_compatible), (_categorize_composite_operation), (_cairo_xlib_surface_create_internal), (_cairo_xlib_screen_from_visual), (cairo_xlib_surface_create), (cairo_xlib_surface_create_for_bitmap), (cairo_xlib_surface_create_with_xrender_format): * src/cairo-xlib-xrender.h: * src/cairo-xlib.h: * test/cairo-test.c: (create_xlib_surface): Add Screen* arguments to: cairo_xlib_surface_create_with_xrender_format cairo_xlib_surface_create_for_bitmap Required to correctly identify when two Xlib surfaces are compatible with Core and Render rendering requests. cairo_xlib_surface_create can determine the screen given the required Visual * @ text @d1 7 @ 1.747 log @ * ROADMAP: Move all API changes from 1.0 to 0.6. Other 1.0 API issues are strictly additions. @ text @d1 27 @ 1.746 log @ * test/.valgrind-suppressions: Add valgrind suppressions for libpng/libz use of uninitialized data. There are clearly bugs here that are not cairo's fault as zeroing the buffer before writing the png image actually causes more errors(\!). And, notably, setting all the data to random bytes usually makes the errors go away. * test/Makefile.am: Change the check-valgrind target to include the .valgrind-suppresions file and to tee output into valgrind.log. @ text @d1 5 @ 1.745 log @ * test/.valgrind-suppressions: Add valgrind suppressions for libpng/libz use of uninitialized data. There are clearly bugs here that are not cairo's fault as zeroing the buffer before writing the png image actually causes more errors(\!). And, notably, setting all the data to random bytes usually makes the errors go away. * test/Makefile.am: Change the check-valgrind target to include the .valgrind-suppresions file and to tee output into valgrind.log. @ text @d6 1 a6 1 the png image actually causes more errors(\!). And, notably, @ 1.744 log @ * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_2. @ text @d3 13 @ 1.743 log @ * src/cairo-quartz-surface.c: (_cairo_quartz_surface_acquire_source_image), (_cairo_quartz_surface_set_clip_region): Fix the quartz backend so that it at least compiles again. This change is slipped in before 0.5.2 was pushed out and tagged. @ text @d3 5 @ 1.742 log @ * NEWS: Added notes for snapshot 0.5.2 * configure.in: Increment CAIRO_VERSION to 0.5.2 @ text @d3 8 @ 1.741 log @ * test/composite-integer-translate-over-repeat.c (draw): Fix leak of pattern. @ text @d3 6 @ 1.740 log @ * ROADMAP: Note some progress. * test/cairo-test.h: * test/cairo-test.c: (cairo_test_create_surface_from_png), (cairo_test_create_pattern_from_png): New helper function to help create an image surface from a PNG file, while taking the srcdir environment variable into consideration. Rename the pattern creating helper function to match. * test/composite-integer-translate-over.c: (draw): * test/composite-integer-translate-source.c: (draw): Use new cairo_test_create_surface_from_png so that non-srcdir builds work. * test/mask.c: (set_image_pattern): * test/trap-clip.c: (set_image_pattern): Track change in cairo_test_create_pattern_from_png. @ text @d3 5 @ 1.739 log @ * BUGS: Add note that Xlib caches need to be cleand up on close of display. @ text @d3 19 @ 1.738 log @ * src/cairo-font.c: * src/cairo-surface.c: Remove cairo_private qualifier from .c files, (we only need it in the .h files). @ text @d1 5 @ 1.737 log @2005-07-15 Vladimir Vukicevic * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite, _recategorize_composite_repeat): Use XCopyArea when possible, for optimization and bug workaround. * test/composite-integer-translate-{source,over,over-repeat}.c: Exercise XCopyArea, XRenderComposite, and XSetTile/XFillRectangle paths for _cairo_xlib_surface_composite @ text @d1 6 @ 1.736 log @ * test/Makefile.am: Add new check-valgrind target for running the test suite under the influence of valgrind. * test/buffer-diff.c: (image_diff): Fix memory leak when reference image is not found. @ text @d1 10 @ 1.735 log @ * test/mask.c: (set_gradient_pattern), (set_image_pattern), (draw): Fix a few memory leaks (missing cairo_pattern_destroy in 3 places). @ text @d3 8 @ 1.734 log @ * src/cairo-gstate.c: (_cairo_gstate_mask): Fix memory leak, (missing _cairo_pattern_fini). @ text @d3 6 @ 1.733 log @ * test/cairo-test.c (cairo_test_for_target): Remove errant line of code that was inadvertently committed recently. @ text @d3 5 @ 1.732 log @ * test/surface-finish-twice.c: (draw): Fix leak of surface. @ text @d1 5 @ 1.731 log @ * src/cairo-pdf-surface.c: (_cairo_pdf_surface_finish), (_cairo_pdf_document_finish): Call _cairo_array_fini on the several array objects to patch memory leaks. @ text @d3 4 @ 1.730 log @ * src/cairo-xlib-surface.c: (_cairo_xlib_surface_composite), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_show_glyphs): Eek. Yet _more_ fixups for _cairo_pattern_release_surface missed earlier. @ text @d3 6 @ 1.729 log @2005-08-14 Stuart Parmenter * src/cairo-win32-surface.c: (_cairo_win32_surface_fill_rectangles): blue and green values were swapped in the DO_SOURCE case. @ text @d1 7 @ 1.728 log @ * test/cairo-test.c: (cairo_test_create_png_pattern): Rewrite to use cairo_image_surface_create_from_png rather than custom read_png_argb32. In addition to being simpler, this eliminates the leak of the image data buffer. * test/trap-clip.c: (set_gradient_pattern), (set_image_pattern): Add calls to cairo_pattern_destroy to close two memory leaks. @ text @d1 5 @ 1.727 log @ * src/cairo-pattern.c: (_cairo_pattern_acquire_surfaces): Fix up one more call to _cairo_pattern_release_surface missed in the previous commit. @ text @d3 10 @ 1.726 log @ * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_release_surface): Fix to accept a cairo_pattern_t rather than a cairo_surface_t as the primary argument. * src/cairo-image-surface.c: (_cairo_image_surface_composite), (_cairo_image_surface_composite_trapezoids): Track change in _cairo_pattern_release_surface and also pass the appropriate pattern for each acquired surface. The previous backend mismatch was causing memory leaks. * src/cairo-xlib-surface.c: (_get_image_surface): Remove stale comment. * test/xlib-surface.c: (main): Add missing fclose to keep valgrind happy about memory leaks. @ text @d3 6 @ 1.725 log @ * test/cairo-test.c: (cairo_test_expecting), (cairo_test_expect_failure), (cairo_test): Make the per-backend test results print XFAIL rather than FAIL for expected failures. @ text @d3 19 @ 1.724 log @ * test/cairo-test.c: (cairo_test_real): Fix comment describing test result. It's not enough that all tested backends are successful. We also require that at least one backend is actually tested. @ text @d3 6 @ 1.723 log @ * test/cairo-test.c: (cairo_test_for_target), (cairo_test_real): * test/cairo-test.h: Don't consider a test to fail if it can't create a surface at all (eg. no X server is available). Instead mark this backend as untested and only consider the overall test a success if all tested backend are successful. @ text @d3 7 @ 1.722 log @ * src/cairo-ps-surface.c: (pattern_is_translucent): Add missing (putatively unreachable) return value. @ text @d3 8 @ 1.721 log @ * src/cairo-image-surface.c: (_cairo_image_surface_set_clip_region): Remove the copying of the region. This was a workaround for a missing copy bug in libpixman that has since been fixed. So now it was just a memory leak. @ text @d3 5 @ 1.720 log @ * src/cairo-png.c (read_png): Patch memory leak of png_info object. @ text @d3 7 @ 1.719 log @ * test/.cvsignore: * test/Makefile.am: * test/create-for-png-ref.png: * test/create-for-png.c: * test/create-from-png.c: (draw): Rename create-for-png test to create-from-png to match the naming of the cairo_image_surface_create_from_png function. @ text @d3 5 @ 1.718 log @ * test/cairo-test.c: (cleanup_xcb), (cleanup_xlib), (cairo_test_for_target), (cairo_test_real): Patch a few memory leaks. @ text @d3 10 @ 1.717 log @2005-07-13 Kristian Høgsberg * src/cairo-meta-surface.c: (_cairo_meta_surface_replay): Use the _cairo_surface_*() functions when replaying. * src/cairo-ps-surface.c: Fold the "locate fallbacks" pass into the postscript output pass, and add a simple, first implementation of image fallbacks. @ text @d1 6 @ 1.716 log @ * src/cairoint.h: * src/cairo-font.c: (_cairo_simple_font_face_create_font): Rename CAIRO_FONT_BACKEND_DEFAULT to the more accurate CAIRO_SCALED_FONT_BACKEND_DEFAULT. @ text @d1 9 @ 1.715 log @ * src/cairo-ft-private.h: * src/cairo-ft-font.c: (_cairo_unscaled_font_is_ft), (_cairo_scaled_font_is_ft): New predicates to allow checking for cairo_ft derivates of generic font type. * src/cairo-ps-surface.c: (_cairo_ps_surface_get_font), (_cairo_ps_surface_show_glyphs), (_ps_output_show_glyphs): * src/cairo-pdf-surface.c: (_cairo_pdf_document_get_font), (_cairo_pdf_surface_show_glyphs): * src/cairo-font-subset.c: (_cairo_font_subset_create): Add explicit checks for cairo_ft derivatives of generic fonts rather than just blindly assuming that's what we get. @ text @d3 7 @ 1.714 log @ * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create): Remove destroy notifier. This simplifies the implementation a bit, and no anticipated use of cairo_hash_table_t in cairo needs the destroy notifier. Most uses will be hash-backed object create/destroy functions. (_cairo_hash_table_destroy): Document that it is now a fatal error to call _cairo_hash_table_destroy on a non-empty hash table. (_cairo_hash_table_insert): Document that it is now a fatal error to insert an entry with a key that matches an existing entry. (_cairo_hash_table_random_entry): Add predicate function so that the user can select a random entry satisying the given predicate. (_cairo_hash_table_remove): Change return type to void since failure is really not possible here. @ text @d1 15 @ 1.713 log @Add note that glyph measurement performance needs to improve. @ text @d1 22 @ 1.712 log @ Fix typo (cairo_ft_options_t -> cairo_font_options_t). @ text @d5 1 @ 1.711 log @ * ROADMAP: Add cache lock deadlock problem to roadmap for 0.5.2. * src/cairoint.h: Disable mutex locks, (making the caches non-thread-safe again, just like they were in the last snapshot and before). @ text @d4 1 @ 1.710 log @ ROADMAP: Add recent API change proposals (cairo_ft_options_t, cairo_xlib_surface_create needs to be screen aware, and cairo_xlib_surface_set_drawable). @ text @d3 8 @ 1.709 log @ ROADMAP: Note progress on cairo_meta_surface_t, ARGB text, and group support. @ text @d6 3 @ 1.708 log @ * ROADMAP: Note that the cairo_content_t work is done. * src/cairo-arc.c (_arc_segments_needed): Note that this function is computing an incorrect result. @ text @d4 2 @ 1.707 log @ * src/cairo.h: Give enum tags an underscore prefix to match the style of the struct tags. Add new cairo_content_t and change cairo_surface_create_similar to accept a cairo_content_t rather than a cairo_format_t. * src/cairoint.h: * src/cairo-glitz-surface.c: (_cairo_glitz_surface_create_similar): * src/cairo-image-surface.c: (_cairo_image_surface_create_similar): * src/cairo-meta-surface.c: (_cairo_meta_surface_create_similar): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_similar): * src/cairo-ps-surface.c: (_cairo_ps_surface_create_similar): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_create_similar): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (cairo_surface_create_similar), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_similar), (_cairo_win32_surface_get_subimage): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_clone_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_clone_similar): Change surface backend create_similar call to accept a cairo_content_t rather than a cairo_format_t. * src/cairo-glitz-surface.c: (_glitz_format_from_content), (_cairo_glitz_surface_clone_similar), (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_surface_fill_rectangles), (_cairo_glitz_surface_composite_trapezoids): * src/cairo-gstate.c: (_cairo_gstate_mask), (_composite_traps_intermediate_surface), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_show_glyphs): * src/cairo-image-surface.c: (cairo_image_surface_create), (cairo_image_surface_create_for_data), (_cairo_format_from_content), (_cairo_content_from_format): * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_solid): * src/cairo-ps-surface.c: (emit_image): * test/mask.c: (mask_polygon), (draw): * test/pixman-rotate.c: (draw): * test/source-clip.c: (draw): Fix all calls into create_similar to pass a cairo_content_t rather than a cairo_format_t. @ text @d1 7 @ 1.706 log @ * CODING_STYLE: Add a missing word. * ROADMAP: Note that the BadMatch bug has been resolved. @ text @d1 44 @ 1.705 log @ * src/cairo.h: * src/cairo.c: (cairo_status_to_string): Remove CAIRO_STATUS_NO_TARGET_SURFAC and add CAIRO_STATUS_INVALID_STATUS. * src/cairo-gstate.c: (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_copy_page), (_cairo_gstate_show_page): Don't check for gstate->target == NULL anymore as the API now guarantees it never occurs. * src/cairo.c: (cairo_append_path): Check that path->status is a valid status value and cause an INVALID_STATUS error otherwise. * test/path-data.c: (main): Test the new CAIRO_STATUS_INVALID_STATUS error case in cairo_append_path. @ text @d1 6 @ 1.704 log @ * configure.in: Require libpixman >= 0.1.5, (since 0.1.4 crashes on some X servers). @ text @d3 18 @ 1.703 log @ * src/cairo-ps-surface.c: Disable the compilation of the _ps_locate_fallbacks code which, inaddition to being broken, appears to not currently be used. @ text @d1 5 @ 1.702 log @Use frame buffer objects for accelerated offscreen drawing in glitz backend @ text @d1 6 @ 1.701 log @2005-07-01 Kristian Høgsberg * src/cairo-ps-surface.c: Rewrite postscript backend to generate more interesting output than the current big-image implementation, using meta surfaces for font subsetting and image fallbacks. * src/cairo-meta-surface.c: Remove obsolete comment. * src/cairoint.h: * src/cairo-output-stream.c: Make a couple of stylistic changes and add _cairo_output_stream_write_hex_string. * src/cairo-surface.c: Add _cairo_surface_intersect_clip_path so we can replay path clipping. @ text @d1 9 @ 1.700 log @2005-07-01 Kristian Høgsberg * src/cairo-meta-surface-private.h: * src/cairo-meta-surface.c: Add meta surface implementation. * src/Makefile.am (libcairo_la_SOURCES): Add cairo-meta-surface.c and cairo-meta-surface-private.h @ text @d3 15 @ 1.699 log @ * src/cairo-hash.c (_cairo_hash_table_resize): Remove debugging printfs. @ text @d1 8 @ 1.698 log @ * src/cairo-hash-private.h: * src/cairo-hash.c (_cairo_hash_table_random_entry): Add _cairo_hash_table_random_entry. * src/cairo-hash.c: (_destroy_entry): Fix to update live_entries. * src/cairo-hash.c: (_cairo_hash_table_lookup_internal): style changes. * src/cairo-hash.c (_cairo_hash_table_resize): Add code to shrink table as well as to grow it. * src/cairo-hash.c (_cairo_hash_table_insert), (_cairo_hash_table_remove): Call new version of resize so that table will grow or shrink as needed on insert and remove. @ text @d3 5 d11 1 a11 1 @ 1.697 log @ * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create), (_destroy_entry), (_cairo_hash_table_destroy), (_cairo_hash_table_lookup_internal), (_cairo_hash_table_resize), (_cairo_hash_table_lookup), (_cairo_hash_table_insert), (_cairo_hash_table_remove), (_cairo_hash_table_foreach): Rewrite hash table to use a single cairo_hash_entry_t* rather than void *key and void *value. This is slightly more painful to use, but lends itself to a more memory-efficient implementation. Add documentation. @ text @d4 18 @ 1.696 log @ * src/cairo-hash-private.h: * src/cairo-hash.c: (_cairo_hash_table_create), (_cairo_hash_table_destroy_entry), (_cairo_hash_table_destroy), (_cairo_hash_table_lookup_internal), (_cairo_hash_table_resize), (_cairo_hash_table_lookup), (_cairo_hash_table_insert), (_cairo_hash_table_remove), (_cairo_hash_table_foreach): Rework the cache code as a hast table with a much simpler interface, (no object derviation is required to use it). * src/cairoint.h: Remove extraneous prototype for non-existent _cairo_cache_reference. @ text @d4 12 @ 1.695 log @2005-06-28 Kristian Høgsberg * src/cairo-pattern.c (cairo_pattern_create_rgb) (cairo_pattern_create_rgba): New functions to create a cairo_pattern_t corresponding to a solid color and a translucent color respectively. Document a few pattern functions. @ text @d1 14 @ 1.694 log @ reviewed by: otaylor * src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_path): Implement. @ text @d1 7 @ 1.693 log @2005-06-28 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Also flag older XFree86 servers as buggy-repeat. @ text @d1 7 @ 1.692 log @ * src/cairo-atsui-font.c (_cairo_atsui_font_text_to_glyphs): Prevent crash on empty string. @ text @d1 5 @ 1.691 log @Fix stray commit marker @ text @d1 5 @ 1.690 log @2005-06-25 Keith Packard reviewed by: cworth * configure.in: * src/cairo-cache.c: (_cairo_cache_shrink_to), (_cairo_cache_lookup): * src/cairo-font.c: (_lock_global_simple_cache), (_unlock_global_simple_cache), (_lock_global_font_cache), (_unlock_global_font_cache), (_cairo_lock_global_image_glyph_cache), (_cairo_unlock_global_image_glyph_cache), (_cairo_get_global_image_glyph_cache): * src/cairo-ft-font.c: (_lock_global_ft_cache), (_unlock_global_ft_cache): * src/cairo-xlib-surface.c: (_xlib_glyphset_cache_create_entry), (_xlib_glyphset_cache_destroy_entry), (_lock_xlib_glyphset_caches), (_unlock_xlib_glyphset_caches), (_get_glyphset_cache), (_cairo_xlib_surface_show_glyphs): * src/cairoint.h: Provide locking macros, implement with pthreads. Add _cairo_cache_shrink_to which reduces cache memory usage to a specified level. Change global glyph and xlib glyphset caches behaviour to only shrink cache on unlock. This is done by telling the cache code to never shrink (max_memory == 0), and then manually shrinking using _cairo_cache_shrink_to from the unlock function. Fix Carl's variable renaming mixing (cache = cache). @ text @a60 1 >>>>>>> 1.689 @ 1.689 log @2005-06-24 Owen Taylor * src/cairo-ft-font.c (_transform_glyph_bitmap): Add mostly useless (other than perhaps 90-degree rotation) code for transforming bitmap glyphs. @ text @d1 32 d61 1 @ 1.688 log @ From: J. Ali Harlow" Reviewed by: Vladimir Vukicevic * test/Makefile.am: * src/cairo-win32-surface.c: (_cairo_win32_surface_create_for_dc), (_cairo_win32_surface_create_similar), (_cairo_win32_surface_create_dib), (_cairo_win32_surface_composite), (categorize_solid_dest_operator), (_cairo_win32_surface_set_clip_region): Update win32 backend to match current API, so it actually builds once again. @ text @d1 6 d50 1 a50 1 @ 1.687 log @ * src/cairo-ft-font.c: (_cairo_ft_unscaled_font_create_glyph): Remove stray character. @ text @d1 22 @ 1.686 log @ * src/cairo-xlib-surface.c: (_xlib_glyphset_cache_create_entry), (_glyphset_cache_entry_reference), (_xlib_glyphset_cache_destroy_entry), (_get_glyphset_cache), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs): Prefer descriptive variable names over single-character names. Remove unneeded XGlpyhInfo field from glyphset_cache_entry_t. @ text @d3 5 @ 1.685 log @2005-06-24 Owen Taylor * src/cairo-ft-font.c (_render_glyph_bitmap): Handle rendering bitmap glyphslots as well as outline glyphslots. * src/cairo-ft-font.c (_ft_unscaled_font_set_scale): When setting the scale for a non-scalable font, use the nearest available size (FreeType won't set the glyph metrics otherwise.) @ text @d1 12 @ 1.684 log @ * ROADMAP: Add ARGB text to 1.0 roadmap. @ text @d1 9 @ 1.683 log @Improve last ChangeLog entry a bit @ text @d1 4 @ 1.682 log @2005-05-17 Owen Taylor * src/cairo-png.c (write_png): Only unpremultiply ARGB32 data. Call png_write_info() *before* we set up the write conversion... it doesn't work after. @ text @d3 2 a4 1 * src/cairo-png.c (write_png): Only unpremultiply ARGB32 data. @ 1.681 log @ * ROADMAP: Add workaround for Render's overlapping source/dest bug to the 0.5.2 roadmap. @ text @d1 6 @ 1.680 log @ Add link to BadMatch bug. @ text @d1 5 @ 1.679 log @ * ROADMAP: Update ROADMAP with some comments on 0.5.2. * src/cairo.c: Add documentation for cairo_set_source_surface and fix some typos in other documentation blocks. @ text @d4 4 a7 2 * src/cairo.c: @ 1.678 log @minor whitespace and spellfix @ text @d1 6 @ 1.677 log @2005-06-21 Kristian Høgsberg * src/cairo-pdf-surface.c: Split out font subsetting code from here, * src/cairo-font-subset-private.h: * src/cairo-font-subset.c: and put it here. @ text @d1 4 @ 1.676 log @ * src/cairo-atsui-font.c: allow building against < 10.3 SDK. @ text @d1 7 @ 1.675 log @ * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_1. @ text @d1 4 @ 1.674 log @ * Makefile.am: Force distcheck to enable gtk-doc. @ text @d3 5 @ 1.673 log @ * NEWS: Added notes for snapshot 0.5.1 * configure.in: Increment CAIRO_VERSION to 0.5.1 @ text @d3 4 @ 1.672 log @Fix abbreviated ChangeLog @ text @d1 6 @ 1.671 log @2005-06-20 Owen Taylor Workaround for https://bugs.freedesktop.org/show_bug.cgi?id=3566 * src/cairo-xlib-surface.c: Detect servers with a bug in repeating surfaces by checking vendor string and version. * src/cairo-xlib-surface.c: For such surfaces * src/cairo-xlib-surface.c: Save clip rects when setting a clip region on a surface so that we set the right clip for the surface's GC if we create it later. @ text @d8 3 a10 1 * src/cairo-xlib-surface.c: For such surfaces @ 1.670 log @ * src/cairo-matrix.c: (_cairo_matrix_is_integer_translation): Make out parameters optional. Style cleanup. @ text @d1 13 @ 1.669 log @ * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_is_opaque_solid): Abstract CAIRO_ALPHA_IS_OPAQUE out for general internal use. * src/cairo.c: (cairo_paint_with_alpha): Optimize to defer to cairo_paint if the alpha value is actually opaque. @ text @d3 5 @ 1.668 log @ * src/cairo.h: * src/cairo-private.h: * src/cairo.c: (_cairo_error), (cairo_create): Rip out cairo_set_error_notfiy function as it is clear that it is not the right approach. * test/.cvsignore: * test/Makefile.am: * test/error-notify.c: Remove error-notify test. @ text @d3 9 @ 1.667 log @ * src/cairo-xcb-surface.c (_get_image_surface): Remove references to repeat and matrix fields that no longer exist. @ text @d1 12 @ 1.666 log @2005-06-17 Owen Taylor * src/cairo-xcb-surface.c (_get_image_surface) * src/cairo-xlib-surface.c (_get_image_surface): Fix width/height typo. @ text @d1 5 @ 1.665 log @2005-06-17 Kristian Høgsberg * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_image): * src/cairo-pattern.c: (cairo_pattern_create_for_surface): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_pdf): * src/cairo-surface.c: (_cairo_surface_init): * src/cairo-xlib-surface.c: (_get_image_surface): * src/cairoint.h: Remove matrix, filter and repeat from the cairo_surface_t struct. @ text @d1 6 @ 1.664 log @ * src/cairo.c: (cairo_reference), (cairo_destroy): cairo_reference and cairo_destroy shouldn't behave differently when cr->status indicates an error. Fix this bug that just slipped back in. * src/cairo.c: (cairo_restore): Remove useless conditional return at the end of a void function. * src/cairo.c: (cairo_get_source), (cairo_get_font_face), (cairo_text_extents), (cairo_show_text), (cairo_text_path): Fix so that after calling _cairo_error the most that any cairo entry function ever does is return a previously computed value. @ text @d1 10 @ 1.663 log @2005-06-17 Kristian Høgsberg * TODO: Remove the path clipping entry from the list. @ text @d1 14 @ 1.662 log @ * src/cairo-private.h: Reorder fields of cairo_private_t to match initialization order. * src/cairo.c: (_cairo_error): Call error_notify callback if set. (cairo_create): Initialize error_notify callback to NULL. (cairo_set_error_notify): New function to allow the user to set an error notify callback. * src/cairo.h: New cairo_set_error_notify prototye. * test/.cvsignore: * test/Makefile.am: * test/error-notify.c: (toggle_status), (do_test), (main): New test for cairo_set_error_notify. @ text @d1 4 @ 1.661 log @ * TODO: Add CAIRO_STATUS_DESTROYED to TODO list. * ROADMAP: Note progress on consistent error handling. * src/cairo-surface.c: Fix typo in documentation comment for _cairo_surface_get_current_clip_serial. @ text @d1 17 @ 1.660 log @2005-06-15 Owen Taylor * doc/public/Makefile.am (MKTMPL_OPTIONS): Remove --only-section-tmpl; it doesn't really work currently :-(. @ text @d1 9 @ 1.659 log @2005-06-15 Owen Taylor * src/cairo-gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Use a clip region when rendering a non-solid pattern through a rectangular path ... trapezoid rasterization is just too slow to use that path when we aren't forced to do so. @ text @d3 5 @ 1.658 log @ (cairo_test_for_target): And add missing parenthesis. @ text @d1 7 @ 1.657 log @ * test/cairo-test.c: Track removal of cairo_status_string. @ text @d4 1 @ 1.656 log @ * TODO: Add cairo_finish to TODO list. Note that cairo_satus_string has now been removed. @ text @d3 4 @ 1.655 log @ * src/cairo.h: * src/cairo.c: Remove cairo_status_string function which can now be replaced by: cairo_status_to_string (cairo_status (cr)); This allows consistent handling of status values for things like cairo_pattern_status where there is now cairo_pattern_status_string function. @ text @d3 5 @ 1.654 log @ * src/cairo.c: (_cairo_error): Add _cairo_error so we have a single function which all errors can pass through. This allows the user to set a breakpoint on error and will allow us to augment error handling later as necessary. * src/cairo.c: (cairo_create), (cairo_reference), (cairo_destroy), (cairo_save), (cairo_restore), (cairo_set_operator), (cairo_set_source_rgb), (cairo_set_source_rgba), (cairo_set_source_surface), (cairo_set_source), (cairo_get_source), (cairo_set_tolerance), (cairo_set_fill_rule), (cairo_set_line_width), (cairo_set_line_cap), (cairo_set_line_join), (cairo_set_dash), (cairo_set_miter_limit), (cairo_translate), (cairo_scale), (cairo_rotate), (cairo_transform), (cairo_set_matrix), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_new_path), (cairo_move_to), (cairo_line_to), (cairo_curve_to), (cairo_arc), (cairo_arc_negative), (cairo_rel_move_to), (cairo_rel_line_to), (cairo_rel_curve_to), (cairo_rectangle), (cairo_close_path), (cairo_paint), (cairo_paint_with_alpha), (cairo_mask), (cairo_mask_surface), (cairo_stroke_preserve), (cairo_fill_preserve), (cairo_copy_page), (cairo_show_page), (cairo_in_stroke), (cairo_in_fill), (cairo_stroke_extents), (cairo_fill_extents), (cairo_clip_preserve), (cairo_reset_clip), (cairo_select_font_face), (cairo_get_font_face), (cairo_font_extents), (cairo_set_font_face), (cairo_set_font_size), (cairo_set_font_matrix), (cairo_get_font_matrix), (cairo_text_extents), (cairo_glyph_extents), (cairo_show_text), (cairo_show_glyphs), (cairo_text_path), (cairo_glyph_path), (cairo_get_operator), (cairo_get_tolerance), (cairo_get_current_point), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target), (cairo_copy_path), (cairo_copy_path_flat), (cairo_append_path), (cairo_status): Make all assignements to cr->status go through the new _cairo_error function. Remove CAIRO_CHECK_SANITY macro. @ text @d1 12 @ 1.653 log @ * doc/public/cairo-sections.txt: Remove cairo-atsui section since cairo-atsui.h is currently empty. Add cairo_path_data_type_t and cairo_path_data_t. * test/.cvsignore: Add pdf-clip and pdf-clip.pdf. @ text @d1 41 @ 1.652 log @2005-06-14 Kristian Høgsberg * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_set_clip), (_composite_trap_region), (_cairo_gstate_fill), (_cairo_gstate_reset_clip), (_cairo_gstate_intersect_clip_path), (_cairo_clip_path_reference), (_cairo_clip_path_destroy), (_cairo_gstate_intersect_clip_region), (_cairo_gstate_intersect_clip_mask), (_cairo_gstate_clip): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_for_document), (_cairo_pdf_path_move_to), (_cairo_pdf_path_line_to), (_cairo_pdf_path_close_path), (_cairo_pdf_surface_fill_path), (_cairo_pdf_surface_intersect_clip_path), (_cairo_pdf_document_add_page): * src/cairo-surface.c: (_cairo_surface_get_clip_mode), (_cairo_surface_fill_path), (_cairo_surface_reset_clip), (_cairo_surface_set_clip_path_recursive), (_cairo_surface_set_clip_path): * src/cairoint.h: Implement path clipping and refactor _cairo_gstate_clip() out in three different functions corresponding to the three different clipping modes. * src/cairo-glitz-surface.c: * src/cairo-ps-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairo-image-surface.c: * src/cairo-quartz-surface.c: Add NULL pointers for intersect_clip_path. * test/Makefile.am: * test/pdf-clip.c: New test case to exercise PDF clipping code. @ text @d1 8 @ 1.651 log @ * src/cairo-glitz-surface.c: (_cairo_glitz_surface_create_similar), (_cairo_glitz_surface_clone_similar), (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_surface_composite_trapezoids): * src/cairo-image-surface.c: (_cairo_image_surface_create_similar): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_create_similar): * src/cairo-ps-surface.c: (_cairo_ps_surface_create_similar): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_create_similar): * src/cairo-surface.c: (_cairo_surface_create_similar_scratch), (_cairo_surface_create_similar_solid): * src/cairo-win32-surface.c: (_cairo_win32_surface_create_similar), (_cairo_win32_surface_get_subimage): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_clone_similar): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_create_similar), (_cairo_xlib_surface_clone_similar): * src/cairoint.h: Remove Boolean 'drawable' parameter from the create_similar surface backend function since nothing anywhere is actually using this parameter. @ text @d1 36 @ 1.650 log @ * src/cairo-win32-font.c: Correct extents for text with a general tranform. @ text @d1 23 @ 1.649 log @ * src/cairo.h: Remove comment suggesting ambiguity of whether cairo_get_target references the surface, (we decided as part of the API shakeup that cairo functions returning pointers to internal objects do not automatically take a reference). @ text @d1 5 @ 1.648 log @ * src/cairoint.h: * src/cairo-pattern.c: (_cairo_pattern_create_in_error): Add new _cairo_pattern_create_in_error. * src/cairo.c: (cairo_get_source): Propagate error values from cr->status to pattern->status. @ text @d1 7 @ 1.647 log @ * src/cairo.c (_cairo_set_source_solid), (cairo_set_source_surface), (cairo_mask_surface): No longer need to check for NULL after creating a pattern. * src/cairo.c (cairo_set_source), (cairo_mask): Propagate status errors from pattern->status to cr->status. Originally 2005-05-08 Owen Taylor : * src/cairo-pattern.c src/cairoint.h: If allocation of pattern objects fails, return special static nil pattern objects. * src/cairo-pattern.c: If adding a color stop fails to allocate memory, set pattern->status. (And fix a memory leak.) Make public functions return when pattern->status is set, (and no longer return a cairo_status_t). * src/cairo-pattern.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_pattern_status() * src/cairo-gstate.c: Check the status of gstate->source and of mask patterns passed in. @ text @d3 9 @ 1.646 log @ Originally 2005-05-08 Owen Taylor : * src/cairo.c (cairo_create): If cairo_create() fails, return a special static object, cairo_nil. * src/cairo.c (cairo_reference): Don't return early if cr->status is set. cr->status should not affect reference counting. * src/cairo.c: (cairo_reference), (cairo_destroy): Ignore any magic object with a reference count of -1. @ text @d3 25 @ 1.645 log @ Originally 2005-06-02 Carl Worth : * src/cairo.h: Add a status field to cairo_path_t. * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat): Add documentation for the new approach for handling errors in these functions---always returning a valid pointer with at least a status. (cairo_append_path): Propagate path status errors to the context. Add note to documentation on initializing path->status. * src/cairo-path-data-private.h: Add missing cairo_private qualifier to a couple functions. * src/cairo-path-data.c: (_cairo_path_data_create_real): Track new status field in cairo_path_t. (cairo_path_destroy): Don't destroy cairo_path_nil. Add documentation. (_cairo_path_data_create): (_cairo_path_data_create_flat): (_cairo_path_data_append_to_context): Add documentation. (_cairo_path_data_create_in_error): New function to create a placeholder cairo_path_t just to propagate a cairo_status_t error. @ text @d3 14 @ 1.644 log @ * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_init, _cairo_gstate_init_copy, _cairo_gstate_fini): Make these functions static, which allows slightly less awkward error handling within them. @ text @d1 26 @ 1.643 log @ * src/cairoint.h: Provide font-backend-specific macros for FONT_FAMILY_DEFAULT. Change CAIRO_FT_FONT_FAMILY_DEFAULT from "serif" to "" to allow the actual default to come from the system/user configuration. @ text @d1 8 @ 1.642 log @ * src/cairo.h: Pull the enum out from inside cairo_path_data_t and give it a name of cairo_path_data_type_t. This allows C++ programs to see the enum values. It also allows variables to be declared of this type for manually constructing a cairo_path_t. @ text @d3 7 @ 1.641 log @ * ROADMAP: Add 'consistent error handling' to 1.0 roadmap. (This isn't new, we just forgot to list it here before). * TODO: Big cleanup to remove finished items. Also, split the file up to separate TODO items that affect the API from items that do not. @ text @d3 7 @ 1.640 log @ * TODO: Big cleanup to remove finished items. Also, split the file up to separate TODO items that affect the API from items that do not. @ text @d3 3 @ 1.639 log @ Originally: 2005-06-09 Carl Worth * src/cairo-pdf-surface.c: (_cairo_pdf_surface_show_page): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_acquire_source_image), (_cairo_xcb_surface_acquire_dest_image): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_acquire_source_image), (_cairo_xlib_surface_acquire_dest_image): Rework occurrences of 'if (status == CAIRO_STATUS_SUCCESS)' to use 'if (status)' instead where trivial. @ text @d2 7 a8 1 @ 1.638 log @ * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Remove STATUS_OK macro which was not being used universally. @ text @d2 14 @ 1.637 log @ 2005-06-09 Carl Worth * src/cairo.h: Remove trailing comma from enum values which gcc 4.0 does not want to see (Luis Villa). Closes bug #3502. @ text @d1 18 @ 1.636 log @2005-06-09 Owen Taylor * test/Makefile.am (INCLUDES): Add -I$(top_builddir)/src for cairo-features.h (Tomasz Cholewo) @ text @d1 5 @ 1.635 log @2005-06-07 Keith Packard * src/cairo-pdf-surface.c: (_cairo_pdf_surface_show_glyphs): Font matrix was output incorrectly; the implicit mirror-in-y transformation was not computed correctly, missing a negation of the 'xy' component. @ text @d1 5 @ 1.634 log @ * src/cairo-font.c: (cairo_font_face_reference), (cairo_font_face_destroy), (_cairo_simple_font_face_destroy), (_cairo_unscaled_font_reference), (_cairo_unscaled_font_destroy), (cairo_scaled_font_reference), (cairo_scaled_font_destroy): * src/cairo-ft-font.c: (_ft_font_cache_destroy_cache), (_cairo_ft_unscaled_font_destroy), (_ft_font_face_destroy): * src/cairo-glitz-surface.c: (_cairo_glitz_area_destroy): * src/cairo-path-data.c: (cairo_path_destroy): * src/cairo-pdf-surface.c: (cairo_pdf_font_destroy), (cairo_pdf_ft_font_destroy): * src/cairo-win32-font.c: (_cairo_win32_scaled_font_destroy): Allow NULL as a valid value for several objects. That is, calling reference or destroy on these objects will simply do nothing, successfully. * src/cairo-atsui-font.c: (_cairo_atsui_font_destroy_font): Remove extra whitespace. @ text @d1 7 @ 1.633 log @2005-06-02 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_clip): When clipping, update the clip surface to a new surface the size of the intersection of the old clip surface and the extents of the new clip path. @ text @d9 20 @ 1.632 log @ * src/cairoint.h: * src/cairo-cache.c: (_cairo_cache_init), (_cairo_cache_destroy): Remove unused cache->refcount and _cairo_cache_reference(). * src/cairo-cache.c: (_cairo_cache_destroy): Remove gratuitous nesting as recommended in CODING_STYLE. @ text @d1 6 @ 1.631 log @ * src/cairoint.h: * src/cairo-array.c: (_cairo_user_data_array_fini): * src/cairo-font.c: (cairo_font_face_destroy): * src/cairo-surface.c: (cairo_surface_destroy): Fix name of _cairo_user_data_array_destroy to be _cairo_user_data_array_fini. @ text @d3 9 @ 1.630 log @ * src/cairo-glitz-surface.c: (_cairo_glitz_glyph_cache_create_entry), (_cairo_glitz_glyph_cache_destroy_entry), (_cairo_glitz_glyph_cache_destroy_cache), (_cairo_glitz_surface_show_glyphs): Rename functions to match the naming scheme used by cairo-cache.c and all other users of it. Though it's quite likely that glitz had this right and now everything could be changed to match it instead. I'll save that for some day when we're cleaning up the cache code. @ text @d3 8 @ 1.629 log @ * CODING_STYLE: Fix spelling errors. @ text @d3 12 @ 1.628 log @ * CODING_STYLE: Fix Freudian unwrapped line in paragraph describing why long lines should be wrapped. @ text @d3 4 @ 1.627 log @ * CODING_STYLE: Add CODING_STYLE document to standardize on some style issues. * src/cairo-atsui-font.c: * src/cairo-cache.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-matrix.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-spline.c: * src/cairo-wideint.c: * src/cairo-win32-font.c: * src/cairo-xlib-surface.c: Standardize brace handling around all else clauses according to new CODING_STYLE guidelines. @ text @d3 5 d10 1 a10 1 @ 1.626 log @2005-06-03 Kristian Høgsberg Patch from Tomasz Cholewo : * src/cairo-pdf-surface.c: (cairo_pdf_ft_font_write_head_table), (cairo_pdf_ft_font_generate): Store the index of the checksum instea of a pointer to the location. @ text @d1 19 d26 1 a26 1 instea of a pointer to the location. @ 1.625 log @ * src/cairoint.h: * src/cairo-gstate.c: * src/cairo.c: (_cairo_set_source_solid), (cairo_set_source_rgb), (cairo_set_source_rgba): Move internal convenience up from _cairo_gstate_set_source_solid to _cairo_set_source_solid so that all set_source functions flow through cairo_set_source. @ text @d1 8 @ 1.624 log @ * src/cairo-gstate.c: (_cairo_gstate_init): Remove obsolete _cairo_gstate_set_target_surface, folding its contents into _cairo_gstate_init, most of which disappears due to constant folding. Ensure that gstate->next is initialized even if _cairo_pattern_create_solid fails. * src/cairo-xcb-surface.c: Remove unused _cairo_xcb_surface_set_clip_region. @ text @d1 9 @ 1.623 log @ * src/cairoint.h: * src/cairo-font.c: * src/cairo-ft-font.c: * src/cairo-glitz-surface.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-png.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Rename CAIRO_OK to STATUS_OK. No intended changes in functionality. @ text @d3 11 @ 1.622 log @ * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rename gstate->surface to gstate->target. No intended changes in functionality. @ text @d3 18 @ 1.621 log @ * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init): Remove unused fields from cairo_gstate_t, (font_family, font_slant, font_weight). Reorder fields to match between declaration and initialization and to put the most problematic fields (surface and source) at the end. No intended changes in functionality. @ text @d4 6 @ 1.620 log @ * test/Makefile.am (XFAIL_TESTS): Add self-intersecting to the list of expected failures. @ text @d3 9 @ 1.619 log @ * test/.cvsignore: * test/Makefile.am: * test/self-intersecting-ref.png: * test/self-intersecting.c: (draw), (main): Add self-intersecting test which demonstrates the long-standing bug with stroking self-intersecting paths. @ text @d3 5 @ 1.618 log @ * src/cairo-gstate.c (_cairo_gstate_get_clip_extents): Fix bug in converting box to rectangle that left clip_rect.height uninitialized, (leading to unpredictable, intermittent test failures). @ text @d3 9 @ 1.617 log @ * src/cairo.h: * src/cairo.c: (cairo_status_to_string), (cairo_status_string): Add new function cairo_status_to_string an reimplement cairo_status_string in terms of the new function. @ text @d1 7 @ 1.616 log @* src/cairo-path-data.c (_cpdc_curve_to_flatten), (_cpdp_curve_to_flatten) : Fix memory leak @ text @d1 7 @ 1.615 log @2005-05-26 Keith Packard reviewed by: krh, otaylor, cworth Replace nesting-only surface clipping with gstate contained serial-number tracked clipping sets that are loaded into the surface on demand just before each rendering operation. This permits multiple cairo_t contexts to reference a surface without regard to ordering of operations among the contexts. Also in this patch is a change to the xlib surface that creates two separate Pictures, one for source and one for destination operands which separates the source clipping from destination clipping. Cairo now specifies that sources are never clipped by any clipping applied to them as destinations. * src/cairoint.h: * src/cairo-gstate-private.h: Move cairo_clip_t (renamed from cairo_clip_rec_t) from cairoint.h to cairo-gstate-private.h. Eliminate stack of clip state from surfaces. Add new surface clipping API. * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_has_surface_clip), (_cairo_gstate_set_clip), (_cairo_gstate_get_clip_extents), (_cairo_gstate_set_target_surface), (_cairo_gstate_paint), (_cairo_gstate_combine_clip_surface), (_cairo_gstate_intersect_clip), (_get_mask_extents), (_cairo_gstate_mask), (_cairo_gstate_stroke), (_clip_and_compute_extents_arbitrary), (_composite_trap_region), (_cairo_gstate_fill), (_cairo_gstate_reset_clip), (_cairo_gstate_clip), (_cairo_gstate_show_glyphs): Manage clip objects entirely within the gstate, loading the whole thing into the surface just before drawing. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient), (_cairo_pattern_acquire_surface_for_solid), (_cairo_pattern_acquire_surface_for_surface), (_cairo_pattern_acquire_surface), (_cairo_pattern_release_surface): Source surfaces need not have clipping modified as the surface interface now specifies that source surfaces are always unclipped. * src/cairo-surface.c: (_cairo_surface_init), (cairo_surface_finish), (_cairo_surface_clone_similar), (_cairo_surface_get_current_clip_serial), (_cairo_surface_allocate_clip_serial), (_cairo_surface_reset_clip), (_cairo_surface_can_clip_region), (_cairo_surface_set_clip_region), (_cairo_surface_can_clip_path), (_cairo_surface_clip_path), (_cairo_surface_get_extents): Eliminate nested clipping contexts, leaving clip management entirely to the gstate. Create new clip API for the gstate which uses per-surface serial numbers to match gstate clipping against current surface clipping values. Surfaces no longer track clipping regions at all, so the old _cairo_surface_get_clip_extents has been replaced with _cairo_surface_get_extents. For PDF/PS surfaces, this function is expected to return a rectangle covering the entire fixed point coordinate space to leave rendering unclipped by the surface. * src/cairo-xcb-surface.c: Region clipping capability is now signalled by a non-NULL function pointer in set_clip_region. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_finish), (_cairo_xlib_surface_ensure_src_picture), (_cairo_xlib_surface_ensure_dst_picture), (_cairo_xlib_surface_set_matrix), (_cairo_xlib_surface_set_filter), (_cairo_xlib_surface_set_repeat), (_cairo_xlib_surface_set_attributes), (_cairo_xlib_surface_composite), (_cairo_xlib_surface_fill_rectangles), (_cairo_xlib_surface_composite_trapezoids), (_cairo_xlib_surface_set_clip_region), (_cairo_xlib_surface_create_internal), (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8), (_cairo_xlib_surface_show_glyphs): Each surface now contains two Pictures, one for source and one for destination operands so that source operands are never clipped by destination clipping. * src/cairo.h: * src/cairo.c: (cairo_status_string): CAIRO_STATUS_BAD_NESTING removed * test/Makefile.am: * test/self-copy.c: (main): self-copy now passes (Xlib only, until libpixman changes land) @ text @d1 5 d101 1 a101 1 2005-05-26 Olivier Andrieu @ 1.614 log @2005-05-26 Olivier Andrieu * src/cairo.c: trivial doc fixes. @ text @d1 95 @ 1.613 log @ * gtk-doc.make: Re-synch with latest from gtk-doc CVS tree. * doc/public/Makefile.am (MKTMPL_OPTIONS): Add --only-section-tmpl option so that changes to inline documentation does not lead to churn in the .sgml template files. * doc/public/tmpl/cairo-font.sgml: * doc/public/tmpl/cairo-ft.sgml: * doc/public/tmpl/cairo-glitz.sgml: * doc/public/tmpl/cairo-matrix.sgml: * doc/public/tmpl/cairo-pattern.sgml: * doc/public/tmpl/cairo-pdf.sgml: * doc/public/tmpl/cairo-png.sgml: * doc/public/tmpl/cairo-ps.sgml: * doc/public/tmpl/cairo-quartz.sgml: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo-xcb.sgml: * doc/public/tmpl/cairo-xlib.sgml: * doc/public/tmpl/cairo.sgml: Commit new templates now that gtk-doc has ripped all the inline portions out. * doc/public/tmpl/cairo-win32.sgml: * doc/public/tmpl/cairo-xcb-xrender.sgml: * doc/public/tmpl/cairo-xlib-xrender.sgml: New template files added for new sections. * doc/public/cairo-sections.txt: Update to match current API. * src/cairo-xcb.h: Make parameter names match those in the .c file and its documentation. @ text @d1 4 @ 1.612 log @ * src/cairo.c (cairo_create): Protect less-than and greater-than symbols in documentation string. @ text @d1 33 @ 1.611 log @ * TODO: Not that a patch has been submitted for consistent error handling. * src/cairo.c: Fix documentation string for cairo_create so that it might actualyl appear in the manual. @ text @d3 3 @ 1.610 log @ * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_5_0. @ text @d1 8 @ 1.609 log @ * PORTING_GUIDE: Added porting guide to help with transition to cairo 0.5 API. * NEWS: Added notes for snapshot 0.5.0 * configure.in: Increment CAIRO_VERSION to 0.5.0 @ text @d1 5 @ 1.608 log @ * src/cairo-xcb-surface.c: (_get_image_surface), (_cairo_xcb_surface_create_internal): Bring up to date with Keith's latest improvements to cairo-xlib-surface.c: Add some comments about how and why masks are computed. Generalize overflow detection in mask computation. Expand on pixman format conversion comment. Fix the broken visual->format case. @ text @d3 9 @ 1.607 log @ Two fixes from Kristion Høgsberg: * src/cairo-output-stream.c: (_cairo_output_stream_create), (_cairo_output_stream_destroy), (_cairo_output_stream_create_for_file): Fix to close the file if we opened it. * src/cairo-pdf-surface.c: (_cairo_pdf_document_finish): Grab the status from out of the stream _before_ we destroy the stream. @ text @d3 10 a12 1 Two fixes from Kristion Høgsberg: @ 1.606 log @2005-05-17 Keith Packard * src/cairo-xlib-surface.c: (_get_image_surface): Add some comments about how and why masks are computed. Generalize overflow detection in mask computation. Expand on pixman format conversion comment. @ text @d1 12 @ 1.605 log @ * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Fix documentation to not mention set_size for the _for_bitmap functions. @ text @d1 7 @ 1.604 log @ * util/cairo-api-update: Remove #ifdef munging since we once again support either #if or #ifdef. @ text @d3 6 @ 1.603 log @ * RELEASING: Update instructions to match output of 'make distcheck' * src/Makefile.am: * test/Makefile.am: Add private headers and flesh out CLEANFILES so that 'make distcheck' actually passes. @ text @d3 5 @ 1.602 log @ * src/cairo.h: Add a few more REPLACED_BY and DEPRECATED_BY definitions. * util/cairo-api-update: Add some helpful warnings. @ text @d3 9 @ 1.601 log @ * src/Makefile.am (libcairo_xlib_headers): Add cairo-xlib-xrender.h which was missed from an earlier commit. @ text @d3 7 @ 1.600 log @ * src/Makefile.am: * src/cairo-xcb.h: * src/cairo-xcb-xrender.h: * src/cairo-xcb-surface.c: (cairo_xcb_surface_create), (cairo_xcb_surface_create_for_bitmap), (cairo_xcb_surface_create_with_xrender_format): Update cairo-xcb.h to provide the same style of interface as cairo-xlib.h. * test/cairo-test.c: Update to match new cairo_xcb_surface_t create functions. @ text @d3 5 @ 1.599 log @ * src/cairo-xlib-surface.c (_get_image_surface): Avoid shifting 32-bit quanity by 32 bits, which is undefined behavior. @ text @d3 14 @ 1.598 log @ Rework of cairo_xlib_surface create functions by Keith Packard: * src/cairo-xlib-xrender.h: Add cairo_xlib_surface_create_with_render_format. * src/cairo-xlib.h: * src/cairo-xlib-surface.c: (cairo_xlib_surface_create), (cairo_xlib_surface_create_for_bitmap): Reduce Xlib constructors down to two simple forms. Add width, height to constructors and eliminate any synchronous size queries from the implementation. * test/cairo-test.c: (create_xlib_surface): * test/xlib-surface.c: (do_test): Update to match new cairo_xlib_surface_t create functions. @ text @d3 5 @ 1.597 log @ * src/cairoint.h: * src/cairo-output-stream.c: Remove destroy_closure from cairo_output_stream_t interface. * src/cairo-pdf.h: * src/cairo-pdf-surface.c: Remove destroy_closure argument from cairo_pdf_surface_create_for_stream. Rename width,height to width_in_points, height_in_points for better clarity. * src/cairo-ps.h: * src/cairo-ps-surface.c: Brush a bunch of dust off of the PS backend and bring it up to date with the latest API conventions from the PDF backend. These include: accepting a filename rather than a FILE in the primary constructor, providing a stream-based interface for more flexibility, and accepting a surface size in device-space units (points) rather than inches. * test/pdf-surface.c: (main): Make it a little more clear that the width and height being passed around are in units of points. * test/ps-surface.c: (main): Update to the latest cairo-ps.h changes as described above. Notice how much more sane things become now that the surface size is described in device-space units. @ text @d3 18 @ 1.596 log @ * test/.cvsignore: * test/Makefile.am: * test/ps-surface.c: (draw), (main): Add simple test for ps surface backend (modeled after pdf-surface.c). * test/pdf-surface.c: (main): Add print message telling user to examine resulting file. @ text @d3 27 @ 1.595 log @ * test/pdf-surface.c: (draw), (main): Update PDF test case to make sure we're actually getting the right paper size, image scaling etc. And it should now be easier to see if cairo is happy by manually viewing the resulting PDF file. @ text @d3 10 @ 1.594 log @ * src/cairo-xlib-test.h: Fix to include cairo-xlib.h, (which also fixes test/xlib-surface.c). @ text @d3 7 @ 1.593 log @ * test/pdf-surface.c: (main): Update to the latest PDF surface API changes: use filename not FILE* and use surface dimension in points, not inches. @ text @d3 5 @ 1.592 log @2005-05-16 Keith Packard * src/cairo-pattern.c: (_cairo_pattern_shader_init): Initialize op->stops[0].scale = 0. This scale value is used only when computing gradient values before the defined range, in which case stop 0 is used for both ends of the interpolation, making the value of 'scale' not actually matter, except that valgrind notices we're using an undefined value. @ text @d1 6 @ 1.591 log @ * test/.cvsignore: * test/Makefile.am: Remove quarter-over test name accidentally added to Makefile. @ text @d1 11 @ 1.590 log @2005-05-16 Kristian Høgsberg * src/cairo-pdf-surface.c (cairo_pdf_surface_create): * src/cairo-output-stream.c (_cairo_output_stream_create_for_file): Take a filename instead of a FILE pointer. @ text @d1 6 @ 1.589 log @ * src/cairo-xcb.h: * src/cairo-xcb-surface.c: (_cairo_xcb_surface_create_similar), (_cairo_xcb_surface_finish), (_cairo_xcb_surface_get_size), (_bits_per_pixel), (_bytes_per_line), (_get_image_surface), (_draw_image_surface), (_cairo_xcb_surface_get_extents), (_cairo_surface_is_xcb), (_cairo_xcb_surface_create_internal), (cairo_xcb_surface_create_for_pixmap), (cairo_xcb_surface_create_for_pixmap_with_visual), (cairo_xcb_surface_create_for_window_with_visual), (cairo_xcb_surface_set_size): Brush the dust off the XCB backend and get it compiling and working again. This patch makes the XCB surface API match that of the Xlib surface API as of yesterday. But, it's already stale as the Xlib API changed again. So we'll need one more revision of the XCB backend before the next snapshot. * test/.cvsignore: * test/Makefile.am: * test/cairo-test.c: (create_xcb_surface), (cleanup_xcb): * test/cairo-test.h: Add support for testing of the xcb backend as well. @ text @d1 7 @ 1.588 log @ * test/cairo-test.c: (cairo_test_real): * test/pdf-surface.c: (main): * test/xlib-surface.c: (do_test), (main): Cleanup output a bit, move verbose messages to test-specific log file. @ text @d3 24 @ 1.587 log @ * src/cairo-xlib-surface.c: (cairo_xlib_surface_create_with_visual): Fix the last commit so it actually compiles now. @ text @d3 7 @ 1.586 log @ * src/cairo-xlib-surface.c: (cairo_test_xlib_disable_render), (cairo_xlib_surface_create_with_visual): * test/.cvsignore: Fix a few documentation typos in the recent xlib surface rework. @ text @d3 5 d9 2 a10 1 (cairo_xlib_surface_create_with_visual): @ 1.585 log @ * src/cairo-atsui.h: * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: Add an #error if cairo-foo.h is included when cairo was compiled without support for the foo backend. @ text @d3 7 @ 1.584 log @ * test/pdf-surface.c (main): Update for change in cairo_pdf_surface_create which no longer accepts DPI values. @ text @d3 13 @ 1.583 log @2005-05-13 Owen Taylor * src/cairo-xlib-surface.c src/cairo-xlib.h doc/public/cairo-sections.txt: Drop the _for_pixmap() and _for_window() out of the create functions and use some lazy cleverness to sniff the information out as needed. * src/cairo-xlib-surface.c src/cairo-xlib-test.h Makefile.am: add cairo_test_xlib_disable_render() to turn off RENDER for tests. * test/xlib-surface.c: Test various different types of Xlib surface creation. * src/cairo-xlib.h: Remove left-over include of Xrender.h. @ text @d1 5 @ 1.582 log @2005-05-13 Kristian Høgsberg * src/cairo-pdf-surface.c (_cairo_pdf_document_open_stream): Make this a varg function and use the new _cairo_output_stream_vprintf() function to format extra dict contents. * src/cairo-output-stream.c (_cairo_output_stream_vprintf): Reimplement the printf logic so we can special case formatting of doubles to be locale independent and trim trailing zeros. @ text @d1 16 @ 1.581 log @2005-05-13 Kristian Høgsberg * src/cairo-pdf-surface.c: Rename cairo_pdf_surface_create_for_callback() to cairo_pdf_surface_create_for_stream(), and change PDF constructors to take width and height as points and move PPI setting to cairo_pdf_surface_set_ppi() @ text @d3 9 @ 1.580 log @2005-05-13 Owen Taylor * src/cairo-xlib-surface.c (_cairo_xlib_surface_create_internal): Fix misplaced goto. @ text @d1 8 @ 1.579 log @ * src/cairoint.h: * src/cairo-image-surface.c: (_cairo_image_surface_create_with_masks): Fix image->data to be unsigned * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_image): * src/cairo-image-surface.c: (_cairo_image_surface_create_for_pixman_image), * src/cairo-xlib-surface.c: (_get_image_surface), (_draw_image_surface), (_xlib_glyphset_cache_create_entry): Track change in signedness of data member/parameter. @ text @d1 5 @ 1.578 log @ Update xcb backend to compile after recent API changes: * src/cairo-xcb-surface.c: (_cairo_xcb_surface_finish): Fix missing return value. (_cairo_xcb_surface_acquire_source_image): Remove calls to non-existent cairo_surface functions. (_cairo_xcb_surface_set_matrix): Update for new matrix member names. (_cairo_xcb_surface_get_extents): Fix typo. @ text @d3 13 @ 1.577 log @ * test/.cvsignore: * test/Makefile.am: * test/paint-with-alpha-ref.png: * test/paint-with-alpha.c: (draw), (main): Add new test for bug in cairo_paint_with_alpha not transforming the source. * src/cairo-gstate.c: (_cairo_gstate_mask): Use a transformed copy of the source just like we do in all the other calls to cairo_surface_composite. Fixes the bug tested by test/paint-with-alpha. @ text @d3 11 @ 1.576 log @2005-05-12 Keith Packard reviewed by: otaylor * src/cairo-gstate.c: (_get_mask_extents): _get_mask_extents creates a pixman region but neglects to destroy it. @ text @d1 13 @ 1.575 log @2005-05-11 Owen Taylor * src/cairo-win32-surface.c (categorize_solid_dest_operator): Handle more cases by assuming no-super-luminescent colors. @ text @d1 8 @ 1.574 log @2005-05-11 T Rowley * src/cairo-atsui-font.c: * src/cairo-atsui.h: * src/cairo-quartz-surface.c: Revive quartz backend. 2005-05-11 David Reveman * src/cairo-glitz-surface.c (_cairo_glitz_surface_fill_rectangles): Set fill type repeat on source surface. (_cairo_glitz_surface_show_glyphs): Add missing cairo operator to glitz operator conversion. (_cairo_glitz_surface_show_glyphs): Only render glyphs with non zero size. 2005-05-11 Owen Taylor * src/cairo-surface.c (_fallback_fill_rectangles): Fix bounding box computation. @ text @d1 5 @ 1.573 log @ * src/cairo-atsui-font.c: * src/cairo-atsui.h: * src/cairo-quartz-surface.c: Revive quartz backend. @ text @d18 21 @ 1.572 log @Avoid empty glyphs @ text @d1 6 @ 1.571 log @Fix fill_rectangles and show_glyphs in glitz backend @ text @d7 2 @ 1.570 log @2005-05-11 Owen Taylor * src/cairo-xlib-surface.c src/cairo-xlib.h: Remove leftover cairo_xlib_surface_create(). @ text @d1 7 @ 1.569 log @2005-05-10 Owen Taylor * src/cairo.c src/cairo-path-data.c src/cairo-path-data-private.h: Pass the gstate to _cairo_path_data_create[_flat] and use _cairo_gstate_backend_to_user() so as to properly handle the surface device offset. @ text @d1 5 @ 1.568 log @ * src/cairo-arc.c (_cairo_arc_path_negative): Don't use return when calling a void function (thanks to Damien Carbery ). Closes bug #3134. @ text @d1 7 @ 1.567 log @ * test/cairo-test.c: * test/cairo-test.h: Removing mucking around with stderr and add a cairo_test_log function instead. * test/buffer-diff.c: * test/create-for-png.c: * test/pdf-surface.c: * test/read-png.c: * test/trap-clip.c: * test/xmalloc.c: Switch all error messages from fprintf(stderr,...) to cairo_test_log(...). @ text @d3 6 @ 1.566 log @ * configure.in: Fix URLs for glitz and xlibs, (thanks to Jason Dorje Short ). @ text @d3 14 @ 1.565 log @ * configure.in: Update to current canonical URL for XCB. @ text @d3 5 @ 1.564 log @ * src/cairo-wideint.h: Don't guess and make our own definitions for uint8_t, etc. Just error out if we can't find a suitable header file. * src/cairo-png.c: (unpremultiply_data), (premultiply_data): * test/read-png.c: (premultiply_data): Fix to use fixed-size type so that this code works when sizeof(unsigned long) != 32. Thanks to Manish Singh. @ text @d3 4 @ 1.563 log @ * src/cairo-gstate.c: (_cairo_gstate_get_font_matrix): * src/cairo.c: (cairo_get_font_matrix): * src/cairo.h: * src/cairoint.h: Fix cairo_get_font_matrix to actually use its out-parameter. And change the return type to void. @ text @d3 11 @ 1.562 log @2005-05-09 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_unscaled_font_create_glyph): Get the glyphslot point *after* we get the FT_Face. (Robert O'Callahan) @ text @d1 8 @ 1.561 log @ * src/cairo.h (cairo_current_target_surface): Fix deprecation macro to point to the right function, (thanks to John Ellson). @ text @d1 5 @ 1.560 log @ * src/cairo-font.c: (_cairo_simple_font_face_create_font), (cairo_scaled_font_create), (_cairo_scaled_font_init): * src/cairo-ft-font.c: (_ft_scaled_font_create), (_cairo_ft_scaled_font_create), (_ft_font_face_create_font): * src/cairo-gstate.c: (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_set_font_matrix): * src/cairo-image-surface.c: (_cairo_image_surface_set_matrix): * src/cairo-matrix.c: (_cairo_matrix_get_affine), (cairo_matrix_transform_distance), (cairo_matrix_transform_point), (_cairo_matrix_transform_bounding_box), (_cairo_matrix_compute_determinant), (_cairo_matrix_compute_eigen_values), (_cairo_matrix_compute_scale_factors), (_cairo_matrix_is_integer_translation): * src/cairo-pattern.c: (cairo_pattern_set_matrix), (_cairo_pattern_transform): * src/cairo.c: (cairo_transform), (cairo_set_matrix), (cairo_set_font_matrix): * src/cairo.h: * src/cairoint.h: Push cairo_matrix_t const-correctness down through the entire implmentation, (expanding on preliminary work by Robert O'Callahan ) @ text @d3 5 @ 1.559 log @ * configure.in: * src/cairo-features.h.in: Change cairo-features again so that either #if or #ifdef will work to test any feature. @ text @d3 25 @ 1.558 log @2005-05-07 Owen Taylor * doc/public/language-bindings.xml doc/public/cairo-doc.xml doc/public/Makefile.am: Document suggested conventions and techniques for many aspects of creating a language binding for Cairo. @ text @d1 6 @ 1.557 log @2005-05-07 Owen Taylor * doc/public/cairo-sections.txt: Update. @ text @d3 7 @ 1.556 log @ * src/cairo.h (cairo_set_alpha): Point to both cairo_set_source_rgba and cairo_paint_with_alpha in deprecation of cairo_set_alpha. @ text @d1 4 @ 1.555 log @ * util/cairo-api-update: Make idempotent substitutions that extend old names: cairo_select_font -> cairo_select_font_face cairo_pattern_add_color_stop -> cairo_pattern_add_color_stop_rgba by only substituting if the old name is not immediately followed by an underscore. Tweak the substitution slightly to allow the script to be run on the cairo source itself, (eg. avoid changing the REPLACED_BY and DEPRECATED_BY macros that must mention the old names). @ text @d3 6 @ 1.554 log @ * configure.in: * src/cairo-features.h.in: Change definitions of everything in cairo-features.h to prefer #if over #ifdef. * src/cairo-atsui.h: * src/cairo-cache.c: * src/cairo-ft-private.h: * src/cairo-ft.h: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: * src/cairo.c: * src/cairo.h: * src/cairoint.h: * test/cairo-test.c: Track #ifdef -> #if changes. * util/cairo-api-update: Add support to automatically change all #ifdef CAIRO_HAS to #if CAIRO_HAS. @ text @d3 15 @ 1.553 log @ * src/cairo-gstate.c: * src/cairo-pattern.c: * src/cairo.c: * src/cairo.h: * src/cairoint.h: Remove deprecated cairo_get_rgb_color that was accidentally missed in the recent purge of deprecated functions. @ text @d3 26 @ 1.552 log @ * src/cairo-xcb-surface.c (_render_operator): * src/cairo-win32-surface.c (_cairo_win32_surface_composite) (_cairo_win32_surface_fill_rectangles): Update to track new CAIRO_OPERATOR names. * test/select-font-no-show-text.c: * src/cairo-surface.c (cairo_surface_set_user_data): Fix documentation to refer to functions by their current names. * src/cairo-gstate.c (_cairo_gstate_begin_group): Update to track latest API (in currently unused function). @ text @d3 9 @ 1.551 log @ * src/cairo-glitz-surface.c (_cairo_glitz_surface_show_glyphs): Fix return type from cairo_status_t to cairo_int_status_t. @ text @d1 14 @ 1.550 log @ * ROADMAP: Note that cairo_mask, and "just eliminate a bunch of functions are now done". * TODO: Note that all backwards-compatible and backwards-incompatible cahnges for the API Shakeup are now done. Sort "new functionality" of API Shakeup into its own category. @ text @d3 5 @ 1.549 log @ * src/cairo.c: * src/cairo.h: Eliminate the following deprecated functions from cairo's interface: cairo_copy cairo_get_path cairo_get_path_flat cairo_matrix_create cairo_matrix_destroy cairo_matrix_copy cairo_matrix_get_affine cairo_surface_set_repeat cairo_surface_set_matrix cairo_surface_get_matrix cairo_surface_set_filter cairo_surface_get_filter Also, eliminate all support for compiling against, or running with old, deprecated names for functions. * src/cairo-ft-font.c: (_compute_transform): * src/cairo-gstate.c: * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-matrix.c: (_cairo_matrix_get_affine), (_cairo_matrix_compute_adjoint), (_cairo_matrix_is_integer_translation): * src/cairo-pattern.c: (cairo_pattern_add_color_stop_rgba), (cairo_pattern_set_matrix), (cairo_pattern_get_matrix), (_cairo_image_data_set_linear), (_cairo_linear_pattern_classify), (_cairo_image_data_set_radial): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_composite_image), (_cairo_pdf_surface_composite_pdf), (emit_surface_pattern), (emit_linear_pattern), (emit_radial_pattern): * src/cairo-surface.c: * src/cairo-xlib-surface.c: (_cairo_xlib_surface_acquire_source_image), (cairo_xlib_surface_create): * src/cairo.c: (cairo_set_source_rgba), (cairo_set_source), (cairo_get_source), (cairo_transform), (cairo_identity_matrix), (cairo_user_to_device), (cairo_user_to_device_distance), (cairo_device_to_user), (cairo_device_to_user_distance), (cairo_reset_clip), (cairo_select_font_face), (cairo_font_extents), (cairo_set_font_size), (cairo_get_operator), (cairo_get_rgb_color), (cairo_get_tolerance), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target), (cairo_status), (cairo_status_string): * src/cairoint.h: * test/cairo-test.c: (cairo_test_create_png_pattern): * test/gradient-alpha.c: (draw): * test/mask.c: (set_gradient_pattern), (set_image_pattern): * test/move-to-show-surface.c: (draw): * test/select-font-no-show-text.c: (draw): * test/set-source.c: (draw): * test/text-cache-crash.c: (draw): * test/text-rotate.c: (draw): * test/transforms.c: (draw_L_shape): * test/translate-show-surface.c: (draw): * test/trap-clip.c: (set_gradient_pattern), (set_image_pattern): * util/cairo-api-update: Deal with all of the removals. @ text @d3 10 @ 1.548 log @ * src/cairo-glitz-surface.c: (_glitz_operator), (_cairo_glitz_surface_fill_rectangles): * src/cairo-gstate.c: (_cairo_gstate_mask): * src/cairo-image-surface.c: (_pixman_operator), (_cairo_image_surface_composite_trapezoids): * src/cairo-ps-surface.c: (_cairo_ps_surface_erase), (_cairo_ps_surface_copy_page): * src/cairo-surface.c: (_cairo_surface_create_similar_solid): * src/cairo-xlib-surface.c: (_render_operator): * src/cairo.h: * test/cairo-test.c: (cairo_test_for_target): * test/mask.c: (mask_polygon), (draw): Rename and re-order the cairo_operator_t enum to names that abbreviate less and are easier to understand, (eg. CAIRO_OPERATOR_DEST_OVER instead of CAIRO_OPEERATOR_OVER_REVERSE). @ text @d3 65 @ 1.547 log @ * src/cairo.c: (cairo_create), (cairo_save), (cairo_get_target): * src/cairo.h: * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_create), (_cairo_gstate_init), (_cairo_gstate_get_target): * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-ps.h: * src/cairo-quartz-surface.c: * src/cairo-quartz.h: * src/cairo-surface.c: (_cairo_surface_begin): * src/cairo-win32.h: * src/cairo-xcb.h: * src/cairo-xlib.h: Remove cairo_set_target_surface and all other backend-specific cairo_set_target functions. Require a cairo_surface_t* to call cairo_create. * test/cairo-test.c: (create_image_surface), (cleanup_image), (create_glitz_surface), (cleanup_glitz), (create_quartz_surface), (cleanup_quartz), (create_win32_surface), (cleanup_win32), (create_xcb_surface), (cleanup_xcb), (create_xlib_surface), (cleanup_xlib), (cairo_test_for_target), (cairo_test_real): Port to use new cairo_create interface. * test/clip-nesting.c: (draw): * test/mask.c: (mask_polygon), (draw): * test/path-data.c: (main): * test/pdf-surface.c: (main): * test/pixman-rotate.c: (draw): * test/scale-source-surface-paint.c: (draw): * test/self-copy.c: (draw): * test/source-clip.c: (draw): * test/source-surface-scale-paint.c: (draw): * test/surface-pattern.c: (draw): Rewrite all tests that were using cairo_set_target_surface to instead create a temporary cairo_t, (eventually to be replaced with cairo_begin_group). @ text @d3 20 @ 1.546 log @2005-05-05 Owen Taylor * src/cairo.[ch] doc/public/cairo-sections.txt: Add cairo_paint_with_alpha(). * src/cairo-pattern.c (_cairo_pattern_acquire_surfaces): Fix segfault when mask == NULL. * test/mask.c test/mask-ref.png: Add testing of cairo_paint_with_alpha(). * test/coverage.c test/coverage-ref.png: Remove ... it's not testing anything that mask doesn't test better. @ text @d1 42 @ 1.545 log @Add glyph caching to glitz backend @ text @d1 13 @ 1.544 log @2005-05-03 Kristian Høgsberg Fills as paths patch originally by Owen Taylor. * src/cairo-path.c: (_cairo_path_fixed_rel_move_to), (_cairo_path_fixed_line_to), (_cairo_path_fixed_rel_line_to), (_cairo_path_fixed_curve_to), (_cairo_path_fixed_rel_curve_to): Make sure we have a current point for the relative path operators. * src/cairoint.h: * src/cairo-gstate.c: (_cairo_gstate_fill): * src/cairo-surface.c: (_cairo_surface_fill_path): Add fill_path backend method. * src/cairo-pdf-surface.c: (_cairo_pdf_document_close_stream), (emit_image_data), (emit_surface_pattern), (_cairo_pdf_path_move_to), (_cairo_pdf_path_line_to), (_cairo_pdf_path_curve_to), (_cairo_pdf_path_close_path), (_cairo_pdf_surface_fill_path): Implement fill_path in the PDF backend. @ text @d1 4 @ 1.543 log @ Originally 2005-04-20 Carl Worth * src/cairo.h: * src/cairo.c: Remove cairo_show_surface. Add new cairo_set_source_surface. * src/cairo-gstate.c: Remove _cairo_gstate_show_surface. * test/create-for-png.c: (draw): * test/pixman-rotate.c: (draw): * test/move-to-show-surface.c: (draw): * test/translate-show-surface.c: (draw): Replace calls to cairo_show_surface with cairo_set_source_surface; cairo_paint. * test/cairo-test.c: (cairo_test_real): Fix messages to prefer - over _. * src/cairo-png.c: (cairo_surface_write_to_png): Fix documentation. * test/filter-nearest-offset-ref.png: * test/filter-nearest-offset.c: * test/scale-source-surface-paint-ref.png: * test/scale-source-surface-paint.c: * test/source-surface-scale-paint-ref.png: * test/source-surface-scale-paint.c: Three new tests to exercise set_source_surface more completely, (two of these are expected failures dues to outstanding bugs). @ text @d1 21 @ 1.542 log @ * TODO: Add suggestion for copy-on-write regions to fix clip region problems. * src/Makefile.am (install-data-local): Fix check for old headers to respect DESTDIR, (to work better when cross-compiling, etc.). Thanks to Luke-Jr . @ text @d3 31 @ 1.541 log @2005-05-02 Owen Taylor * src/cairo-ft-font.c (_cairo_ft_scaled_font_font_extents): Changes the sign of extents->descent to match win32 backend and the conventional convention. * src/cairo.h: Document cairo_font_extents_t. @ text @d1 9 @ 1.540 log @2005-04-28 Owen Taylor * src/cairo-surface.c src/cairoint.h: Add _cairo_surface_begin/end to save and restore the clip state of a surface. Copy and store clip regions set on a surface so that we can save and restore them. * src/cairo.[ch]: Add a CAIRO_STATUS_BAD_NESTING error for interleaved use of two cairo_t's on the same surface. Also, add a skeleton doc comment for cairo_status_t. * src/cairo.c src/cairo-gstate.c src/cairoint.h: Use _cairo_surface_begin/end to replace _cairo_gstate_restore_external_state. * src/cairo-gstate.c: Use _cairo_surface_begin/end to save the state of a surface when we start drawing at it and restore it at the end. Check that the save level of the surface is what we expect on drawing operations and fail with CAIRO_STATUS_BAD_NESTING otherwise. * src/cairo-pattern.c src/cairoint.h (_cairo_pattern_acquire_surface_for_surface) (_cairo_pattern_release_surface): Surround use of pattern->surface with _cairo_surface->begin/end so we don't clip surfaces used as sources. * test/clip-nesting.c test/Makefile.am: Test of destinatin clipping with the nested creation of cairo_t's for the same context. * test/source-clip.c test/Makefile.am: Test that clipping on a source as a destination doesn't affect use of it as a source. * test/self-copy.c: XFAIL test for copying from a surface as a source to itself as a destination with a clip. @ text @d1 8 @ 1.539 log @2005-05-02 Keith Packard reviewed by: cworth * src/cairo-path.c: (_cairo_path_fixed_rel_curve_to): Use correct arguments to compute absolute positions. * test/Makefile.am: * test/rel-path-ref.png: * test/rel-path.c: (draw), (main): Test cairo_rel_move_to, cairo_rel_line_to and cairo_rel_curve_to @ text @d1 35 @ 1.538 log @2005-05-02 Owen Taylor * test/Makefile.am (EXTRA_DIST): mask-ref.png, not mask.png. (Pointed out by Carl) @ text @d1 12 @ 1.537 log @2005-05-02 Owen Taylor * src/cairo.[ch] src/cairo-gstate.c: Add cairo_mask() and cairo_mask_surface(). * test/maks.c tests/Makefile.am tests/mask-ref.png: Add a comprehensive tests for cairo_mask(). * docs/public/cairo-sections.txt: Updated @ text @d3 5 @ 1.536 log @2005-05-02 Kristian Høgsberg * src/cairo-gstate.c (_cairo_gstate_glyph_path): Also call _cairo_gstate_ensure_font() for this function. @ text @d1 10 @ 1.535 log @2005-04-28 Owen Taylor * TODO, ROADMAP: Add a item about reworking cairo_format_t. @ text @d1 5 @ 1.534 log @ * test/.cvsignore: * test/cairo-test.c: (cairo_test_for_target): Replace annoying _ in output image filenames with - for better consistency. @ text @d1 4 @ 1.533 log @ * test/cairo-test.c: (set_xlib_target), (cleanup_xlib_target): Use 1 instead of 0 for width and height to avoid BadValue errors from XCreatePixmap. @ text @d1 6 @ 1.532 log @ * test/.cvsignore: * test/buffer-diff.c: (xunlink), (buffer_diff), (image_diff): * test/buffer-diff.h: * test/cairo-test.c: (set_image_target), (cleanup_image_target), (set_glitz_target), (cleanup_glitz_target), (set_quartz_target), (cleanup_quartz_target), (set_win32_target), (cleanup_win32_target), (set_xcb_target), (cleanup_xcb_target), (set_xlib_target), (cleanup_xlib_target), (cairo_test_for_target), (cairo_test_real), (cairo_test_expect_failure), (cairo_test): * test/cairo-test.h: * test/read-png.c: (read_png_argb32): * test/xmalloc.h: Add support for testing multiple backends, courtesy of cairo_surface_write_to_png. Currently, only image and xlib backends are fullk hooked-up, but other backends should be quite easy to add for anyone skilled in the appropriate art. @ text @d3 6 @ 1.531 log @2005-04-27 Owen Taylor * src/cairo-traps.c src/cairoint.h (_cairo_traps_init_box): New function to create a single trapezoid box. * src/cairo.c src/cairo-gstate.c src/cairoint.h: Move the implementation of cairo_paint() into cairo-gstate.c for a better fix for the problem with backend/user coordinate confusion. Also no longer clear the current path on cairo_paint() @ text @d1 18 @ 1.530 log @ * src/cairo.c (cairo_paint): Build rectangle with an identity matrix in place so that the entire target surface will be filled even when there is a transformation in place. @ text @d1 11 @ 1.529 log @ * test/.cvsignore: * test/Makefile.am: * test/paint-ref.png: * test/paint.c: (draw), (main): Add test to demonstrate bug in cairo_paint when under a non-identity transformation. @ text @d1 6 @ 1.528 log @2005-04-26 Owen Taylor * doc/public/cairo-sections.txt: Updated. * src/cairo-png.c src/cairo.h: Fix up some doc build issues. @ text @d9 8 @ 1.527 log @ * ROADMAP: * TODO: Note that cairo_paint and cairo_clip/fill/stroke_preserve are all done now. @ text @d1 6 @ 1.526 log @ Originally: 2005-04-19 Carl Worth * src/cairo.h: Add cairo_stroke_preserve, cairo_fill_preserve, and cairo_clip_preserve. * src/cairoint.h: * src/cairo-gstate-private.h: * src/cairo-gstate.c: Rip the path out of cairo_gstate_t. * src/cairo-private.h: Add path to cairo_t. * src/cairo.c: Bring in most of the path code that used to live in cairo-gstate.c * src/Makefile.am: * src/cairo-arc-private.h: * src/cairo-arc.c: Move arc generation code into its own file. * src/cairo-path-data-private.h: * src/cairo-path-data.c: Accept path+ctm_inverse+tolerance instead of gstate. Absorb flattening and device space->user space conversion that used to be in _cairo_gstate_intepret_path. * src/cairo-path.c: Prefer cairo_fixed_t parameters over ciaro_point_t for cross-file interfaces. * src/cairo-ft-font.c: Track changes in _cairo_path_fixed interfaces. * test/fill-and-stroke.c: (draw): Port to use cairo_fill_preserve rather than cairo_save/cairo_restore which no longer work for saving the path. * test/get-and-set.c: (settings_set), (settings_get), (settings_equal): Remove get and set of current point since it is no longer affected by cairo_save and cairo_restore. Add get and set testing for cairo_matrix_t. @ text @d3 6 @ 1.525 log @ * test/.cvsignore: * test/Makefile.am: * test/cairo-test.h: * test/pdf-surface.c: (main): Add very simple test to generate PDF output, (no automated verification yet). * test/cairo-test.c: (cairo_test): * test/create-for-png.c: (draw): * test/pixman-rotate.c: Track PNG interface changes, (no more include of cairo-png.h, cairo_surface_write_png renamed to cairo_surface_write_to_png). @ text @d3 40 @ 1.524 log @2005-04-26 Kristian Høgsberg * src/cairo-png.h: Prototypes moved to cairo.h, this file removed. @ text @d1 14 @ 1.523 log @2005-04-26 Kristian Høgsberg * src/cairo-png.c (cairo_surface_write_to_png_stream): Renamed from cairo_surface_write_png_to_stream() for consistency. (cairo_surface_write_to_png): Renamed from cairo_surface_write_png() for consistency. @ text @d3 2 @ 1.522 log @2005-04-25 Kristian Høgsberg * src/cairo-png.c (cairo_surface_write_png): Factor out bulk of the code into a new callback based function, write_png(). Call it with a stdio write callback. (cairo_surface_write_png_to_stream): New function to write a surface to a PNG stream. (cairo_image_surface_create_from_png): Likewise, move most of the code to read_png(), clean up error handling and reduce this function to calling read_png() with a stdio based read function. (cairo_image_surface_create_from_png_stream): New function to create an image surface from a PNG stream. * src/cairo-image-surface.c (cairo_image_surface_get_width) (cairo_image_surface_get_height): New functions to get widht and height of an image surface. * src/cairo.h: Add new prototype and error codes. * test/create-for-png.c (draw): Adjust to new PNG API. @ text @d1 7 @ 1.521 log @2005-04-25 Owen Taylor * src/cairo-win32-surface.c (cairo_win32_surface_create): Initialize the saved_dc_bitmap field here as well ... not strictly needed, but cleaner. (Reported by Peter Arsoff) @ text @d1 21 @ 1.520 log @2005-04-23 Kristian Høgsberg * src/cairo-gstate.c (_composite_trap_region): Finalize the correct pattern. @ text @d1 6 @ 1.519 log @2005-04-22 Kristian Høgsberg * src/cairo-png.c (cairo_image_surface_create_for_png): Only check PNG signature if we read all the bytes. Don't fclose() the FILE argument (Steve Chaplin ). Rename to cairo_image_surface_create_for_png() to cairo_image_surface_create_from_png() and change FILE arguments for this function and cairo_surface_write_png() to be a filename argument instead. @ text @d1 5 @ 1.518 log @2005-04-21 Kristian Høgsberg * src/cairo-surface.c (_cairo_surface_set_clip_region): Handle backends that don't have a set_clip_region implementation (PDF). @ text @d1 11 @ 1.517 log @ * src/cairo.c: (cairo_paint): * src/cairo.h: Add new cairo_paint function. * src/cairoint.h: Add new get_extents function to the surface backend interface. * src/cairo-gstate.c: (_cairo_gstate_get_clip_extents): Add function to query current clip_extents. * src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_extents): * src/cairo-image-surface.c: (_cairo_image_surface_get_extents), (_cairo_image_abstract_surface_get_extents): * src/cairo-pdf-surface.c: (_cairo_pdf_surface_get_extents): * src/cairo-ps-surface.c: (_cairo_ps_surface_get_extents): * src/cairo-quartz-surface.c: (_cairo_quartz_surface_get_extents): * src/cairo-win32-surface.c: (_cairo_win32_get_extents): * src/cairo-xcb-surface.c: (_cairo_xcb_surface_get_extents): * src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_extents): Implement the new get_extents function for each backend. * src/cairo-surface.c: (_cairo_surface_init), (_cairo_surface_set_clip_region), (_cairo_surface_get_clip_extents): Save the clip extents from set_clip_region and implement _cairo_surface_get_clip_extents. * src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_size), (_get_image_surface): Abstract away the evil XGetGeometry roundtrip in _cairo_xlib_surface_get_size. * test/gradient-alpha.c: (draw): * test/linear-gradient.c: (draw): Rewrite a couple of tests to call cairo_paint. @ text @d1 5 @ 1.516 log @ * TODO: Update API Shakeup chart to indicate that cairo_paint and cairo_fill_preserve patches have been sent. @ text @d3 35 @ 1.515 log @ * test/.cvsignore: * test/Makefile.am: * test/surface-pattern-ref.png: * test/surface-pattern.c: (draw), (main): Add a test of a repeating surface pattern. @ text @d3 5 @ 1.514 log @ * ROADMAP: Mark a couple of items that are now complete. * test/.cvsignore: * test/Makefile.am: * test/fill-and-stroke-ref.png: * test/fill-and-stroke.c: (draw), (main): Add test case that fills and strokes the same shapes, (in preparation for testing cairo_fill_preserve patch). @ text @d1 8 @ 1.513 log @ * TODO: Update API Shakeup chart to indicate that cairo_set_source is done. @ text @d1 11 @ 1.512 log @ * src/cairo.h: * src/cairo.c: Rename, add, and delete: cairo_set_pattern -> cairo_set_source cairo_get_pattern -> cairo_get_source cairo_set_rgb_color -> cairo_set_source_rgb -> cairo_set_source_rgba cairo_set_alpha -> cairo_get_alpha -> Note that we'll likely want to add cairo_set_source_surface. * src/cairo-color.c: Add _cairo_stock_color helper function. Improve some interfaces: _cairo_color_init _cairo_color_init_rgb _cairo_color_set_rgb -> _cairo_color_init_rgba _cairo_color_set_alpha _cairo_color_multiply_alpha _cairo_color_get_rgb -> _cairo_color_get_rbga _cairo_color_get_rgba_premultiplied * src/cairoint.h: Add cairo_stock_t and some helper macros: CAIRO_COLOR_WHITE CAIRO_COLOR_BLACK CAIRO_COLOR_TRANSPARENT Fix cairo_pattern_t by eliminating pattern->alpha. Fix cairo_solid_pattern_t to use cairo_color_t rather than three doubles. * src/cairo-glitz-surface.c: (_cairo_glitz_pattern_acquire_surface), (_cairo_glitz_pattern_acquire_surfaces), (_cairo_glitz_surface_composite_trapezoids): Track removal of pattern->alpha, simplifying the code considerably * src/cairo-gstate-private.h: * src/cairo-gstate.c: Track _cairo_color interface changes. Remove gstate->alpha. Propagate down set_source renamings. * src/cairo.h: * src/cairo-pattern.c: Rename: cairo_pattern_add_color_stop -> cairo_pattern_add_color_stop_rgba and add: cairo_pattern_add_color_stop_rgb Remove pattern->alpha, simplifying the code considerably. * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: Track pattern and color interface changes. * src/cairo-surface.c: Add const where appropriate on cairo_color_t*. * src/cairo-xlib-surface.c: (_cairo_surface_is_xlib): Add private type inspection predicate. (cairo_xlib_surface_set_size): Add check for surface type mismatch, (no useful error reporting yet, though). * test/Makefile.am: Note coverage as en expected failure. * test/cairo-test.c: (cairo_test_expect_failure): Improve line wrap on expected failure messages. * test/clip-twice.c: * test/coverage.c: * test/fill-rule.c: * test/line-width.c: * test/linear-gradient.c: * test/pixman-rotate.c: * test/set-source.c: * test/text-rotate.c: * test/trap-clip.c: Port all tests to new cairo_set_source interfaces. @ text @d3 5 @ 1.511 log @ * test/gradient-alpha-ref.png: * test/gradient-alpha.c: (draw): Make gradient change color in addition to just changing alpha in order to highlight distinction between interpolating in premultiplied vs. non-premultiplied space. @ text @d3 84 @ 1.510 log @ * test/Makefile.am: Improve instructions for when to add a test to the XFAIL list. * test/cairo-test.c: (cairo_test_expect_failure): * test/cairo-test.h: * test/pixman-rotate.c: (main): * test/text-rotate.c: (main): Print explanations for expected failures. @ text @d3 8 @ 1.509 log @ * test/.cvsignore: * test/Makefile.am: * test/gradient-alpha-ref.png: * test/gradient-alpha.c: (draw), (main): Add gradient-alpha test in preparation for upcoming cairo_set_source patch. @ text @d3 11 @ 1.508 log @ * test/.cvsignore: * test/Makefile.am: * test/set-source-ref.png: * test/set-source.c: (draw), (main): Add set-source test in preparation for upcoming cairo_set_source patch. @ text @d5 8 @ 1.507 log @2005-04-14 Owen Taylor * src/cairo-font.c (_cairo_simple_font_face_destroy): Remove a stray free() (#3029, Carl Worth) * test/select-font-no-show-text.c: Note that the bug is fixed. @ text @d1 8 @ 1.506 log @ * src/cairo-image-surface.c: (_cairo_image_abstract_surface_finish): Set freed pointer to NULL. * src/cairo-surface.c: (cairo_surface_finish): Fix to actually set surface->finished when done. Closes bug #2950 as documented in test/surface-finish-twice.c. * test/surface-finish-twice.c: Note that this bug is fixed. @ text @d1 7 @ 1.505 log @ * test/.cvsignore: * test/Makefile.am: * test/surface-finish-twice.c: (draw), (main): Add new test to exercise crash when calling cairo_surface_finish twice on the same surface. @ text @d3 11 @ 1.504 log @ * test/.cvsignore: * test/Makefile.am: * test/select-font-no-show-text.c: (draw), (main): Add new set-surface-no-show-text test. * test/cairo-test.c: (cairo_test): Be sure to call cairo_destroy even if the image size is 0,0 so that we can test bugs triggered during cleanup. @ text @d5 8 @ 1.503 log @ * test/coverage-ref.png: * test/coverage.c: (draw_funcs), (draw): Temporarily remove all text from this test case until we come up with an approach for drawing the same text with different freetype configurations. @ text @d3 11 @ 1.502 log @Fix ChangeLog entry @ text @d1 7 @ 1.501 log @2005-04-13 Owen Taylor * src/cairo-traps.c (_cairo_traps_extract_region): Work around a pair of libpixman bugs (denegerate trapezoids from tesellator, pixman_region_union_rect() failing on width/height zero rectangles) @ text @d4 1 a4 1 a pair of libpixman bugs (denegerate trapezoids from tesellator, @ 1.500 log @2005-04-13 Owen Taylor * src/cairoint.h src/cairo-traps.c: Add _cairo_traps_extract_region for converting trapezoids into a pixman region. * src/cairo-gstate.c (cairo_clip): Represent all rectangular pixel-aligned regions as regions, not just single rectangles. * src/cairo-gstate.c (_cairo_gstate_clip_and_composite_trapezoid): Split into manageable pieces, optimize rectangular pixel- aligned regions by using _cairo_surface_fill_rectangles() or _cairo_surface_set_clip_region() as appropriate. * tests/trap-clip.c tests/trap-clip-ref.png tests/Makefile.am: Add a test for trapezoids clipping. * doc/public/cairo-docs.xml: Add an index. @ text @d3 6 @ 1.499 log @ * test/translate-show-surface.c: Note that bug is now fixed. @ text @d1 18 @ 1.498 log @ * autogen.sh: Replace errant use of aclocal with , as reported by Martin Hedenfalk. Closes bug #3000. @ text @d3 4 @ 1.497 log @ * src/cairo-pattern.c: * src/cairo-surface.c: (_cairo_surface_init): Default to CAIRO_FILTER_GOOD rather than CAIRO_FILTER_BEST. * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_surface): Optimize to use CAIRO_FILTER_NEAREST when the pattern matrix is an integer translation. @ text @d3 5 @ 1.496 log @ * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_surface): * src/cairo-surface.c: (_cairo_surface_init): Use CAIRO_FILTER_BEST by default rather than CAIRO_FILTER_NEAREST. @ text @d4 11 @ 1.495 log @ * src/cairo-gstate.c (_cairo_gstate_show_surface): Offset the src pattern by (0,0)->CTM. This fixes test/translate-show-surface. * src/cairo-glitz-surface.c (_cairo_glitz_surface_composite_trapezoids): Use unsigned cahr* to match new prototype for cairo_image_surface_create_for_data. @ text @d3 7 @ 1.494 log @ * test/.cvsignore: * test/Makefile.am: * test/translate-show-surface-ref.png: * test/translate-show-surface.c: (draw), (main): Add new test demonstrating bug in the sequence: cairo_translate; cairo_show_surface. @ text @d1 9 @ 1.493 log @ * src/cairo.c (cairo_select_font_face): Add deprecation alias from cairo_scale_font to cairo_set_font_size. @ text @d3 9 @ 1.492 log @ * src/cairo.c (cairo_select_font_face): Add deprecation alias from cairo_select_font to cairo_select_font_face. @ text @d4 5 @ 1.491 log @2005-04-11 Owen Taylor * src/cairo.h doc/public/cairo-sections.txt src/cairo-matrix.c: Update. * doc/public/cairo-docs.xml: Include cairo-font.xml @ text @d1 5 @ 1.490 log @ * src/cairoint.h: * src/cairo.h: Move include of pixman.h from cairo.h to cairoint.h since libpixman isn't part of cairo's public interface. * test/move-to-show-surface.c (draw): Use unsigned long rather than uint32_t since we no longer have pixman.h setting that type up for us. * src/cairo-font.c (cairo_font_face_destroy): Remove unused variable user_data_copy. @ text @d1 7 @ 1.489 log @ * ROADMAP: Add ROADMAP file with an initial stab at 1.0 items. @ text @d1 13 @ 1.488 log @2005-04-08 Owen Taylor * src/cairo.h src/cairo-font.c src/cairoint.h doc/public/cairo-sections.txt: Add cairo_font_face_set/get_user_data(). * src/cairo-array.c src/cairoint.h src/cairo-surface.c: Refactor user data code from cairo-surface.c into cairo_user_data_array_t. * src/cairo-font.c (cairo_font_face_destroy, (cairo_scaled_font_destroy, _cairo_unscaled_font_destroy): Switch these types to be like cairo_surface_t where the generic code frees the wrapper object. * src/cairo-atsui-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Fix up for the above changes. * src/cairo-ft-font.c (_cairo_ft_unscaled_font_destroy, _ft_font_face_destroy): Implement a complicated mutual-referencing scheme to make sure that a face from cairo_ft_font_face_create_for_ft_face() is freed only when the FT_Face is no longer needed. * src/cairo-ft-font.c (cairo_ft_font_face_create_for_ft_face): Update the docs to describe how to figure out when the FT_Face can be freed. * src/cairo-ft-font.c: Fix refcount leaks when creating fonts. * src/cairo-pdf-surface.c (cairo_pdf_ft_font_create): Remove excess call to _cairo_unscaled_font_reference(). * src/cairo-gstate.c (_cairo_gstate_set_font_face): Remove stray initialization of font matrix to the identity. * src/cairo-array.c (_cairo_user_data_array_set_data) test/user-data.c: Fix a bug when setting/unsetting a key with a free key slot before it, add that to the test case. * src/cairo-array.c (_cairo_user_data_array_set_data): Don't append an element when user_data is NULL. @ text @d50 4 @ 1.487 log @2005-04-08 Dave Beckett * src/cairo-glitz-surface.c (_cairo_glitz_surface_set_matrix): Update to track changes to cairo_matrix_t interface. @ text @d1 42 @ 1.486 log @ * src/cairo-gstate.c: (_cairo_gstate_transform), (_cairo_gstate_set_matrix), (_cairo_gstate_interpret_path): Eliminate internal use of deprecated cairo_matrix_copy. * src/cairo-gstate.c: (_cairo_gstate_get_matrix), * src/cairo-matrix.c: (cairo_matrix_copy): * src/cairo.c: (cairo_get_matrix): * src/cairo.h: * src/cairoint.h: Change cairo_get_matrix to accept a pointer to the return value cairo_matrix_t rather than returning the value directly. @ text @d1 5 @ 1.485 log @ * src/cairo-matrix.c (cairo_matrix_init_identity): Don't try to return a value (even a void value) from a void function. Closes bug #2931. @ text @d3 15 @ 1.484 log @ * src/cairo-wideint.h: Remove broken code for defining uint64_t. @ text @d1 6 @ 1.483 log @ * src/cairo-surface.c: (_cairo_surface_release_source_image), (_cairo_surface_release_dest_image), (_cairo_surface_clone_similar), (_cairo_surface_composite), (_cairo_surface_fill_rectangles), (_cairo_surface_composite_trapezoids), (_cairo_surface_copy_page), (_cairo_surface_show_page), (_cairo_surface_show_glyphs): Change to allow NULL backend function pointers to indicate unsupported functions. * src/cairo-glitz-surface.c: * src/cairo-image-surface.c: * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: Eliminate stub functions and replace with NULL in surface backend table. @ text @d3 5 @ 1.482 log @2005-04-07 Owen Taylor * src/cairo.[ch] src/cairoint.h src/cairo-gstate.c docs/public/cairo-sections.txt: cairo_select_font() => cairo_select_font_face() cairo_scale_font() => cairo_set_font_size() cairo_transform_font() => cairo_set_font_matrix() Add cairo_get_font_matrix(). Make cairo_set_font_face() not reset the font matrix. Default the font matrix to SCALE(10). Document cairo_select_font_face(). * test/coverage.c (draw) test/text-cache-crash.c (draw) test/text-rotate.c (draw): Use cairo_set_font_size(). * src/cairo-font.c src/cairo.h: Fix up some parameter names for docs. @ text @d1 22 @ 1.481 log @ * src/cairo-gstate.c: * src/cairo-png.c: * src/cairo-win32-font.c: * src/cairo-win32-surface.c: * src/cairo-win32.h: * src/cairoint.h: Minor changes to header file inclusion recommended by Oleg Smolsky for better portability to MSVC. @ text @d3 17 @ 1.480 log @2005-04-07 Owen Taylor * src/cairo-win32-font.c: Fix various compilation errors. @ text @d7 10 @ 1.479 log @ * src/cairo-png.c (PNG_SIG_SIZE): Use a preprocessor macro to get a literal value in the array size declaration, (for better portability to lame compilers that can't deal with a const int variable for the array size). Reported by Oleg Smolsky. @ text @d1 4 @ 1.478 log @ * src/cairo-png.c (PNG_SIG_SIZE): Use a preprocessor macro to get a literal value in the array size declaration, (for better portability to lame compilers that can't deal with a const int variable for the array size). Reported by Oleg Smolsky. @ text @d7 1 @ 1.477 log @ * configure.in: * src/cairo-wideint.h: * src/cairoint.h: Use configure-time checks for stdint.h vs. inttypes.h vs. sys/int_types.h rather than ad-hoc system-specific macros. Also define these types manually none of these header are available. (Thanks to Jason Dorje Short ). @ text @d3 7 @ 1.476 log @ * test/imagediff.c (main): Fix to return non-zero status on error. @ text @d3 10 @ 1.475 log @2005-04-06 Owen Taylor * src/cairo.h src/cairo-gstate.c src/cairo-font.c: Add a cairo_font_face_t type to hold a description of a font face. Replace cairo_set_font() with cairo_set_font_face(). * src/cairoint.h src/cairo-font.c src/cairo-gstate.c: Add "cairo_simple_font_face" for family/weight/slant and use it to implement font naming for the toy API. * src/cairo-ft.h src/cairo-ft-font.c cairo-win32.h cairo-win32-font.c: Switch the FreeType and Win32 backends over to using cairo_font_face_t. * src/cairo.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Pass in font matrix and CTM separately rather than as a composite scale when creating fonts; allows removing font_matrix argument to metrics functions. * src/cairoint.h src/cairo-font.c src/cairo-ft-font.c src/cairo-win32-font.c: Remove cairo_font_scale_t type, just use cairo_matrix_t and ignore translations. * src/cairo-ft.h src/cairo-ft-font.c: Remove cairo_ft_font_get_pattern() -- it can't work for all FreeType backend fonts and doesn't seem particularly useful. * src/cairo.[ch]: Rename cairo_font_get_extents() to cairo_font_extents() * doc/public/cairo-sections.txt: Update, split font functions into a separate section. * src/cairo-ft-font.c (_ft_unscaled_font_get_for_pattern): Fix locking order problem. * src/cairo-font.c: Add caches for simple font faces and from cairo_font_face_t to cairo_scaled_font_t. * src/cairo.h src/cairoint.h src/cairo-font.c src/cairo-win32-font.c src/cairo-ft-font.c src/cairo-gstate.c src/cairo-gstate-private.h: Rename cairo_font_t to cairo_scaled_font_t. @ text @d1 4 @ 1.474 log @ * src/cairo.h: Rework the cairo_matrix_t interface in several ways. Expose a struct for cairo_matrix_t. Add new function to return current matrix: cairo_get_matrix Deprecate the following functions (in documentation): cairo_matrix_create cairo_matrix_destroy cairo_matrix_get_affine Rename: cairo_matrix_set_affine -> cairo_matrix_init cairo_matrix_set_identity -> cairo_matrix_init_identity Add other new matrix initialization functions: cairo_matrix_init_translate cairo_matrix_init_scale cairo_matrix_init_rotate Change return type of almost all cairo_matrix functions from cairo_status_t to void. * src/cairo-atsui-font.c: * src/cairo-ft-font.c: * src/cairo-gstate.c: * src/cairo-image-surface.c: * src/cairo-matrix.c: * src/cairo-pattern.c: * src/cairo-pdf-surface.c: * src/cairo-pen.c: * src/cairo-surface.c: * src/cairo-win32-font.c: * src/cairo-xlib-surface.c: * src/cairo.c: * src/cairoint.h: Track changes to cairo_matrix_t interface. * test/.cvsignore: * test/Makefile.am: * test/transforms-ref.png: * test/transforms.c: Add a test case showing the same path drawn under various transforms, (including skews set directly by initializing a cairo_matrix_t). @ text @d1 43 @ 1.473 log @ * src/cairo.h: Make handling of unsigned char* vs. char* consistent. Change all parameters that are actual string data from unsigned char* to char* (cairo_text_extents, cairo_show_text, cairo_text_path). Change all data buffers from char* to unsigned char* (cairo_write_func_t). * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs): * src/cairo-ft-font.c: (_cairo_ft_font_text_to_glyphs): * src/cairo-font.c: (_cairo_font_text_to_glyphs): * src/cairo-atsui-font.c: (_cairo_atsui_font_text_to_glyphs): * src/cairoint.h: * src/cairo.c: (cairo_text_extents), (cairo_show_text), (cairo_text_path): Track changes from unsigned char* to char*. Convert to unsigned only at the internal interface to unicode processing. * test/move-to-show-surface.c: (draw): * src/cairo-output-stream.c: (_cairo_output_stream_printf), (stdio_write): Track change from char* to unsigned char*. @ text @d3 46 @ 1.472 log @ * src/cairo-cache.c (_cairo_cache_init): Fix reversed arguments in call to calloc. @ text @d3 22 @ 1.471 log @ * src/cairo.h (cairo_set_target_image, cairo_image_surface_create_for_data): * src/cairo.c: (cairo_set_target_image): Change type of data parameter from char* to unsigned char*. * src/cairo-ft-font.c: (_cairo_ft_font_create_glyph): * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-pattern.c: (_cairo_pattern_acquire_surface_for_gradient): * test/buffer-diff.c: (buffer_diff): * test/buffer-diff.h: * test/write-png.c: (write_png_argb32): * test/write-png.h: Propagate the unsigned char* change down the stack. * src/cairo-xlib-surface.c: (_get_image_surface): Add cast since XImage uses char* rather than unsigned char*. * src/cairo-png.c: (cairo_image_surface_create_for_png): Fix memory leak of image data. * test/cairo-test.c: (cairo_test), (cairo_test_create_png_pattern): * test/cairo-test.h: Switch to use cairo_surface_write_png rather than a custom write_png_argb32. * test/.cvsignore: * test/Makefile.am: * test/create-for-png-ref.png: * test/create-for-png.c: (draw), (main): Add test to exercise the cairo_image_surface_create_for_png function. @ text @d1 5 @ 1.470 log @ * TODO: Remove items for PNG backend removal and trapezoid reasterization re-implementation since they have been completed. @ text @d3 33 a61 1 >>>>>>> 1.469 a126 1 >>>>>>> 1.468 @ 1.469 log @ * src/cairo.c: * src/cairo.h: Drop cairo_default_matrix since it is now always identical to cairo_identity_matrix. * src/cairo-gstate-private.h: * src/cairo-gstate.c: (_cairo_gstate_init), (_cairo_gstate_set_target_surface): Remove gstate->pixels_per inch. Change default matrix to always be the identity matrix. * src/cairo-glitz-surface.c: * src/cairo-image-surface.c: * src/cairo-pdf-surface.c: * src/cairo-ps-surface.c: * src/cairo-quartz-surface.c: * src/cairo-surface.c: * src/cairo-win32-surface.c: * src/cairo-xcb-surface.c: * src/cairo-xlib-surface.c: * src/cairoint.h: Drop pixels_per_inch function from surface backend interface as it is no longer needed. @ text @d3 5 d29 1 @ 1.468 log @ * src/cairo-gstate.c: (_cairo_gstate_show_surface): Use the current point to offset just the destination, not the source and destination. With this fix, cairo_show_surface should work with the current point at places other than the origin. * test/Makefile.am: Move move-to-show-surface off the expected failure list. * test/move-to-show-surface.c: Add comment indicating that bug is resolved. * test/testsvg: Don't use diff to compare images, just imagediff. @ text @d1 23 d89 1 @ 1.467 log @ * src/cairo.h: * src/cairo.c: (cairo_set_target_image), (cairo_text_extents), (cairo_show_text), (cairo_text_path): * src/cairo-image-surface.c: (cairo_image_surface_create_for_data): * src/cairo-gstate.c: (_cairo_gstate_text_to_glyphs): * src/cairo-font.c: (_cairo_font_create): Style and indentation fixes. * src/cairo-ft-font.c: (_cairo_ft_font_create): Add (unsigned char*) cast to quiet new gcc-4 warnings. * src/cairo-ft-font.c: (_cairo_ft_font_glyph_extents): Initialize variables to quiet new gcc-4 warnings. * src/cairo-pdf-surface.c: (cairo_pdf_ft_font_write_generic_table), (cairo_pdf_ft_font_write_glyf_table): * src/cairo-png.c: (cairo_surface_write_png), (cairo_image_surface_create_for_png): * src/cairo-xlib-surface.c: (_get_image_surface): * src/cairo-ps-surface.c: (_cairo_ps_surface_copy_page): Use unsigned char* as expected by freetype, libpng, Xlib, and zlib. * src/cairoint.h: * src/cairo-unicode.c: (_utf8_get_char), (_utf8_get_char_extended), (_cairo_utf8_to_ucs4), (_cairo_utf8_to_utf16): Propagate unsigned char* down from cairo_text_extents. @ text @d3 15 @ 1.466 log @ * TODO: Update API shakeup chart. * src/cairo.h: * src/cairo.c: (cairo_set_target_image_no_data): Add a standin for the function that should be cairo_set_target_image which should then have some other name. We can straighten that mess out when we eliminate the set_target functions. Add deprecation alias for cairo_current_pattern. * src/cairoint.h: * src/cairo-image-surface.c: * src/cairo-surface.c: Deprecate cairo_surface_create_for_image in favor of cairo_image_surface_create_for_data. @ text @d1 29 @ 1.465 log @2005-03-31 Kristian Høgsberg * src/cairo.c (cairo_set_target_png): Remove this function now that the PNG backend is gone. @ text @d1 16 @ 1.464 log @ * configure.in: Fix typo I had introduced into Jason's patch that made configure fail. @ text @d1 5 @ 1.463 log @ A few fixes courtesy of Jason Dorje Short : * configure.in: Disable PS backend if zlib is not found. * src/cairo-win32-font.c: (_cairo_win32_font_glyph_path): Fix mistyped parameter. * src/cairo-win32-surface.c: (_cairo_win32_surface_finish): Fix missing return value. @ text @d3 5 @ 1.462 log @src/cairo-gstate.c (_cairo_gstate_stroke_extents): call _cairo_pen_init so that the result takes into account the caps. @ text @d1 12 @ 1.461 log @src/cairo-xlib.h: include Xlib.h to fix solaris build bustage. @ text @d1 5 @ 1.460 log @src/cairo-wideint.h: add preprocessor tests for stdint.h/inttypes.h src/cairoint.h: add preprocessor tests for stdint.h/inttypes.h @ text @d3 4 @ 1.459 log @Update quartz backend to compilable/workable version and re-enable. @ text @d3 6 @ 1.458 log @ * test/Makefile.am: * test/*_*.c: More _/- renames in the test directory. @ text @d1 8 @ 1.457 log @ * src/Makefile.am: * src/cairo_*.c: Renamed a bunch of files to use - rather than _ as a separator. Copy happened in the master repository to preserve history, so this is just a big remove. @ text @d1 5 @ 1.456 log @ * TODO: Sorted API shakeup chart. @ text @d3 7 @ 1.455 log @2005-03-28 Kristian Høgsberg * src/cairo-png.c (cairo_image_surface_write_png) (cairo_image_surface_create_from_png): New PNG utility functions. * src/cairo_pdf_surface.c, src/cairo-pdf.h: Reverse the naming of the pdf constructors so the callback based ones have the long names. @ text @d1 4 @ 1.454 log @2005-03-25 Jamey Sharp * src/cairo-xcb.h: * src/cairo_xcb_surface.c: Fix "implicit declaration" warning in cairo.c by moving cairo_xcb_surface_create prototype into cairo-xcb.h. @ text @d1 9 @ 1.453 log @ * src/cairo-path-fixed-private.h: * src/cairo_path.c: Clean up names of cairo_path internals. @ text @d1 7 @ 1.452 log @ * src/cairo_path_fill.c: * src/cairo_path_stroke.c: Remove unneeded includes of cairo-path-fixed-private.h. * src/cairo_ft_font.c (_cairo_ft_font_glyph_path): Fix indentation. @ text @d3 5 @ 1.451 log @ * TODO: More updates to the API Shakeup chart. @ text @d3 9 @ 1.450 log @ * src/cairo_path.c: (_cairo_path_fixed_init), (_cairo_path_fixed_init_copy), (_cairo_path_fixed_fini), (_cairo_path_fixed_move_to), (_cairo_path_fixed_rel_move_to), (_cairo_path_fixed_line_to), (_cairo_path_fixed_rel_line_to), (_cairo_path_fixed_curve_to), (_cairo_path_fixed_rel_curve_to), (_cairo_path_fixed_close_path), (_cairo_path_fixed_get_current_point), (_cairo_path_add), (_cairo_path_add_op_buf), (_cairo_path_new_op_buf), (_cairo_path_add_arg_buf), (_cairo_path_new_arg_buf), (_cairo_path_fixed_interpret): * src/cairo_path_bounds.c: (_cairo_path_fixed_bounds): * src/cairo_path_fill.c: (_cairo_path_fixed_fill_to_traps): * src/cairo_path_stroke.c: (_cairo_path_fixed_stroke_to_traps): * src/cairoint.h: Rename cairo_path_real_t to cairo_path_fixed_t and fix all _cairo_path functions to be named as _cairo_path_fixed functions. * src/cairo-gstate-private.h: * src/cairo-path-fixed-private.h: * src/cairo_font.c: (_cairo_font_glyph_path): * src/cairo_ft_font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to), (_cairo_ft_font_glyph_path): * src/cairo_gstate.c: (_cairo_gstate_init), (_cairo_gstate_init_copy), (_cairo_gstate_fini), (_cairo_gstate_new_path), (_cairo_gstate_move_to), (_cairo_gstate_line_to), (_cairo_gstate_curve_to), (_cairo_gstate_rel_move_to), (_cairo_gstate_rel_line_to), (_cairo_gstate_rel_curve_to), (_cairo_gstate_close_path), (_cairo_gstate_get_current_point), (_cairo_gstate_interpret_path), (_cairo_gstate_stroke), (_cairo_gstate_in_stroke), (_cairo_gstate_fill), (_cairo_gstate_in_fill), (_cairo_gstate_stroke_extents), (_cairo_gstate_fill_extents), (_cairo_gstate_clip), (_cairo_gstate_text_to_glyphs): Track name change of cairo_path_real_t and _cairo_path_fixed functions. @ text @d3 4 @ 1.449 log @ * src/cairo-path-data-private.h: Remove CAIRO_BEGIN_DECLS and CAIRO_END_DECLS as they are not needed for private headers. * src/cairoint.h: Add ASSERT_NOT_REACHED macro. * src/cairo.c: (cairo_get_path), (cairo_get_path_flat): Rewrite in terms of cairo_copt_path and cairo_copy_path_flat in preparation for removing cairo_gstate_interpret_path. @ text @d3 37 @ 1.448 log @ * src/cairo-gstate-private.h: * src/cairo-path-fixed-private.h: * src/cairo-private.h: * src/cairoint.h: Begin the process of breaking up cairoint.h, moving structure definitions of cairo_t, cairo_gstate_t, and cairo_path_real_t into their own header files. * src/cairo.c: * src/cairo_gstate.c: * src/cairo_path.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: Track changes to header files, reaching into the new private headers where necessary. @ text @d3 11 @ 1.447 log @ * src/cairo.c: (cairo_set_target_glitz), (cairo_set_target_pdf), (cairo_set_target_pdf_as_file), (cairo_set_target_png), (cairo_set_target_ps), (cairo_set_target_win32), (cairo_set_target_xcb), (cairo_set_target_drawable): Move surface-specific cairo_t functions to cairo.c. * src/cairo_glitz_surface.c: * src/cairo_pdf_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: * src/cairo_win32_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: Remove functions that have now moved to cairo.c. * test/.cvsignore: A few new files to ignore now with new compilation mode using a libtool helper library. @ text @d3 17 @ 1.446 log @ * src/cairo.h: Add backwards-compatibility for recently renamed functions. @ text @d3 20 @ 1.445 log @ * src/cairo.c: * src/cairo_gstate.c: (_cairo_gstate_transform), (_cairo_gstate_user_to_device), (_cairo_gstate_user_to_device_distance), (_cairo_gstate_device_to_user), (_cairo_gstate_device_to_user_distance), (_cairo_gstate_reset_clip): * src/cairo_matrix.c: * src/cairoint.h: * src/cairo.h: Rename functions to eliminate abbreviations: cairo_concat_matrix -> cairo_transform cairo_transform_point -> cairo_user_to_device cairo_transform_distance -> cairo_user_to_device_distance cairo_inverse_transform_point -> cairo_device_to_user cairo_inverse_transform_distance-> cairo_device_to_user_distance cairo_init_clip -> cairo_reset_clip @ text @d1 5 @ 1.444 log @ * TODO: Update API shakeup chart. @ text @d1 19 @ 1.443 log @ * src/cairo-path-data-private.h: * src/cairo.c: (cairo_copy_path), (cairo_copy_path_flat), (cairo_append_path): Rename cairo_copy_path_data, cairop_copy_path_data_flat, and cairo_append_path_data to cairo_copy_path, cairo_copy_path_flat, and cairo_append_path. * src/cairo.h: Add new cairo_path_t, containing a cairo_path_data_t array and an explicit length. Remove CAIRO_PATH_END_PATH terminator from cairo_path_data_t. * src/cairo_atsui_font.c: (_cairo_atsui_font_glyph_path): * src/cairo_font.c: (_cairo_font_glyph_path): * src/cairo_ft_font.c: (_move_to), (_line_to), (_conic_to), (_cubic_to), (_cairo_ft_font_glyph_path): * src/cairo_gstate.c: (_cairo_gstate_interpret_path): * src/cairo_path.c: (_cairo_path_init), (_cairo_path_init_copy), (_cairo_path_fini), (_cairo_path_move_to), (_cairo_path_rel_move_to), (_cairo_path_line_to), (_cairo_path_rel_line_to), (_cairo_path_curve_to), (_cairo_path_rel_curve_to), (_cairo_path_close_path), (_cairo_path_get_current_point), (_cairo_path_add), (_cairo_path_add_op_buf), (_cairo_path_new_op_buf), (_cairo_path_add_arg_buf), (_cairo_path_new_arg_buf), (_cairo_path_interpret): * src/cairo_path_bounds.c: (_cairo_path_bounds): * src/cairo_path_data.c: (_cairo_path_data_count), (_cairo_path_data_populate), (_cairo_path_data_create_real), (cairo_path_destroy), (_cairo_path_data_append_to_context): * src/cairo_path_fill.c: (_cairo_path_fill_to_traps): * src/cairo_path_stroke.c: (_cairo_path_stroke_to_traps): * src/cairoint.h: * test/path_data.c: (munge_and_set_path), (draw), (main): Rename the internal path object from cairo_path_t to cairo_path_real_t. @ text @d3 4 @ 1.442 log @2005-03-18 Kristian Høgsberg * src/cairo_pdf_surface.c (cairo_set_target_pdf_as_file) (cairo_set_target_pdf): Remove return statements from these functions (bug #2137). @ text @d1 36 @ 1.441 log @ * src/Makefile.am (libcairo_la_SOURCES): Remove unused libcairo_freetype_sources (thanks to Damien Carbery). Closes bug #2673. @ text @d1 6 @ 1.440 log @2005-03-17 Owen Taylor * src/cairo_matrix.c (cairo_matrix_rotate): doc fix - 90 degrees is MI_PI/2 radians. * src/cairo.c src/cairo_matrix.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_quartz_surface.c src/cairo_win32_font.c src/cairo_win32_surface.c src/cairo_xlib_surface.c: Cairo is only capitalized at the beginning of sentences. @ text @d1 6 @ 1.439 log @2005-03-17 Kristian Høgsberg From Tor Lillqvist : * test/cairo_test.c (cairo_test): Open output PNG files in binary mode. @ text @d1 11 @ 1.438 log @2005-03-17 Owen Taylor * src/cairo.h src/cairo_surface.c src/cairo-xlib.h src/cairo_xlib_surface.c: Move cairo_xlib_surface_set_device_offset() to a generic cairo_surface_set_device_offset(). * src/cairo_gstate.c: Take the surface's device offset into account. * doc/public/cairo-sections.txt: Update. @ text @d1 7 @ 1.437 log @2005-03-17 Owen Taylor * src/cairo_matrix.c: Fix the docs to to correctly describe the order of transformation for muliply/scale/rotate/translate. (cairo_matrix_translate): Fix translate/rotate typo in the parameter descriptions. @ text @d3 11 @ 1.436 log @2005-03-17 Kristian Høgsberg * src/cairo_output_stream.c: Forgot to add this file. @ text @d1 7 @ 1.435 log @2005-03-16 Kristian Høgsberg * src/cairo_surface.c (_destroy_user_data) (cairo_surface_set_user_data): Dont call user data destroy function if it's NULL. * test/user_data.c: (main): Add test case for user data with NULL destroy function. @ text @d1 4 @ 1.434 log @2005-03-16 Kristian Høgsberg * src/Makefile.am: Add cairo_output_stream.c * src/cairo.h: Add new errors, CAIRO_STATUS_WRITE_ERROR and CAIRO_STATUS_SURFACE_FINISHED, add cairo_surface_finish() prototype, add cairo_write_func_t. * src/cairo.c: Add strings for new errors, documentation fix. * src/cairo_win32_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: * src/cairo_image_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: Rename surface destroy functions to finish and change them to not free the surface. * src/cairo-pdf.h: * src/cairo_pdf_surface.c: Change PDF surface constructors to take a write function in the general case and add stdio convenience constructors. Change destroy function to finish for cairo_pdf_surface. Change implementation to use cairo_output_stream_t functions for output. * src/cairo_font.c: (_cairo_font_show_glyphs): Use _cairo_surface_show_glyphs instead of calling function pointer directly. * src/cairoint.h: Add prototypes for cairo output stream functions, rename destroy to finish in cairo_surface_backend_t and add finished flag to cairo_surface_t. * src/cairo_surface.c: Add cairo_surface_finish() and call it from cairo_surface_destroy(). Check the finished flag in cairo_surface_t in functions that change the surface. @ text @d1 10 a10 1 2005-03-16 Kristian Høgsberg @ 1.433 log @2005-03-15 Owen Taylor * src/cairo-xlib.h src/cairo_xlib_surface.c: Rework set of contructors for XLib surfaces. Add cairo_xlib_surface_set_size(). * src/cairo-xlib.h src/cairo_xlib_surface.c: Add cairo_xlib_surface_set_device_offset(). * src/cairo_xlib_surface.c (cairo_xlib_surface_set_clip_region): Rewrite for clarity and efficiency. * src/cairo_xlib_surface.c (_get_image_surface): Use a temporary pixmap to avoid possible BadMatch when fetch from windows. * src/cairo.[ch] src/cairo-xlib.h: Fix some parameter names for the docs. * doc/public/cairo-sections.txt: Update @ text @d1 38 @ 1.432 log @ * test/path_data-ref.png: Add reference image. @ text @d1 21 @ 1.431 log @ * test/Makefile.am: Fixes to force tests to run against locally compiled version (thanks to Manish Singh). @ text @d3 4 @ 1.430 log @ * doc/public/cairo-sections.txt: * doc/public/tmpl/cairo-surface.sgml: * doc/public/tmpl/cairo.sgml: Added some documentation, so we get some churn here. * src/cairo.c: * src/cairo.h: New functions: cairo_copy_path_data, cairo_copy_path_data_flat, and cairo_append_path_data. * src/Makefile.am: * src/cairo-path-data-private.h: * src/cairo_path_data.c: Add new implementation for cairo_copy_path_data and cairo_append_path_data. * test/Makefile.am: * test/path_data.c: New test for new path_data functions. @ text @d1 5 @ 1.429 log @*** empty log message *** @ text @d1 19 @ 1.428 log @2005-03-10 Kristian Høgsberg * test/user_data.c (main): Fix assert()'s using = instead of ==. * test/cairo_test.c (cairo_test): Move xunlink call below the xasprintf that builds the filename to unlink. @ text @d3 5 @ 1.427 log @ * TODO: API Shakeup status update. @ text @d1 7 @ 1.426 log @ Originally: 2005-02-24 Carl Worth * src/cairo_surface.c (cairo_surface_set_user_data) (cairo_surface_get_user_data): * src/cairo.h: Add const qualifier to cairo_user_data_key_t arguments. Originally: 2005-02-15 Kristian Høgsberg * src/cairo_surface.c (cairo_surface_get_data, cairo_surface_set_data): Add these two functions to set and get user data on an surface. * src/cairo.h: Function prototypes for new functions. * test/user_data.c: Test case for user data functions. @ text @d3 4 @ 1.425 log @ * test/cairo_test.c (cairo_test): Move filename initialization up to before first use. * test/get_and_set.c: * test/Makefile.am: Add test for the most trivial cairo_get and cairo_set functions. @ text @d1 18 @ 1.424 log @ * test/cairo_test.c: (cairo_test): * test/cairo_test.h: * test/clip_twice.c: (draw): * test/coverage.c: (draw): * test/fill_rule.c: (draw): * test/leaky_polygon.c: (draw): * test/line_width.c: (draw): * test/linear_gradient.c: (draw): * test/move_to_show_surface.c: (draw): * test/pixman_rotate.c: (draw): * test/text_cache_crash.c: (draw): * test/text_rotate.c: (draw): Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image. @ text @d3 9 @ 1.423 log @ fix typos. @ text @d3 17 @ 1.422 log @ * TODO: Update API Shakeup planning chart. @ text @d4 1 @ 1.421 log @ * doc/public/cairo-sections.txt: * src/cairo.c: (cairo_get_pattern), (cairo_get_font), (cairo_get_font_extents), (cairo_get_operator), (cairo_get_rgb_color), (cairo_get_alpha), (cairo_get_tolerance), (cairo_get_current_point), (cairo_get_fill_rule), (cairo_get_line_width), (cairo_get_line_cap), (cairo_get_line_join), (cairo_get_miter_limit), (cairo_get_matrix), (cairo_get_target_surface), (cairo_get_path), (cairo_get_path_flat): * src/cairo.h: * src/cairo_ft_font.c: (_conic_to): * src/cairo_gstate.c: (_cairo_gstate_get_target_surface), (_cairo_gstate_get_pattern), (_cairo_gstate_get_operator), (_cairo_gstate_get_rgb_color), (_cairo_gstate_get_tolerance), (_cairo_gstate_get_alpha), (_cairo_gstate_get_fill_rule), (_cairo_gstate_get_line_width), (_cairo_gstate_get_line_cap), (_cairo_gstate_get_line_join), (_cairo_gstate_get_miter_limit), (_cairo_gstate_get_matrix), (_cairo_gstate_get_current_point), (_cairo_gstate_show_surface), (_cairo_gstate_get_font), (_cairo_gstate_get_font_transform), (_cairo_gstate_get_font_scale), (_cairo_gstate_ensure_font), (_cairo_gstate_get_font_extents), (_cairo_gstate_text_to_glyphs): * src/cairo_path.c: (_cairo_path_get_current_point): * src/cairoint.h: * test/pixman_rotate.c: (draw):Rename all the cairo_current functions to cairo_get functions instead. Add documentation for all of these functions (and a few others as well). Add support so that old binarys should still run and old source should still compile, (though we'll rip that out again on the API Shakeup flag day). @ text @d3 4 @ 1.420 log @ * configure.in: Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_4_0. @ text @d1 34 @ 1.419 log @ * gtk-doc.make (dist-check-gtkdoc): Commit workaround to prevent make distcheck from making bogus complaints that gtk-doc is not enabled. @ text @d3 5 @ 1.418 log @ * test/cairo_test.c (cairo_test_create_png_pattern): Look for png images in ${srcdir}/filename as well, so that make distcheck can still find them. * test/Makefile.am (EXTRA_DIST): Add romedalen.png to EXTRA_DIST so the tests can pass from the tar file. * doc/public/cairo-sections.txt: Fix typo: cairo-win3 -> cairo-win32. * doc/public/cairo-docs.xml: Add cairo-win32.xml to the list, so it gets generated as well. * NEWS (http): Add pointer to new win32 documentation. @ text @d3 4 @ 1.417 log @ * configure.in: Increment CAIRO_VERSION to 0.4.0 * NEWS: Added notes for snapshot 0.4.0 @ text @d3 15 @ 1.416 log @ * test/cairo_test.c (xunlink): Shared function for checking unlink errrors. (cairo_test): Move all error messages to test-specific log files for quieter test output. * test/Makefile.am (XFAIL_TESTS): Make pixman_rotate an expected failure. @ text @d3 6 @ 1.415 log @ * configure.in: Require libpixman >= 0.1.4. @ text @d3 8 @ 1.414 log @2005-03-08 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_composite): Return CAIRO_STATUS_SUCCESS even if we don't implement masks yet, so we don't set cr->status to CAIRO_INT_STATUS_UNSUPPORTED. @ text @d1 4 @ 1.413 log @ * src/cairo_traps.c: Disable the "new" intersection code so that the incorrect fill problems (test/fill_rule) go away. @ text @d1 6 @ 1.412 log @ * configure.in: Make configure fail if no font backend is available. Point the user at freetype and fontconfig. @ text @d3 3 @ 1.411 log @2005-03-06 Owen Taylor * src/cairo_pattern.c (_cairo_image_data_set_linear): Comment and clean up the gradient computation. (_cairo_linear_pattern_classify): Determine if a linear gradient is horizontal or vertical. (_cairo_pattern_acquire_surface_for_gradient): Optimize horizontal/vertical gradients with a repeating surface. * test/linear_gradient.c: Test case for linear gradients at angles and with a rotated pattern matrix. @ text @d1 5 @ 1.410 log @Fix gradient acceleration in glitz backend @ text @d1 12 @ 1.409 log @2005-03-04 Owen Taylor * src/cairo_win32_font.c src/cairo_win32_surface.c: Update for recent backend interface changes. * configure.in: Reenable win32 backend by default. @ text @d1 9 @ 1.408 log @ * src/cairo_glitz_surface.c (_cairo_glitz_pattern_acquire_surface): Fix accidental reversal of condition in previous patch. @ text @d1 7 @ 1.407 log @2005-03-04 Owen Taylor * src/cairoint.h src/cairo_pattern.c src/cairo_glitz_surface.c: Add _cairo_pattern_is_opaque, use it rather than pattern->alpha == 1.0. @ text @d1 6 @ 1.406 log @Update xcb backend @ text @d1 6 @ 1.405 log @Fixed variable assignments in configure.in @ text @d3 4 @ 1.404 log @Add more mask surface acceleration to glitz backend @ text @d3 2 @ 1.403 log @Add overall alpha acceleration using mask surface @ text @d3 4 @ 1.402 log @Pass mask to composite operation as pattern @ text @d4 3 @ 1.401 log @Removed surface backend functions set_matrix, set_filter and set_repeat @ text @d3 16 @ 1.400 log @Major update to glitz backend @ text @d3 13 @ 1.399 log @Change to cairo_surface_t like structure of of cairo_pattern_t @ text @d3 5 @ 1.398 log @ * TODO: Note that cairo_output_stream_t patch has been reviewed. @ text @d1 29 @ 1.397 log @ * src/cairo_gstate.c (_cairo_gstate_show_surface): Fix uninitialized value for status, (reported by Manish Singh). @ text @d3 4 @ 1.396 log @2005-02-27 Kristian Høgsberg * src/cairo_gstate.c (_cairo_rectangle_intersect): Fix this function again. Problem with signed/unsigned types reported by Jeff Muizelaar . @ text @d1 5 @ 1.395 log @2005-02-27 Kristian Høgsberg * src/cairo.h (cairo_fill_rule_t): Remove newline in comment which was confusing gtk-doc. * src/cairo_image_surface.c (cairo_image_surface_create_for_data) (cairo_image_surface_create): Document these functions. @ text @d3 6 @ 1.394 log @ * TODO: Note that "user data" and "setters and getters" patches have been reviewed. Remove a few more TODO notes: cleanup cairo_snippets: DONE cairo_surface_finish: Now in API Shakeup snapping code: Decided against this @ text @d1 8 @ 1.393 log @ From David Reveman: * src/cairo_matrix.c (_cairo_matrix_is_integer_translation): Rewrite to use cairo_bool_t for legibility. @ text @d3 8 @ 1.392 log @ From David Reveman: * src/cairo_gstate.c (_cairo_gstate_show_surface): Simplify code to eliminate a goto. @ text @d4 7 @ 1.391 log @ From David Reveman: * src/cairo_gstate.c (_cairo_gstate_pattern_init_copy): (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_show_surface, _cairo_gstate_show_glyphs) (_cairo_gstate_show_glyphs): Clean up the mess that was the misnamed _cairo_gstate_create_pattern. @ text @d5 7 @ 1.390 log @ * src/cairo_pattern.c (_cairo_pattern_shader_init): Don't put an off-by-one n_stops into cairo_shader_op_t. (_cairo_shader_op_find_color_stops): Put search for two color stops containing a given offset into its own function. Handle the case of before first and after last stop by returning the nearest stop twice. (_cairo_pattern_calc_color_at_pixel): Handle case of no color stops by returning a transparent pixel. @ text @d3 11 @ 1.389 log @2005-02-24 Owen Taylor * src/cairo_win32_surface.c: Remove a left-over debug printf. @ text @d1 11 @ 1.388 log @ * src/cairo_pattern.c (cairo_pattern_add_color_stop): Fix memory leak when realloc fails due to out-of-memory. @ text @d1 4 @ 1.387 log @2005-02-24 Owen Taylor * src/cairo_win32_surface.[ch]: Instead of counting on ordering deletion to work (apparently it didn't on older Windows), save the initial bitmap created with the DC and reselect that into the DC. (Based on a patch by Hans Breuer) @ text @d1 5 @ 1.386 log @ * test/.cvsignore: Add pixman_rotate to ignore list. @ text @d1 8 d43 1 a43 1 2005-02-24 Carl Worth @ 1.385 log @ Fixes from David Reveman with minor cleanups by Carl Worth: * src/cairo_gstate.c (_cairo_gstate_create): Handle new failure possibility of _cairo_gstate_init. (_cairo_gstate_init): Handle possible failure of _cairo_pattern_create_solid. (_cairo_gstate_set_pattern): Reference new pattern before destroying existing pattern to handle the case where they are the same. (_cairo_gstate_set_rgb_color): Handle possible failure of _cairo_pattern_create_solid. @ text @d3 4 @ 1.384 log @ * src/cairo.h: Fix typo (pointed out by Kristian Høgsberg). @ text @d3 14 @ 1.383 log @2005-02-24 Owen Taylor * src/cairo_win32_surface.c (_cairo_win32_surface_destroy): When we created a DC/bitmap pair, delete the DC before the Bitmap so that the Bitmap will be released from the DC and can be destroyed. (Reported by Hans Breuer) * configure.in cairo.pc.in: Only require fontconfig if building FreeType font backend. * configure.in: Fix output when reporting Win32 font backend. @ text @d1 4 @ 1.382 log @ * TODO: Remove many TODO items that have now been absorbed by the API shakeup. Remove comparison with PostScript as there's nothing interesting there left unimplemented, (and cairo is already establishing its own conventions in naming and behavior that deviate from PostScript). @ text @d1 12 @ 1.381 log @ * src/cairoint.h: Fix typo (pointed out by Mike Emmel) @ text @d3 6 @ 1.380 log @ * TODO: Add entries from API Shakeup. @ text @d1 4 @ 1.379 log @ * README: * src/cairo-features.h.in: * src/cairo-glitz.h: * src/cairo-pdf.h: * src/cairo-png.h: * src/cairo-ps.h: * src/cairo-quartz.h: * src/cairo-xcb.h: * src/cairo-xlib.h: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_png_surface.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_traps.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Switch from broken cworth@@isi.edu address to canonical cworth@@cworth.org address. @ text @d1 4 @ 1.378 log @ * test/write_png.c: * src/cairo-atsui.h: * src/cairo_atsui_font.c: Convert to utf-8 encoding. @ text @d3 37 @ 1.377 log @ * configure.in: Temporarily disable XCB backend by default. @ text @d3 6 @ 1.376 log @ * src/cairo_pattern.c (cairo_pattern_reference): * src/cairo.h: Revert accidental commit. @ text @d1 4 @ 1.375 log @ * src/cairo_surface.c (_fallback_composite_trapezoids): Fix y offset to use dst_y instead of dst_x, (caught by David Reveman). @ text @d3 5 @ 1.374 log @2005-02-20 Owen Taylor * src/cairo-win32.h: Fix line endings (reported by Hans Breuer) @ text @d1 5 @ 1.373 log @2005-02-16 Kristian Høgsberg Patches from Mike Owens : * src/cairo_png_surface.c (_cairo_png_surface_copy_page): Free rows if we fail early in this function. * src/cairo_path.c (_cairo_path_init_copy): Clean up path if we run out of memory. @ text @d1 5 @ 1.372 log @2005-02-13 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_create_for_document): Initialize array element size correctly. @ text @d1 10 @ 1.371 log @2005-02-10 Kristian Høgsberg Patches from Owen Taylor: * src/cairo_pdf_surface.c (_cairo_pdf_surface_show_glyphs): Emit text as octal escapes, to avoid problems with \, \r, ), etc. (_cairo_pdf_document_write_fonts): Change /Flags to be 4 (symbolic), not 32 (non-symbolic), otherwise acroread gets confuse. (cairo_pdf_ft_font_write_cmap_table): Use a 1,0 cmap subtable, not a 0,0, to conform to the PDF spec. @ text @d1 6 @ 1.370 log @ * autogen.sh (LC_NUMERIC): Use LC_NUMERIC=C so that decimal separator works in version checks. @ text @d1 12 @ 1.369 log @2005-02-12 Owen Taylor * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Fix x2/x1 typo. @ text @d1 5 @ 1.368 log @ * src/cairo.c (cairo_text_extents): Return all-zero extents if string is NULL. @ text @d1 5 @ 1.367 log @2005-02-12 Kristian Høgsberg * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): Make clipping fast path fast. When we have a clipping region set, intersect it against the drawing extents to determine the bounding box for the visible drawing. @ text @d1 5 @ 1.366 log @ * BUGS: Add bug for cairo_show_surface under non-default CTM. @ text @d1 8 @ 1.365 log @Argh, committed conflict marker in ChangeLog - fixed. @ text @d1 4 @ 1.364 log @2005-02-07 Kristian Høgsberg * test/pixman_rotate.c, test/pixman_rotate-ref.png: New test case which exposes off-by-one rotation error in pixman. @ text @a109 1 >>>>>>> 1.363 @ 1.363 log @2005-02-06 Owen Taylor * src/cairo_gstate.c src/cairo.c: Allow cairo_set_font (cr, NULL) to unset the current font and return the cairo_t to the the "use the font from cairo_select_font() state". @ text @d1 5 d110 1 @ 1.362 log @2005-02-06 Owen Taylor * src/cairo_win32_font.c (_cairo_win32_font_text_to_glyphs): Return the right status. (Reported by Hans Breuer.) @ text @d3 6 @ 1.361 log @2005-02-06 Owen Taylor * src/cairo_win32_font.c (_cairo_win32_font_text_to_glyphs): Free glyph_indices, not glyphs. (Reported by Hans Breuer.) @ text @d3 5 @ 1.360 log @ * configure.in: Add message stating why glitz backend is disabled. @ text @d1 5 @ 1.359 log @2005-02-05 Owen Taylor * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs): Don't free *glyphs when succeeding! (Reported by Øyvind Kolås) * configure.in: Temporarily disable glitz by default. @ text @d1 4 @ 1.358 log @ * src/Makefile.am: Generate an error during make install if old cairo headers are found in includedir, (rather than includedir/cairo where the new ones are going). @ text @d1 7 @ 1.357 log @2005-02-03 Owen Taylor * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs, _cairo_ft_font_create_glyph): Fix missing cairo_ft_font_unlock_face(). * src/cairo_cache.c (_cairo_cache_random_entry): Fix problem when no entry could be found. @ text @d1 6 @ 1.356 log @Commit old change to ChangeLog that got missed before: * test/imagediff.c * test/testsvg: Add new testsvg script and accompanying imagediff program, (for interim SVG-based test suites while we wait for the standard cairo test suite to mature). * test/buffer_diff.c: * test/cairo_test.c: Split buffer_diff out into its own file for the purpose of imagediff. @ text @d1 8 @ 1.355 log @2005-02-03 Owen Taylor * src/cairo_font.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_font_extents(). * src/cairo_win32_font.c src/cairo-win32.h doc/public/cairo-sections.txt: Rename cairo_font_create_for_logfont() into cairo_font_create_for_logfontw() to make clear what it takes. Don't add cairo_font_create_for_logfonta() for now. @ text @d369 9 @ 1.354 log @2005-02-02 Owen Taylor * src/cairo_win32_font.c doc/public/cairo-sections.txt doc/public/Makefile.am: Add windows functions to the docs. @ text @d1 10 d63 1 a63 1 @ 1.353 log @2005-02-02 Owen Taylor * src/cairo_win32_font.c (cairo_win32_font_select_font, cairo_win32_release_font, cairo_win32_font_get_scale_factor): Add some functions to select the font into a device context with the intention to enable callers to use, e.g, Uniscribe. * src/cairo_win32_font.c: Use 'hdc' not 'dc' for param/variable name. * src/cairo_win32_font.c (_cairo_win32_font_show_glyphs): Return immediately if height or width is 0. @ text @d1 15 @ 1.352 log @2005-02-02 Owen Taylor * src/cairo_win32_font.c: Mostly-functioning Win32 font backend; no glyph paths yet. * configure.in: Turn on building of the Win32 font backend. * src/cairo-win32-private.h src/Makefile.am: Private header for the Win32 backend. * src/cairo-win32-private.h src/cairo_win32_surface.c: Internally export _cairo_win32_print_gdi_error() for use in the font code. * src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_win32_surface_create_dib to create a DIB surface. src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_surface_is_win32() * configure.in: Check for vasnprintf. * test/cairo_test.c (xasprintf): Add a simple fixed-buffer size snprintf fallback in the absence of vasnprintf. @ text @d3 13 @ 1.351 log @2005-02-01 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_surface_composite): Pretend we support compositing of solid color or gradient patterns to prevent image fallback. (emit_pattern): New function, code factored out from _cairo_pdf_surface_composite_trapezoids. (_cairo_pdf_surface_show_glyphs): Use emit_pattern here so we get pattern support for text. * src/cairo_ft_font.c (_cairo_ft_font_get_unscaled_font): Fix typo. @ text @d1 25 @ 1.350 log @2005-02-01 Owen Taylor * src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib. * src/cairo.[ch]: Add CAIRO_STATUS_INVALID_STRING * src/cairo_ft_font.c: Use _cairo_utf8_to_ucs4(). * src/cairo.h: Add cairo_bool_t * src/cairoint.h: Add TRUE/FALSE definitions. * src/cairo.[ch] src/cairoint.h src/cairo_gstate.c: switch cairo_in_stroke/cairo_in_fill and all the functions used to implement them over to cairo_bool_t. @ text @d1 12 @ 1.349 log @2005-01-31 Owen Taylor * configure.in src/cairo-features.h.in: Add a check for the Windows platform and --enable-win32. Also add some (currently always off) stubs for native Win32 fonts. * configure.in: Make building the PDF backend conditional on having FreeType. * src/Makefile.am src/cairo_win32_surface.c src/cairo_win32_font.c src/cairo-win32.h: Add a Win32 backend using GDI and software fallbacks Font code is not yet there yet, but it works with the fontconfig backend. * src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend. * src/cairoint.h: Prefer platform-specific font backends to the fontconfig backend. @ text @d1 17 @ 1.348 log @2005-01-31 Owen Taylor * src/cairoint.h src/cairo_image_surface.c src/cairo_pdf_surface.c src/cairo_png_surface.c src/cairo_surface.c src/cairo_xlib_surface.c: Replace the get_image()/set_image() backend operations with a more specific {acquire,release}_{source,dest}_image() and clone_similar(). * src/cairoint.h src/cairo_pattern.c: Replace _cairo_pattern_get_surface() with a _cairo_pattern_begin_draw()/_cairo_pattern_end_draw() pair. * src/cairo_image_surface.c: Save the format for which an image is created so we can access it later. (Needed for the _cairo_xlib_surface_clone_similar()) * src/cairoint.h src/cairo_image_surface.c: Add _cairo_surface_is_image(). * src/cairoint.h: Add CAIRO_OK(status) to check for CAIRO_STATUS_SUCCESS. * src/cairo_xlib_surface.c: In the absence of of RENDER, make cairo_xlib_surface_create_similar() return an image surface. * src/cairo_xlib_surface.c: Don't try to use RENDER to composite glyphs in the absence of the RENDER extension. @ text @d3 20 @ 1.347 log @2005-01-30 Owen Taylor * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Update composite-over-white code to use a pattern, not a surface. (to match _cairo_surface_composite API change.) @ text @d1 31 @ 1.346 log @2005-01-30 Owen Taylor Fixes from David Reveman: * src/cairo_pattern.c (_cairo_pattern_save/restore_surface): Don't save to surface part of the union when the pattern isn't a surface pattern. (_cairo_pattern_get_surface): Create the new surface at the width and height of the source. * src/Makefile.am (libcairo_ft_sources): Add cairo-ft-private.h @ text @d3 6 @ 1.345 log @2005-01-28 Kristian Høgsberg * src/cairo_png_surface.c (_cairo_png_surface_composite): Update prototype to eliminate warning. * src/cairo_pattern.c (_cairo_pattern_init_copy): Remember to reference surfaces when copying patterns. * src/cairo_gstate.c: (_cairo_rectangle_intersect), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_show_glyphs): Don't call _gstate_create_pattern for internally created patterns. (_cairo_gstate_show_surface): Don't change the surface matrix here, it's done later when we set it up as a pattern. * test/Makefile.am: Correct clip_twice-ref.png filename. * src/cairoint.h (MIN, MAX): Add these. * src/cairo_gstate.c (_cairo_rectangle_intersect): Fix broken intersection code. @ text @d1 12 @ 1.344 log @2005-01-27 Kristian Høgsberg * src/cairo_pattern.c (_cairo_pattern_get_surface): Make sure we always return a surface similar to dst in the gradient case. @ text @d1 22 @ 1.343 log @2005-01-27 Kristian Høgsberg * src/cairo_pattern.c (_cairo_pattern_get_surface): Fold _cairo_pattern_get_image into _cairo_pattern_get_surface and make sure we always return a surface of the same type as dest. * src/cairo_glitz_surface.c (_cairo_glitz_composite), (_cairo_glitz_surface_composite_trapezoids): Use _cairo_pattern_get_surface instead of _cairo_pattern_get_image. * src/cairo_xlib_surface.c (_cairo_xlib_surface_show_glyphs), (_cairo_xlib_surface_composite) (_cairo_xlib_surface_composite_trapezoids): Remove use of _cairo_xlib_surface_clone_similar since _cairo_pattern_get_surface always gives us an xlib surface for the pattern. Clean up error handling code in _cairo_xlib_surface_show_glyphs. * src/cairo_image_surface.c (_cairo_image_surface_composite): (_cairo_image_surface_composite_trapezoids): Add missing cairo_surface_destroy and tidy up offset calculations as suggested by Owen. * src/cairoint.h (cairo_clip_rect_t): * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_clip, _cairo_gstate_show_glyphs): Simplify code for computing the extents of clipping area, by introducing a couple of cairo_rectangle_t functions. @ text @d3 3 d9 1 a9 1 @ 1.342 log @2005-01-27 Kristian Høgsberg * src/cairoint.h (cairo_clip_rect_t): * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids) (_cairo_gstate_clip, _cairo_gstate_show_glyphs): Simplify code for computing the extents of clipping area, by introducing a couple of cairo_rectangle_t functions. @ text @d3 20 @ 1.341 log @2005-01-27 Owen Taylor * src/cairo.[ch] src/cairo_font.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_xlib_surface.c: Move docs from docs/reference, with a fair bit of addition and rewriting. * doc/reference/: Remove old-format docs. * configure.in: Add a AC_PREREQ(2.54) (Jason Dorje Short) @ text @d1 8 @ 1.340 log @2005-01-27 Kristian Høgsberg * test/coverage-ref.png: * test/clip_twice-ref.png: Update these two once again, this time generated using libpixman-0.1.3 without leaky circles. @ text @d1 11 @ 1.339 log @[ Grr... previous commit from test/, missed the ChangLog changes ] 2005-01-27 Kristian Høgsberg * test/write_png.c (unpremultiply_data): * test/read_png.c (premultiply_data): Fix missing rounding in these two functions. * test/coverage-ref.png: * test/clip_twice-ref.png: Update these to versions with properly rounded alpha values. * test/Makefile.am: Move clip_twice out of XFAIL now that rounding works. * test/.cvsignore: Add new test cases. @ text @d1 7 @ 1.338 log @2005-01-27 Owen Taylor * configure.in Makefile.am docs/Makefile.am docs/public/*: Add framework for doing docs via gtk-doc. * src/cairo.[ch] src/cairo-matrix.c: Add some inline docs for arcs and matrices. * gtk-doc.m4 acinclude.m4: Check in files from gtk-doc to make the dependency on gtk-doc optional. * autogen.sh (LANG): Add --enable-gtk-doc to the default args. @ text @d17 15 @ 1.337 log @2005-01-27 Kristian Høgsberg The overall idea of this rewrite is that we want to pass the source pattern all the way down into the backends. The motivation for this is that not all backends want a surface for the source operand, and by passing the pattern down, backends can choose to convert it to a surface if they need that. The patch removes the create_surface function pointer from the surface vtable and moves much of that code into a couple of helper functions. The composite, compsite_trapezoids, and show_glyphs backend functions are updated to take a cairo_pattern_t instead of a surface as the source. * src/cairo_font.c: (_cairo_font_show_glyphs): * src/cairo_gstate.c: (_cairo_gstate_create_pattern), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_clip), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Change these functions to not create a surface for the pattern and just pass the pattern down to the backend functions. * src/cairo_gstate.c: (translate_traps): New function to translate a set of trapezoids. * src/cairo_pattern.c: (_cairo_pattern_init), (_cairo_pattern_init_copy), (_cairo_pattern_prepare_surface), (_cairo_pattern_restore_surface): Break out the code to adjust and restore surface transformation and repeat settings into _cairo_pattern_prepare_surface and _cairo_pattern_restore_surface. * src/cairo_pattern.c: (_cairo_pattern_fini), (_cairo_pattern_init_for_surface), (cairo_pattern_create_for_surface): Split cairo_pattern_create_for_surface into an init function and a create function. * src/cairo_pattern.c: (_cairo_pattern_get_image), (_cairo_pattern_get_surface): Utility functions to create a surface from a pattern. * src/cairo_ft_font.c: * src/cairo_image_surface.c: * src/cairo_pdf_surface.c: * src/cairo_png_surface.c: * src/cairo_ps_surface.c: * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: Update these backends to work with the new pattern API. Glitz work by David Reveman. * src/cairo_surface.c: (_cairo_surface_composite), (_cairo_surface_composite_trapezoids), (_cairo_surface_set_clip_region): Update these to pass through the new set of args. * test/coverage-ref.png: Update this reference image as we now render it correctly. @ text @d1 14 @ 1.336 log @2005-01-26 Kristian Høgsberg * test/clip_twice.c, test/clip_twice-ref.png: New test case to verify that the clip surface is correctly updated when extending an existing clip path. @ text @d1 62 @ 1.335 log @2005-01-26 Kristian Høgsberg * test/coverage.c (draw): Set alpha to 1 before setting clip mask. * test/coverage-ref.png: Added the right reference PNG. Running test against stock 0.3.0 gives the expected results. @ text @d3 4 @ 1.334 log @2005-01-26 Kristian Høgsberg * test/Makefile.am, test/coverage.c, test/coverage-ref.png: New test case, covering various combinations of pattern types, drawing operations and clipping. Currently fails, for some combinations, coverage-ref.png is just a placeholder. * test/romedalen.png: Added this PNG from cairo-snippets to use for pattern fills. * test/cairo_test.c, test/cairo_test.h: expose PNG loading to test cases. @ text @d3 5 @ 1.333 log @2005-01-26 Alexander Larsson * src/cairo_ft_font.c: (_ft_unscaled_font_set_scale): Fix access to uninitialized data * src/cairo_xlib_surface.c: key must be first element in cache entry @ text @d1 13 @ 1.332 log @Update mail address @ text @d1 8 @ 1.331 log @Track changes to glitz @ text @d3 4 @ 1.330 log @Add missing include directive so xcb backend compile again @ text @d3 4 @ 1.329 log @ * src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Fixed rounding of glyph positioning. @ text @d1 5 @ 1.328 log @2005-01-25 Owen Taylor * src/cairo_pdf_surface.c (_cairo_pdf_document_get_font): Chec pdf_font for NULL, not font. @ text @d1 5 @ 1.327 log @2005-01-25 Alexander Larsson * src/Makefile.am: Fix typo that made cairo-ft.h not get installed @ text @d1 5 @ 1.326 log @ * AUTHORS: Add Shawn T. Amundson, Calum Robinson, and Owen Taylor. @ text @d1 5 @ 1.325 log @ * src/Makefile.am: Conditionally install header files only for backends that are compiled. Thanks to Shawn T. Amundson . @ text @d3 2 @ 1.324 log @ * src/cairoint.h: * src/cairo_color.c (_cairo_color_get_rgb): Qualify color argument as const. Closes bug #2336. @ text @d3 4 @ 1.323 log @2005-01-23 Dave Beckett * src/cairo_ft_font.c (_get_load_flags): Protect switch on hintstyle with #ifdef FC_HINT_STYLE. @ text @d1 6 @ 1.322 log @ * RELEASING: Add instructions for handling the new -head suffix of CAIRO_VERSION at release-time. * configure.in: Append -head to CAIRO_VERSION to indicate state between snapshots. @ text @d1 5 @ 1.321 log @2005-01-21 Owen Taylor * Call _cairo_gstate_ensure_font(). Don't reference the returned font. @ text @d1 12 @ 1.320 log @2005-01-21 Owen Taylor * src/cairo_ft_font.c (_get_load_flags): Make dependence on FC_HINT_STYLE conditional. (reported by Abraham Egnor) * src/cairo_ft_font.c: Use FT_LOAD_MONOCHROME if FT_LOAD_TARGET_MONO isn't defined for compatibility with older FreeType. @ text @d3 5 @ 1.319 log @2005-01-16 Owen Taylor Change cairo_font_t to refer to a font scaled to a particular output device resolution. * src/cairoint.h src/cairo_font.c src/cairo_ft_font.c src/cairo_xlib_surface.c src/cairo_pdf_surface.c src/cairo_gstate.c src/cairo.c: Switch many internal methods from handling cairo_unscaled_font_t and cairo_font_scale_t pairs to handling cairo_font_t. * src/cairo-ft-private.h src/cairo_ft_fontc: Add some internal interfaces for use by the FreeType backend. * src/cairo_gstate.c: Clear the gstate's current font when the transform or target surface changes. * src/cairo.h src/cairo_ft_font.c: Rename cairo_ft_font_pattern to cairo_ft_font_get_pattern(). * src/cairo.h src/cairo_ft_font.c: Make cairo_ft_font_create() and cairo_ft_font_create_for_ft_face() take a font scale; make the latter take load_flags for FT_Load_Glyph() as well. Change cairo_ft_font_face() to Xft-style cairo_ft_font_lock_face, cairo_ft_font_unlock_face. * src/cairo_font.c: Remove the name/slant/weight=>unscaled font cache, it didn't work with the new cairo_font_t setup. If it turns out to be needed, it can be added back in some other form. * src/cairoint.h src/cairo_font.c: Add a 'flags' field to cairo_glyph_cache_key_t, we use it for load flags with freetype backend. * src/cairo_ft_font.c: Switch the caching to be from resolved fontconfig pattern => file; keep only a fixed number of FT_Face objects open at once, similar to FreeType. * src/cairo_font.c (cairo_font_glyph_extents) src/cairo_gstate.c src/cairoint.h: Add public cairo_font_glyph_extents, use it to implement _cairo_gstate_glyph_extents(). * src/cairo_xlib_surface.c (_glyphset_cache_entry_reference): Add refcounting for glyph cache elements; there was an bug where elements got ejected from the cache and freed before they could be used. * src/cairoint.h src/cairo_cache.c (_cairo_cache_random_entry()) New function to return a random entry in the cache matching a predicate; reuse the internals for the previous _random_live_entry(). * src/cairoint.h src/cairo_cache.c (_cairo_cache_lookup()): Add an optional created_entry return value. * src/cairo_ft_font.c src/cairo_xlib_surface.c: Adapt to _cairo_cache_lookup() change. * src/cairo_cache.c (_cairo_cache_lookup()): Support max_memory == 0 to indicate an unbounded cache. * src/cairoint.h src/cairo_cache.c (_cairo_cache_remove()): Add a function to manually remove entries from the cache. * doc/reference: Update for changes, document cairo_matrix_t, cairo_glyph_t, etc. * src/cairo.h src/cairo-atsui.h src/cairo-ft.h src/cairo-glitz.h src/cairo-pdf.h src/cairo-png.h src/cairo-ps.h src/cairo-quartz.h src/cairo-xcb.h src/cairo-xlib.h: Add CAIRO_BEGIN/END_DECLS for extern "C", use it on all public headers. Move header guards outermost. * src/cairo_quartz_surface.c: Fix encoding. @ text @d1 9 @ 1.318 log @ * configure.in: Increment CAIRO_VERSION to 0.3.0 * NEWS: Add notes for snapshot 0.3.0 @ text @d1 74 @ 1.317 log @ * test/fill_rule-ref.png: * test/leaky_polygon-ref.png: * test/line_width-ref.png: Update reference images for new rasterization in libpixman 0.1.3. @ text @d3 4 a69 2 Remove deprecated @ 1.316 log @ * Makefile.am (RELEASE_UPLOAD_DIR): Update since directory changed after server compromise. @ text @d3 5 @ 1.315 log @ * test/cairo_test.c: Add a bunch of missing include directives, (now that cairo.h has been cleaned up). @ text @d1 5 @ 1.314 log @ * src/cairo-atsui.h: Created new public header cairo-atsui.h. Build fixes for Quartz backend courtesy of Geoff Norton : * configure.in: Fix check for atsui font backend. * src/Makefile.am: Add conditional compilation for cairo_atsui_font.c and cairo_ft_font.c. * src/cairo_quartz_surface.c: Add missing include of cairo-quartz.h. * src/cairo-quartz.h: Add include of Carbon/Carbon.h. * src/cairo-features.h.in: Advertise availability of Quartz surface. * src/Makefile.am: Install cairo-quartz.h, and conditionally compile cairo_quartz_surface.c. * configure.in: Add autofoo checks to detect quartz backend. @ text @d1 6 a6 1 2005-01-20 Carl Worth @ 1.313 log @ * src/cairoint.h: Track various renamings. * src/cairo_xlib_surface.c: * src/cairo_ps_surface.c: * src/cairo_png_surface.c: * src/cairo_pdf_surface.c: * src/cairo_glitz_surface.c: * src/cairo_ft_font.c: Insert new includes for backend-specific header files. * src/cairo_gdip_surface.cpp: * src/cairo_gdip_font.cpp: Remove redundant include of cairo-features.h. * src/cairo.h (CAIRO_H): Rename header-exclusion macro from _CAIRO_H_ to CAIRO_H. Remove platform-specific grubbing for cairo-features.h and pixman.h in odd places. Remove all backend-specific prototypes, (as they are now in their own header files). Remove deprecated * src/cairo.c (cairo_sane_state): Remove printf. * src/cairo-features.h.in: Convert to utf-8. Use the proper name for multiple-header exclusion (CAIRO_FEATURES_H). Track rename of FREETYPE_FONT_FEATURE to FT_FONT_FEATURE. * src/Makefile.am (cairoinclude_HEADERS): Split cairo.h up into cairo.h, cairo-ft.h, cairo-glitz.h, cairo-pdf.h, cairo-png.h, cairo-ps.h, cairo-xcb.h, cairo-xlib.h. Update for rename of cairo_wideint.h to cairo-wideint.h. * configure.in: Rename CAIRO_HAS_FREETYPE_FONT to CAIRO_HAS_FT_FONT, (to match cairo_ft_font functions and cairo-ft.h). * cairo.pc.in (Cflags): Update for public header files now in /cairo. @ text @d1 26 @ 1.312 log @ * src/cairo_matrix.c (cairo_matrix_get_affine): * src/cairo_gstate.c (_cairo_gstate_current_point): * src/cairo_color.c (_cairo_color_get_rgb): Allow NULL values for return pointers so that the user can easily get partial results from cairo_matrix_get_affine, cairo_current_point, and cairo_current_color_rgb as needed. @ text @d1 44 a126 1 >>>>>>> 1.305 @ 1.311 log @ * src/cairo_ft_font.c (_utf8_to_ucs4): Fix int* vs. size_t* confusion, (currently in favor of int* but only because that's easier to implement). Thanks to John Ellson . Closes bug #2328. @ text @d3 7 @ 1.310 log @2005-01-19 Kristian Høgsberg * src/cairo_pdf_surface.c: Add byteswap macros missing for bigendian architectures. @ text @d1 7 @ 1.309 log @ * test/Makefile.am (XFAIL_TESTS): Remove fill_rule and leaky_polygon from expected failures list. Both of these bugs have fixes, (fill_rule is fixed by reverting cairo_traps.c to 1.16, and leaky_polygon is fixed in a newer libpixman). @ text @d1 5 @ 1.308 log @ * src/cairo_wideint.h: Remove const qualifiers from the header file as well. @ text @d3 5 @ 1.307 log @ * src/cairo_wideint.c: Remove useless const qualifier from functions returning simple values, (quiets the warning in gcc4). Thanks to John Ellson . Closes bug #2299. @ text @d3 3 @ 1.306 log @ * BUGS: Add bugs on cairo_surface_create_for_image, bad names for cairo_font_set_transform and cairo_font_current_transform, segfault on AMD64. @ text @d3 5 @ 1.305 log @2005-01-17 Kristian Høgsberg * src/cairo_pdf_surface.c (_cairo_pdf_document_get_font): Fix double free in error path. (cairo_pdf_ft_font_create): Reference the unscaled font to keep the FT_Face around. (cairo_pdf_ft_font_generate): Initialize end to avoid compiler warning; bail out if table write fails. Fixes from Owen. @ text @d1 6 d51 1 @ 1.304 log @2005-01-17 Kristian Høgsberg * src/cairo_pdf_surface.c: Add preliminary text support, including support for truetype font subsetting. * src/cairoint.h: Change type of 'surface' argument in show_glyphs to void * as it is for all other surface virtual functions. * src/cairo_xlib_surface.c (_cairo_xlib_surface_show_glyphs): Update accordingly. * configure.in: Add check for endianess. * src/cairo_array.c (_cairo_array_grow_by): Fix bug in array growing loop. (_cairo_array_append): Accept NULL for elements argument, in which case we just allocate space in the array. @ text @d3 9 @ 1.303 log @2005-01-17 Kristian Høgsberg * test/Makefile.am (EXTRA_DIST): Take image_rotate-ref.png out of EXTRA_DIST until we can actually render it correctly. (XFAIL_TESTS): Update with new known bugs. * src/cairo-features.h.in: * src/cairo.h: * src/cairoint.h: * configure.in: Add font backend selection options. @ text @d3 17 @ 1.302 log @2005-01-15 John Ellson reviewed by: Keith Packard * src/cairo_gstate.c: (_cairo_gstate_glyph_extents): Was using the wrong extents variable. @ text @d1 11 @ 1.301 log @ * test/leaky_polygon.c: * test/Makefile.am * test/.cvsignore: Add leaky_polygon test for trapezoid rasterization corner case. @ text @d1 7 @ 1.300 log @Replace struct cairo_surface_backend with cairo_surface_backend_t @ text @d8 5 @ 1.299 log @ * src/cairo_xlib_surface.c: * src/cairo_glitz_surface.c: * src/cairo_ft_font.c: * src/cairo_font.c: * src/cairoint.h: * src/cairo.h: Replace all structure tags to have _ prefix. struct cairo_foo -> struct _cairo_foo Also, prefer cairo_foo_t over struct _cairo_foo in .c files. @ text @d1 5 @ 1.298 log @ * src/cairo.c (cairo_sane_state): A NULL cairo_t * is not sane. * cairo.pc.in (Libs,Cflags): Add freetype flags so that things work with freetype in a non-standard location, (a little extra work here since freetype doesn't use pkg-config). * TODO: Add several items culled from recent mailing list discussions. * BUGS: Add bugs on cache locking and surface pattern scaling. @ text @d1 11 @ 1.297 log @2005-01-11 Keith Packard * src/cairo_matrix.c: (_cairo_matrix_compute_scale_factors): Scale factors shouldn't include mirroring. * src/cairo_wideint.c: (_cairo_int32x32_64_mul), (_cairo_int64x64_128_mul): * src/cairo_wideint.h: int32x32_64_mul and int64x64_128_mul are different from their unsigned compatriots @ text @d1 16 @ 1.296 log @renamed CAIRO_COLOR_DEFAULT to CAIRO_COLOR_WHITE @ text @d1 11 @ 1.295 log @reverted accidental change @ text @d3 5 @ 1.294 log @changed default paint color to opaque black @ text @d3 5 @ 1.293 log @2005-01-11 Keith Packard * cairo.pc.in: * configure.in: * src/Makefile.am: Fix math library detection to use autotools helper * src/cairo_cache.c: (_cache_sane_state), (_cairo_cache_lookup): Remove cache memory usage assertions as single objects can be larger than the cache size * src/cairo_ft_font.c: (_cairo_ft_font_compute_transform), (_cairo_ft_font_install_transform), (_install_font_scale), (_cairo_ft_font_font_extents), (_cairo_ft_font_glyph_extents), (_cairo_ft_font_create_glyph): Decompose font matrix transformations into a couple of helper routines. Return all metrics in font space. * src/cairo_glitz_surface.c: (_glitz_format): Eliminate compiler warning * src/cairo_gstate.c: (_cairo_gstate_current_font_extents), (_cairo_gstate_text_to_glyphs), (_cairo_gstate_glyph_extents): Expect glyph metrics to be in font space. Compute text extents by fetching one glyph metric at a time, transforming to user space and computing the overall bounding box. * src/cairo_matrix.c: (_cairo_matrix_set_rotate), (_cairo_matrix_compute_scale_factors): use 'sincos' where available. Scale factors now ensure the non-scale transform is area preserving. Scale factors requires another parameter to mark the fixed axis. * src/cairo_wideint.c: * src/cairo_wideint.h: Change license to LGPL Mark int32x32_64_mul as broken (which it still is) * src/cairo_xlib_surface.c: (_cairo_xlib_surface_show_glyphs32), (_cairo_xlib_surface_show_glyphs16), (_cairo_xlib_surface_show_glyphs8): Ensure each glyph is located as close to the specified position as possible * src/cairoint.h: interface change to _cairo_matrix_compute_scale_factors @ text @d1 7 @ 1.292 log @2005-01-07 Kristian Høgsberg * configure.in: Add -lz to CAIRO_LIBS when compiling the PDF backend. * src/cairo_pdf_surface.c (emit_image_data): Don't use compressBound, since it's only available in zlib 1.2 and newer. @ text @d1 48 @ 1.291 log @ * TODO: Add Owen's new equation to fix clipping: ((src Op dest) In clip) Add (dest Out clip) @ text @d1 8 @ 1.290 log @ Added cairo_show_surface_mask and note about clipping problems. @ text @d1 5 @ 1.289 log @ * TODO: Added some TODO items from mailing list traffic. @ text @d4 1 @ 1.288 log @2005-01-05 Kristian Høgsberg * src/cairo_pdf_surface.c: (emit_image_data): Implement image compression (taken from cairo_ps_surface.c). @ text @d1 4 @ 1.287 log @2005-01-05 Kristian Høgsberg * src/cairo_pdf_surface.c: New PDF backend. * src/cairo.h: Add PDF surface constructors. * src/cairo_array.c: New file - generic array implementation. * src/cairoint.h: Add cairo_array prototypes. * src/Makefile.am (libcairo_la_SOURCES): Add cairo_array.c and cairo_pdf_surface.c. @ text @d3 3 d10 2 a11 1 * src/Makefile.am (libcairo_la_SOURCES): Add cairo_array.c and cairo_pdf_surface.c. @ 1.286 log @ * src/cairo_traps.c: Remove unused CAIRO_TRAPS_GROWTH_INC. * src/cairo_spline.c (_cairo_spline_add_point): * src/cairo_polygon.c (_cairo_polygon_add_edge): Resize arrays by doubling rather than by linear increments. * BUGS: Add new bug exposed centi_unfinished.svg. @ text @d1 8 @ 1.285 log @ * src/cairoint.h: * src/cairo_wideint.h: Rename __internal_linkage to cairo_private and move it to the beginning of the line for function declarations. Also, drop unneeded "extern" from function declarations. @ text @d1 10 @ 1.284 log @ With thanks to Kristian Høgsberg : * src/cairoint.h: * src/cairo_wideint.h: Tag a few private functions/data that were missing __internal_linkage. * src/cairo_xlib_surface.c: * src/cairo_ft_font.c: * src/cairo_font.c: Mark cache backends as static. @ text @d3 8 @ 1.283 log @ * autogen.sh (LANG): Change "head -1" to more standard "head -n 1". @ text @d1 11 @ 1.282 log @2004-12-20 Alexander Larsson * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size): Fix bug in earlier change. @ text @d1 5 @ 1.281 log @ * src/cairoint.h: Re-enabled __internal_linkage for all internal functions. Now avoid the warning by moving the * from the return type after the __internal_linkage macro. It looks awaful, but it keeps the compiler quiet. @ text @d1 5 @ 1.280 log @2004-12-20 Alexander Larsson * src/cairoint.h: Add _cairo_gstate_restore_external_state, _cairo_fixed_integer_floor and _cairo_fixed_integer_ceil. * src/cairo.c: (cairo_restore): Call _cairo_gstate_restore_external_state on restore. * src/cairo_cache.c: (_cache_lookup): Fix cache-misses. * src/cairo_fixed.c: (_cairo_fixed_integer_floor), (_cairo_fixed_integer_ceil): Implement floor and ceil * src/cairo_gstate.c: (_cairo_gstate_restore_external_state): Restore surface clip region on restroe. (_calculate_region_for_intermediate_clip_surface), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Create intermediate clip surfaces of the minimal required size. @ text @d1 7 @ 1.279 log @ * AUTHORS: Add Alexander Larsson to AUTHORS list. @ text @d1 26 @ 1.278 log @ * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size): Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. Thanks to Alexander Larsson . @ text @d3 2 @ 1.277 log @ * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size): Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. @ text @d10 1 @ 1.276 log @ * test/text_cache_crash.c (draw): Disabled test that was killing my machine for some reason. Scary. @ text @d3 8 @ 1.275 log @ * src/cairo_image_surface.c (_cairo_image_abstract_surface_create_pattern): Change return value from cairo_status_t to cairo_int_status_t to match definition in cairo_surface_backend_t. @ text @d3 5 @ 1.274 log @ * BUGS: Add bug about gcc 3.4 warning: '__visibility__' attribute ignored on non-class types. * src/cairoint.h: Remove __internal_linkage macro from all functions returning pointers to shut up warning from gcc 3.4. @ text @d3 5 @ 1.273 log @ * test/cairo_test.c (cairo_test): Fix to find reference images in local directory when run directly, (rather than by "make check"). @ text @d1 8 @ 1.272 log @ * BUGS: Add bug about invalidating font caches. @ text @d3 3 @ 1.271 log @normalizing ChangeLog headers @ text @d1 4 @ 1.270 log @Revert clipping changes @ text @d610 1 a610 1 2004-07-24 Jamey Sharp d2193 1 a2193 1 2003-10-23 Graydon Hoare d2443 1 a2443 1 2003-09-05 Keith Packard d2499 1 a2499 1 2003-09-04 Keith Packard @ 1.269 log @ * COPYING: Fix typo: LPGL->LGPL. @ text @d1 6 @ 1.268 log @ * src/cairo_ps_surface.c (cairo_ps_surface_create): Remove unintentional copyright statement from user-generated output image. @ text @d3 2 @ 1.267 log @ * test/Makefile.am (XFAIL_TESTS): Note that text_cache_crash is expected to fail. * test/text_cache_crash.c (draw): Add test to demonstrate bug when item is too big for cache. * src/cairo_cache.c (_cache_sane_state): Really remove that refcount assertion this time. @ text @d1 6 @ 1.266 log @ * test/text_cache_crash.c: Add note that bug has been fixed. (main): Instrumentation code for testing cache destruction. * test/cairo_test.c (cairo_test): Support tests that produce no output, (don't check image if (width,height) == (0,0)). * src/cairoint.h: Add #include here rather than in multiple .c files. * src/cairo_cache.c: Add const qualifier to static cache_arrangements table. (_cache_sane_state): Remove refcount assertion as it it false during the cairo_cache_destroy. (_cache_sane_state): #include moved up to cairoint.h (_entry_destroy): Fix bug in assertion (used_memory >= entry->memory), not >. (_cairo_cache_destroy): Fix timing of refcount decrement so that the destroy function actually works. @ text @d3 9 @ 1.265 log @ * src/cairo_gstate.c (_cairo_gstate_select_font): Don't destroy a NULL font. @ text @d1 21 @ 1.264 log @ * src/cairo_gstate.c (_cairo_gstate_select_font): Unconditionally destroy the old font, (otherwise, if the same font was selected twice in a row, a reference was lost to it, leading to assertion failures). @ text @d1 5 @ 1.263 log @ * src/cairo_gdip_font.cpp: * src/cairo_gdip_surface.cpp: Added GDI+ backend to Cairo. @ text @d1 7 @ 1.262 log @ * src/cairo_font.c (_font_cache_hash, _font_cache_create_entry): * src/cairo_ft_font.c (_cairo_ft_font_text_to_glyphs): Move declarations above statements to satisfy pre-C99 compilers. Thanks to Michael Johnson . @ text @d1 4 @ 1.261 log @Added BUG entry @ text @d1 7 @ 1.260 log @ * test/text_rotate.c (NUM_TEXT): Increase size and increase number of different angles drawn. (draw): Fix broken usage of extents (missing bearings), add stroked bounding box (shifted out by 0.5 units to just abut the text), and increase position adjustments to make room for this larger box. @ text @d9 2 @ 1.259 log @Fix the bit that patch --reverse failed to do. "cvs diff -r1.256 ChangeLog" is just my change now. @ text @d1 9 @ 1.258 log @Restore the huge bit of ChangeLog I just deleted, then add my 6 lines. @ text @d2109 128 a2236 1 (_cairo_font_text_e @ 1.257 log @2004-11-08 Dave Beckett * configure.in: require libpixman 0.1.2 since src/cairo_glitz_surface.c depends on two new functions of 0.1.2 - pixman_format_get_masks and pixman_image_get_format @ text @d615 219 a833 1 * src/cairo_gstate.c (_cairo_gstate_creat d2109 1 a2109 128 (_cairo_font_text_extents, _cairo_font_glyph_extents) (_cairo_font_show_text, _cairo_font_show_glyphs) (_cairo_font_text_path, _cairo_font_glyph_path) (_cairo_font_font_extents): These internal functions can never be called with a NULL font. 2003-10-23 Graydon Hoare * src/cairo_ft_font.c: New file. * src/Makefile.am: Add cairo_ft_font.c * src/cairo.c: * src/cairo.h: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Change to virtual font interface. 2003-10-23 Carl Worth * TODO: Added notes on some missing functions. Update PostScript comparison with respect ot new arc functions. 2003-10-23 Carl Worth * Many files: Fixed Copyright statements to read "University of Southern California" rather than "USC, Information Sciences Institute" as the university is the actual corporation. 2003-10-11 Carl Worth * src/cairo-xlib.h: Add extern "C" stuff. (Thanks to Soory Kuloor for the reminder). 2003-10-09 Carl Worth * src/cairo_font.c: Stub out NULL_POINTER errors as CAIRO_STATUS_SUCCESS so that drawing to off-screen images still works even though text does not yet. 2003-10-04 Carl Worth * src/cairo_hull.c (_cairo_hull_compute): Add cairo_hull.c to compute a convex hull, (using Graham scan algorithm). * src/cairo_pen.c (_cairo_pen_add_points): Generate convex hull of pen after adding new points. * src/cairoint.h: Rename pen->vertex to pen->vertices * Replaced "pt" with "point" in about a zillion places. * src/cairo.c (cairo_destroy): Fix to continue with destroy even in the face of non-zero status. (cairo_set_target_surface): (cairo_set_target_image): Don't do anything even if cr->status is CAIRO_STATUS_NO_TARGET_SURFACE. (cairo_status_string): Report "" rather than en empty string. 2003-10-01 Carl Worth * src/cairo_gstate.c (_cairo_gstate_init_copy): Don't choke if asked to copy a gstate with a NULL font. * src/cairo_font.c (_cairo_font_init): (_cairo_font_init_copy): (_cairo_font_copy): (_cairo_font_fini): (_cairo_font_select): (_cairo_font_scale): (_cairo_font_transform): (_cairo_font_text_extents): (_cairo_font_show_text): Return immediately if passed a NULL pointer. 2003-09-30 Jamey Sharp * src/Makefile.am, src/cairo.c, src/cairo.h, src/cairo_font.c, src/cairo_gstate.c, src/cairo_surface.c, src/cairoint.h: Virtualized font and surface backends. All Xlib/Xft calls are in cairo_xlib_surface.c/cairo-xlib.h now. Resolves a TODO item. 2003-09-30 Carl Worth * src/cairo.c (cairo_copy): Don't copy a gstate if src->status != 0. * src/cairo_gstate.c (_cairo_gstate_init_copy): Be careful to preserve gstate->next. (_cairo_gstate_copy): New function to support cairo_copy. * src/cairo.c (cairo_copy): Fixed horribly botched implementation of cairo_copy. * configure.in: Bumped version to 0.1.7 to indicate change in cairo_copy. * src/cairo.c (cairo_copy): Changed cairo_copy to copy graphics state from one cairo_t to another rather than allocating a new cairo_t. * src/cairo_surface.c (cairo_surface_destroy): (cairo_surface_create_similar_solid): Fix to delay XFreePixmap until cairo_surface_destroy. 2003-09-29 Carl Worth * TODO: Remove arc notes since arcs are done. * src/cairo_surface.c (_cairo_surface_composite): Fix bug (IcImageGetHeight instead of IcImageGetWidth) from Graydon Hoare . 2003-09-29 Carl Worth * configure.in (CAIRO_VERSION): Bumpred version to 0.1.6 to indicate new cairo_arc and cairo_arc_negative. * src/cairo_gstate.c (_arc_error_normalized): (_arc_max_angle_for_tolerance_normalized): (_cairo_gstate_arc_segments_needed): (_cairo_gstate_arc_segment): (_cairo_gstate_arc_dir): (_cairo_gstate_arc): (_cairo_gstate_arc_negative): Several new functions to implement arc support. * src/cairo.h: Added cairo_arc and cairo_arc_negative. * src/cairo.c (cairo_arc): @ 1.256 log @2004-11-05 Graydon Hoare * src/cairo_ft_font.c: Change the signs of a variety of metrics, which were backwards. * src/cairo_gstate.c (_cairo_gstate_clip): Return early if we found a rectangular clip at all, not just in error case. * src/cairo_xlib_surface.c (_xlib_glyphset_cache_create_entry): Give render glyphset entry the negative bbox offsets it wants, not the bearings. @ text @d1 6 d615 1 a615 219 * src/cairo_gstate.c (_cairo_gstate_create_pattern): Get solid color from color stop components. * src/cairoint.h: Removed cairo color from color stop. * src/cairo_pattern.c: Added MULTIPLY_COLORCOMP macro. (cairo_pattern_add_color_stop): Do not pre-multiply stop color. (_cairo_pattern_calc_color_at_pixel): Multiply with alpha. 2004-05-28 Carl Worth * These two fixes are from David Reveman : * src/cairo_surface.c (_cairo_surface_create_similar_scratch) (_cairo_surface_create_similar_solid): Move NULL test from create_similar_scratch to create_similar_solid. * src/cairo_font.c (_cairo_glyph_surface_init): Fix for when surface->backend != image->backend, but the backend does use images for similar surfaces. 2004-05-28 Keith Packard * configure.in: * src/Makefile.am: Add WARN_CFLAGS, autodetection for 64/128 bit ints and cairo_wideint.[ch] * src/cairo_gstate.c: (_cairo_gstate_show_glyphs): Check status return from _cairo_gstate_glyph_extents * src/cairo_pattern.c: (_cairo_image_data_set_radial), (_cairo_pattern_get_image): * src/cairo_png_surface.c: (_cairo_png_surface_copy_page): * src/cairo_surface.c: (_cairo_surface_composite): Quiet compiler warnings about uninitialized variables * src/cairo_traps.c: (_det16_32), (_det32_64), (_fixed_16_16_to_fixed_32_32), (_line_segs_intersect_ceil): Switch to alternate exact line intersection code. * src/cairo_wideint.c: (_cairo_uint64_divrem), (_cairo_uint32_to_uint64), (_cairo_int32_to_int64), (_cairo_uint32s_to_uint64), (_cairo_uint64_add), (_cairo_uint64_sub), (_cairo_uint32x32_64_mul), (_cairo_uint64_mul), (_cairo_uint64_lsl), (_cairo_uint64_rsl), (_cairo_uint64_rsa), (_cairo_uint64_lt), (_cairo_uint64_eq), (_cairo_int64_lt), (_cairo_uint64_not), (_cairo_uint64_negate), (_cairo_leading_zeros32), (_cairo_uint64x32_normalized_divrem), (_cairo_int64_divrem), (_cairo_uint128_divrem), (_cairo_uint32_to_uint128), (_cairo_int32_to_int128), (_cairo_uint64_to_uint128), (_cairo_int64_to_int128), (_cairo_uint128_add), (_cairo_uint128_sub), (uint64_lo), (uint64_hi), (uint64_shift32), (_cairo_uint64x64_128_mul), (_cairo_uint128_mul), (_cairo_uint128_lsl), (_cairo_uint128_rsl), (_cairo_uint128_rsa), (_cairo_uint128_lt), (_cairo_int128_lt), (_cairo_uint128_eq), (_cairo_uint128x64_normalized_divrem), (_cairo_leading_zeros64), (_cairo_int128_negate), (_cairo_int128_not), (_cairo_int128_divrem): * src/cairo_wideint.h: Add 64/128-bit wide integer arithmetic. * src/cairoint.h: Switch to stdint.h types (and new wide types). 2004-05-24 David Reveman * src/cairo.c (cairo_restore): Moved CAIRO_CHECK_SANITY below declarations. (cairo_current_font): Moved CAIRO_CHECK_SANITY below declarations. * src/cairoint.h: Added cairo_glyph_size_t, cairo_glyph_surface_t, cairo_glyph_surface_node_t and cairo_glyph_cache_t. Added font backend functions text_bbox, glyph_bbox and create_glyph. Added source offset parameter to show_text and show_glyphs. Added drawable parameter to backend function create_similar. cairo_font_t now contains a glyph_cache pointer. Added _cairo_font_text_bbox, _cairo_font_glyph_bbox, _cairo_font_lookup_glyph and _cairo_surface_create_similar_scratch. * src/cairo_xlib_surface.c (_cairo_xlib_surface_create_similar): (_cairo_xlib_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_xcb_surface.c (_cairo_xcb_surface_create_similar): (_cairo_xcb_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_surface.c: Added _cairo_surface_create_similar_scratch. Added drawable parameter to backend function create_similar. * src/cairo_ps_surface.c (_cairo_ps_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_png_surface.c (_cairo_png_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_image_surface.c (_cairo_image_surface_create_similar): Added drawable parameter to backend function create_similar. * src/cairo_gstate.c (_cairo_gstate_show_text): Use new text bounding box function. Pass pattern source offset to show_text. (_cairo_gstate_show_glyphs): Use new text bounding box function. Pass pattern source offset to show_glyps. * src/cairo_gl_surface.c (_cairo_gl_surface_create_similar): Added drawable parameter to backend function create_similar. Use glitz's new create similar interface. Support for read-only surfaces. (_cairo_gl_surface_clone_similar): Added drawable parameter to backend function create_similar. * src/cairo_ft_font.c: Use new glyph caching system. Added bounding box font backend functions. * src/cairo_font.c: Added glyph caching system. Added bounding box font backend functions. (_cairo_font_init): Create new glyph cache. (_cairo_font_copy): Take a reference to other fonts glyph cache. (_cairo_font_show_text): (_cairo_font_show_glyphs): Handle source offset. (cairo_font_destroy): Destroy glyph cache. 2004-05-20 Graydon Hoare * configure.in: Add sanity checking feature configury. * src/cairo-features.h.in: Add sanity checking feature. * src/cairo.c: Add sanity checking. * src/cairoint.h: Add prototypes. * src/cairo_fixed.c (_cairo_fixed_is_integer): (_cairo_fixed_integer_part): New functions. * src/cairo_matrix.c (_cairo_matrix_is_integer_translation): New function. * src/cairo_gstate.c (extract_transformed_rectangle): Use fixed functions. (_cairo_gstate_clip): Arithmetic fixes. (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Corrections to clipping. * src/cairo_xlib_surface.c (_cairo_xlib_surface_composite): Add XCopyArea fast path. (_cairo_xlib_surface_set_clip_region): Drive clip to drawable. 2004-05-17 Carl Worth * src/cairo.c (cairo_show_text): Do nothing when passed a NULL string. 2004-05-11 Øyvind Kolås * src/cairoint.h : changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients easier. 2004-05-11 David Reveman * src/cairo_pattern.c (_cairo_pattern_get_image): Removed pattern_offset. * src/cairo_surface.c (_cairo_surface_create_pattern): Removed pattern_offset. * src/cairo_gstate.c: Removed pattern_offset. * src/cairoint.h: Removed pattern_offset. 2004-05-11 Carl Worth * configure.in: Increment CAIRO_VERSION to 0.1.23. * NEWS: Added notes for snapshot 0.1.23. * RELEASING: Add reminder to mention incompatible API changes in NEWS. Re-order steps to avoid clobbering pre-existing tar files. 2004-05-11 Carl Worth * BUGS: Several people have reported that cairo_clip is not working right now. And it's always been slow. 2004-05-11 David Reveman * configure.in: Require glitz 0.1.2. * src/cairo_gl_surface.c: Added opacity attribute. Fixed broken CAIRO_GL_COMPOSITE_TRAPEZOIDS_SUPPORT macro. (_cairo_gl_surface_composite_trapezoids): Use polygon opacity. (_cairo_gl_surface_create_pattern): Added surface pattern support. (_cairo_gl_surface_create): Initialize opacity to 0xffff. 2004-05-07 Carl Worth * src/cairo_ft_font.c (_utf8_to_ucs4): Bail on NULL utf8 string. * src/cairo_spline.c (_cairo_spline_add_point): Don't add two consecutive, identical points when decomposing the spline, (which was leading to an infinte loop in the stroke algorithm when it found a slope of (0,0)). 2004-05-04 Carl Worth * src/cairo_png_surface.c (cairo_png_surface_create): Move all libpng-related code into copy_page. (unpremultiply_data): Add missing unpremultiply step. (_cairo_png_surface_copy_page): Move PNG output to copy_page. Add support for A8 and A1 images. Remove time from header (we may want to add it again later, but for now it messes up my test suite). (_cairo_png_surface_destroy): Call copy_page if it hasn't been called already. (_cairo_png_surface_show_page): Add implementation. (_cairo_png_surface_copy_page): Don't close a file we didn't open. @ 1.255 log @ * test/text_cache_crash.c: Add new test demonstrating assertion failure in cairo_cache_lookup. * test/text_rotate.c: Add new test showing problems with rotated text. @ text @d1 10 @ 1.254 log @Tracking changes to glitz @ text @d1 8 @ 1.253 log @Fixed return status of _cairo_gstate_clip @ text @d3 11 @ 1.252 log @remove cairo_ft_font_destroy() prototype. @ text @d1 4 @ 1.251 log @ * Makefile.am (release-verify-newer): Abort release-publish if there's already a published tar file with the current version. (release-publish): Add code to update the LATEST-package-version file. @ text @d1 4 @ 1.250 log @ Add note on reverted tessellation regression bugs. @ text @d1 7 @ 1.249 log @ * configure.in: Increment CAIRO_VERSION to 0.2.0. * NEWS: Add notes for snapshot 0.2.0. @ text @d6 1 @ 1.248 log @ * RELEASING: Update release instructions for new release-publish target. * Makefile.am: Add release-check and release-publish targets copied from libpixman. @ text @d3 4 @ 1.247 log @ * test/Makefile.am (AM_LDFLAGS): Fix to always link tests against locally built library, not installed version. @ text @d3 6 @ 1.246 log @ * test/fill_rule.c: Add new test for cairo_set_fill_rule. Also demonstrate some of the current tessellation bugs with the version of the code that is in CVS. @ text @d3 3 @ 1.245 log @ * test/cairo_test.c (cairo_test): Find reference images in so that make distcheck will work. * test/Makefile.am (cairo_test_lib): Add header files so that make distcheck is happy. (INCLUDES): Add -D_GNU_SOURCE for asprintf. Someone motivated may want to find a more portable approach. (EXTRA_DIST): Add reference images for the sake of make distcheck. @ text @d1 6 @ 1.244 log @ * configure.in: Shell doesn't like whitespace around assignment operator. @ text @d3 9 @ 1.243 log @ * test/README: Add paragraph on new features. @ text @d3 3 @ 1.242 log @ * test/.cvsignore: * test/Makefile.am: * test/README: * test/cairo_test.c: * test/cairo_test.h: * test/line_width-ref.png: * test/line_width.c: * test/move_to_show_surface-ref.png: * test/move_to_show_surface.c: * test/read_png.c: * test/read_png.h: * test/write_png.c: * test/write_png.h: * test/xmalloc.c: * test/xmalloc.h: Add initial regression test suite. * configure.in: Don't AC_SUBST a dozen different FOO_CFLAGS and FOO_LIBS. Instead, incrementally build up just CAIRO_CFLAGS and CAIRO_LIBS. * cairo.pc.in (Libs): Don't list flags that should get picked up via dependency information through Requires. * BUGS (font-size): Add description of move_to_show_surface. @ text @d3 2 @ 1.241 log @ * src/cairo_png_surface.c: * src/cairo.c: * src/cairo.h: * src/cairo_cache.c: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_ft_font.c: * src/cairo_glitz_surface.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pattern.c: * src/cairo_pen.c: * src/cairo_png_surface.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_traps.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Convert all files to utf-8. Add copyright information to cairo_png_surface.c. @ text @d1 27 @ 1.240 log @ * src/cairo_hull.c (_cairo_hull_vertex_compare): Fix comparison so that it results in a stable sort. This should fix some rendering bugs due to broken pens. @ text @d3 31 @ 1.239 log @ * TODO: Add items on custom caps and getting access to hidden image data @ text @d3 4 @ 1.238 log @Makefile.am @ text @d3 3 @ 1.237 log @ * autogen.sh: automake 1.4 seems to be sufficient. Don't require 1.6. @ text @d1 5 @ 1.236 log @2004-10-12 Keith Packard * src/cairo_traps.c: (_cairo_traps_init), (_cairo_traps_add_trap), (_cairo_traps_extents): * src/cairoint.h: Compute extents of cairo_traps_t on the fly using approximate method which is correct given the way cairo generates trapezoids. * src/cairo_xlib_surface.c: (_cairo_xlib_surface_create_similar): Avoid zero-dimensioned pixmaps @ text @d1 5 @ 1.235 log @ * src/cairo_pen.c: Fix a few typos in pen vertex math description. @ text @d1 11 @ 1.234 log @2004-10-12 Keith Packard reviewed by: Carl Worth * src/cairo_pen.c: (_cairo_pen_init), (_cairo_pen_vertices_needed): Adapt function from Walter Brisken to compute pen ellipse major axis length and use that to compute the required number of pen vertices. @ text @d1 4 @ 1.233 log @2004-10-07 Graydon Hoare * src/Makefile.am (libcairo_la_SOURCES): Add cairo_cache.c * src/cairo.c (cairo_text_extents) (cairo_show_text) (cairo_text_path): Rewrite using temporary glyph arrays * src/cairo_cache.c: New file. * src/cairo_font.c (_cairo_glyph_cache_create) (_cairo_glyph_cache_destroy) (_cairo_glyph_cache_reference) (_cairo_glyph_cache_pop_last) (_cairo_glyph_surface_init) (_cairo_font_lookup_glyph): Remove old glyph cache code. (_cairo_font_scale) (_cairo_font_transform): Remove font-transforming code. (_cairo_font_text_extents) (_cairo_font_text_bbox) (_cairo_font_show_text) (_cairo_font_text_path): Remove text-API code. (_cairo_font_cache_key_t): New structure type. (_font_cache_hash) (_font_cache_keys_equal) (_font_cache_create_entry) (_font_cache_destroy_entry) (_font_cache_destroy_cache): New font cache code. (_global_font_cache) (_lock_global_font_cache) (_unlock_global_font_cache) (_get_global_font_cache): New global font cache. (_cairo_font_text_to_glyphs) (_cairo_glyph_cache_hash) (_cairo_glyph_cache_keys_equal) (_image_glyph_cache_create_entry) (_image_glyph_cache_destroy_entry) (_image_glyph_cache_destroy_cache): New glyph cache code. (_global_image_glyph_cache) (_cairo_lock_global_image_glyph_cache) (_cairo_unlock_global_image_glyph_cache) (_cairo_get_global_image_glyph_cache): New global glyph cache. (_cairo_font_cache_backend): New structure. (_cairo_image_cache_backend): Likewise. (_cairo_font_create): Reimplement in terms of font cache. (_cairo_font_init): Remove matrix and glyph cache related code. (_cairo_font_copy): Likewise. (_cairo_font_show_glyphs): Delegate to surface when possible. (_cairo_font_glyph_extents) (_cairo_font_glyph_bbox) (_cairo_font_glyph_path) (_cairo_font_font_extents) (_cairo_font_show_glyphs): Rename to as cairo_unscaled_font_XXX, and add scale parameter. * src/cairo_ft_font.c (ft_cache_t) (ft_font_val_t) (cairo_ft_cache_key_t) (cairo_ft_cache_entry_t): New structure types. (_create_from_face) (_reference_font_val) (_destroy_font_val) (_create_from_library_and_pattern): New functions. (_ft_font_cache_hash) (_ft_font_cache_keys_equal) (_ft_font_cache_create_entry) (_ft_font_cache_destroy_entry) (_ft_font_cache_destroy_cache): New ft font cache code. (_global_ft_cache) (_lock_global_ft_cache) (_unlock_global_ft_cache) (_get_global_ft_cache): New global ft font cache. (_ft_font_cache_backend): New structure. (_cairo_ft_font_create): Rewrite to use cache. (_cairo_ft_font_destroy): Likewise. (_cairo_ft_font_copy): Remove. (_install_font_matrix): Rename as _install_font_scale. (_utf8_to_glyphs): Rename as _cairo_ft_font_text_to_glyphs. (_cairo_ft_font_text_to_glyphs): Use cache for metrics. (_cairo_ft_font_extents): Accept size, use scaled metrics. (_cairo_ft_font_glyph_extents) (_cairo_ft_font_glyph_bbox) (_cairo_ft_font_show_glyphs) (_cairo_ft_font_glyph_path): Modify to use size, cache. (_cairo_ft_font_text_extents) (_cairo_ft_font_text_bbox) (_cairo_ft_font_show_text) (_cairo_ft_font_text_path): Remove text-API code. (cairo_ft_font_create) (cairo_ft_font_create_for_ft_face) (cairo_ft_font_face) (cairo_ft_font_pattern): Rewrite using ft_font_val_t. * src/cairo_gstate.c (cairo_gstate_init_copy): Just reference font. (_cairo_gstate_fini): Finalize font matrix. (_cairo_gstate_default_matrix): Initialize font matrix. (_cairo_gstate_clip): Re-enable clipping rectangle. (_cairo_gstate_select_font) (_cairo_gstate_set_font): Set font matrix to identity. (_cairo_gstate_scale_font): Scale font matrix, not font. (_cairo_gstate_transform_font): Transform font matrix, not font. (_cairo_gstate_set_font_transform): Install as font matrix, not in font. (_build_font_scale): New helper function. (_cairo_gstate_text_to_glyphs): New function. (_cairo_gstate_current_font_extents) (_cairo_gstate_glyph_extents) (_cairo_gstate_show_glyphs) (_cairo_gstate_glyph_path): Rewrite using font matrix and size. (_cairo_gstate_text_path (_cairo_gstate_text_extents) (_cairo_gstate_show_text): Remove text-API code. * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Minor bug fix. (_cairo_xlib_surface_show_glyphs): New function. (_cairo_xlib_surface_backend): Add reference to new function. (glyphset_cache_t) (glyphset_cache_entry_t): New structure types. (_next_xlib_glyph): New helper function. (_xlib_glyphset_cache_create_value) (_xlib_glyphset_cache_destroy_cache) (_xlib_glyphset_cache_destroy_value) (_xlib_glyphset_cache_backend): New glyphset cache code. (_xlib_glyphset_caches) (_lock_xlib_glyphset_caches) (_unlock_xlib_glyphset_caches) (_get_glyphset_cache): New global glyphset cache. * src/cairo_glitz_surface.c (cairo_glitz_surface_backend): Add NULL entry for show_glyphs. * src/cairo_image_surface.c (cairo_image_surface_backend): Add NULL entry for show_glyphs. * src/cairo_ps_surface.c (cairo_ps_surface_backend): Add NULL entry for show_glyphs. * src/cairo_png_surface.c (cairo_png_surface_backend): Add NULL entry for show_glyphs. * src/cairo_xcb_surface.c (cairo_xcb_surface_backend): Add NULL entry for show_glyphs. * src/cairoint.h (cairo_cache_backend_t): New structure type. (cairo_cache_entry_base_t) (cairo_cache_arrangement_t) (cairo_cache_t): New structure types. (_cairo_cache_init) (_cairo_cache_reference) (_cairo_cache_destroy) (_cairo_cache_lookup) (_cairo_hash_string): New cache functions. (CAIRO_IMAGE_GLYPH_CACHE_MEMORY_DEFAULT) (CAIRO_XLIB_GLYPH_CACHE_MEMORY_DEFAULT) (CAIRO_FONT_CACHE_NUM_FONTS_DEFAULT) (CAIRO_FT_CACHE_NUM_FONTS_DEFAULT): New constants. (cairo_font_scale_t) (cairo_glyph_cache_key_t) (cairo_image_glyph_cache_entry_t): New structure types. (_cairo_lock_global_image_glyph_cache) (_cairo_unlock_global_image_glyph_cache) (_cairo_get_global_image_glyph_cache) (_cairo_glyph_cache_hash) (_cairo_glyph_cache_keys_equal): New functions for glyph caches. (cairo_font_backend_t): Remove text-API calls, add scale params, remove copy call. (cairo_surface_backend_t): Add show_glyphs entry. (cairo_glyph_surface_t) (cairo_glyph_surface_node_t): Remove old glyph cache structures. (cairo_unscaled_font_t): New structure type. (cairo_font): Remove glyph cache member, add pointer to unscaled. (cairo_gstate): Add font_matrix member, change to hold unscaled. (_cairo_gstate_set_font_transform) (_cairo_gstate_current_font_transform) (_cairo_gstate_text_to_glyphs): New functions. (_cairo_gstate_text_path (_cairo_gstate_text_extents) (_cairo_gstate_show_text) (_cairo_font_text_extents) (_cairo_font_text_bbox) (_cairo_font_show_text) (_cairo_font_text_path): Remove text-API code. (_cairo_font_glyph_extents) (_cairo_font_glyph_bbox) (_cairo_font_glyph_path) (_cairo_font_font_extents) (_cairo_font_show_glyphs): Add scale parameter. @ text @d1 9 @ 1.232 log @Do not use VBOs and PBOs for immediate mode drawing @ text @d1 190 @ 1.231 log @2004-09-30 Jamey Sharp * src/cairo_xcb_surface.c: Update for minor XCB API change. @ text @d1 7 @ 1.230 log @Important fixes to glitz format handling @ text @d1 5 @ 1.229 log @Improved format handling, pixel transfers and gradients @ text @d1 11 @ 1.228 log @Get pixel masks from pixman image format @ text @d1 8 @ 1.227 log @cairo_surface_t pointer to cairo_surface_set_repeat @ text @d8 2 @ 1.226 log @Pickup repeat setting when cloning surface @ text @d5 3 @ 1.225 log @ * autogen.sh: Require automake 1.6 rather than 1.7 since it seems to work just fine. @ text @d1 5 @ 1.224 log @Tracking color stop coordinate changes to glitz's gradient filters @ text @d1 5 @ 1.223 log @Replaced the gl backend with the new glitz backend @ text @d3 5 @ 1.222 log @ * COPYING: * COPYING-MPL-1.1: * COPYING-LGPL-2.1: * src/cairo-features.h.in: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Add the MPL as a new license option, in addition to the LGPL. @ text @d1 18 @ 1.221 log @ * COPYING: * COPYING-MPL-1.1: * COPYING-LGPL-2.1: * src/cairo-features.h.in: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Add the MPL as a new license option, in addition to the LGPL. @ text @d5 25 a29 3 * COPYING-LGPL-2.1: Add the MPL as a new license option, in addition to the LGPL. @ 1.220 log @ * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Make a copy of the region since pixman is currently taking ownership of it (ugh). Thanks to Vladimir Vukicevic and Peter Dennis Bartok . @ text @d1 8 @ 1.219 log @ * autogen.sh (LANG): Explicitly set LANG=C to fix the awk string->number conversion for user with locales that don't match ASCII digit conventions. @ text @d3 6 @ 1.218 log @ * src/cairo_gstate.c (extract_transformed_rectangle): Temporarily disable rectangle-based clipping optimization as it's not working (see cairo_snippets/xxx_clip_rectangle for a test case). @ text @d1 6 @ 1.217 log @ Fix to explicitly refer to GNU Lesser Public License 2.1 rather than the Library Public License version 2 or 'any later version' @ text @d1 6 @ 1.216 log @ * COPYING: * src/cairo-features.h.in: * src/cairo.c: * src/cairo.h: * src/cairo_color.c: * src/cairo_fixed.c: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_hull.c: * src/cairo_image_surface.c: * src/cairo_matrix.c: * src/cairo_path.c: * src/cairo_path_bounds.c: * src/cairo_path_fill.c: * src/cairo_path_stroke.c: * src/cairo_pen.c: * src/cairo_polygon.c: * src/cairo_ps_surface.c: * src/cairo_slope.c: * src/cairo_spline.c: * src/cairo_surface.c: * src/cairo_xcb_surface.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Change from MIT license to LGPL. @ text @d27 2 @ 1.215 log @ * BUGS: Note that cairo_clip is fixed now. @ text @d3 30 @ 1.214 log @s/ct/cr/ @ text @d1 4 @ 1.213 log @2004-07-24 Jamey Sharp * src/cairo_xcb_surface.c: Updating for XCB API change around iterators. @ text @d1 5 @ 1.212 log @Tracking changes to glitz @ text @d1 5 @ 1.211 log @Fixed typo in earlier memory leak fix @ text @d1 11 @ 1.210 log @Fixed glyph cache memory leak @ text @d1 5 @ 1.209 log @ * src/cairo_gstate.c (_cairo_gstate_init_clip): Don't call _cairo_surface_set_clip_region with a NULL surface. @ text @d1 5 @ 1.208 log @ * src/cairo_gstate.c (_cairo_gstate_arc_dir): Fix numerical problem that could lead to infinite loops. @ text @d1 5 @ 1.207 log @Require automake 1.7 (and thus aclocal 1.7) which requires autoconf 2.54. Changed since newer libtools may fail to work with older automake versions such as 1.4. I bet this will annoy people with older tool chains :( @ text @d1 5 @ 1.206 log @ * src/cairo.c (CAIRO_CHECK_SANITY): Remove errant semicolon from macro definition. @ text @d1 7 @ 1.205 log @Add missing ChangeLog entry. Add description of current tessellation bugs. @ text @d1 5 @ 1.204 log @Glitz updates and a minor clipping fix @ text @d45 12 @ 1.203 log @2004-06-16 Keith Packard * src/cairo_xcb_surface.c: (bytes_per_line), (_cairo_xcb_surface_set_image): Fix image data length computation (XCB doesn't do this part). @ text @d1 16 @ 1.202 log @Software multi-sample support @ text @d1 6 @ 1.201 log @Pre-multiply gradients after color interpolation @ text @d3 11 @ 1.200 log @2004-05-28 Keith Packard * configure.in: * src/Makefile.am: Add WARN_CFLAGS, autodetection for 64/128 bit ints and cairo_wideint.[ch] * src/cairo_gstate.c: (_cairo_gstate_show_glyphs): Check status return from _cairo_gstate_glyph_extents * src/cairo_pattern.c: (_cairo_image_data_set_radial), (_cairo_pattern_get_image): * src/cairo_png_surface.c: (_cairo_png_surface_copy_page): * src/cairo_surface.c: (_cairo_surface_composite): Quiet compiler warnings about uninitialized variables * src/cairo_traps.c: (_det16_32), (_det32_64), (_fixed_16_16_to_fixed_32_32), (_line_segs_intersect_ceil): Switch to alternate exact line intersection code. * src/cairo_wideint.c: (_cairo_uint64_divrem), (_cairo_uint32_to_uint64), (_cairo_int32_to_int64), (_cairo_uint32s_to_uint64), (_cairo_uint64_add), (_cairo_uint64_sub), (_cairo_uint32x32_64_mul), (_cairo_uint64_mul), (_cairo_uint64_lsl), (_cairo_uint64_rsl), (_cairo_uint64_rsa), (_cairo_uint64_lt), (_cairo_uint64_eq), (_cairo_int64_lt), (_cairo_uint64_not), (_cairo_uint64_negate), (_cairo_leading_zeros32), (_cairo_uint64x32_normalized_divrem), (_cairo_int64_divrem), (_cairo_uint128_divrem), (_cairo_uint32_to_uint128), (_cairo_int32_to_int128), (_cairo_uint64_to_uint128), (_cairo_int64_to_int128), (_cairo_uint128_add), (_cairo_uint128_sub), (uint64_lo), (uint64_hi), (uint64_shift32), (_cairo_uint64x64_128_mul), (_cairo_uint128_mul), (_cairo_uint128_lsl), (_cairo_uint128_rsl), (_cairo_uint128_rsa), (_cairo_uint128_lt), (_cairo_int128_lt), (_cairo_uint128_eq), (_cairo_uint128x64_normalized_divrem), (_cairo_leading_zeros64), (_cairo_int128_negate), (_cairo_int128_not), (_cairo_int128_divrem): * src/cairo_wideint.h: Add 64/128-bit wide integer arithmetic. * src/cairoint.h: Switch to stdint.h types (and new wide types). @ text @d1 11 @ 1.199 log @Moved CAIRO_CHECK_SANITY below declarations @ text @d1 44 @ 1.198 log @Added glyph caching @ text @d3 4 @ 1.197 log @2004-05-20 Graydon Hoare * configure.in: Add sanity checking feature configury. * src/cairo-features.h.in: Add sanity checking feature. * src/cairo.c: Add sanity checking. * src/cairoint.h: Add prototypes. * src/cairo_fixed.c (_cairo_fixed_is_integer): (_cairo_fixed_integer_part): New functions. * src/cairo_matrix.c (_cairo_matrix_is_integer_translation): New function. * src/cairo_gstate.c (extract_transformed_rectangle): Use fixed functions. (_cairo_gstate_clip): Arithmetic fixes. (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Corrections to clipping. * src/cairo_xlib_surface.c (_cairo_xlib_surface_composite): Add XCopyArea fast path. (_cairo_xlib_surface_set_clip_region): Drive clip to drawable. @ text @d1 53 @ 1.196 log @ * src/cairo.c (cairo_show_text): Do nothing when passed a NULL string. @ text @d1 29 @ 1.195 log @changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients easier. @ text @d1 5 @ 1.194 log @Removed pattern_offset @ text @d1 5 @ 1.193 log @ * configure.in: Increment CAIRO_VERSION to 0.1.23. * NEWS: Added notes for snapshot 0.1.23. * RELEASING: Add reminder to mention incompatible API changes in NEWS. Re-order steps to avoid clobbering pre-existing tar files. @ text @d1 12 @ 1.192 log @ * BUGS: Several people have reported that cairo_clip is not working right now. And it's always been slow. @ text @d1 10 @ 1.191 log @Better surface pattern support @ text @d1 5 @ 1.190 log @ * src/cairo_ft_font.c (_utf8_to_ucs4): Bail on NULL utf8 string. * src/cairo_spline.c (_cairo_spline_add_point): Don't add two consecutive, identical points when decomposing the spline, (which was leading to an infinte loop in the stroke algorithm when it found a slope of (0,0)). @ text @d1 10 @ 1.189 log @ (_cairo_png_surface_copy_page): Don't close a file we didn't open. @ text @d1 9 @ 1.188 log @ * src/cairo_png_surface.c (cairo_png_surface_create): Move all libpng-related code into copy_page. (unpremultiply_data): Add missing unpremultiply step. (_cairo_png_surface_copy_page): Move PNG output to copy_page. Add support for A8 and A1 images. Remove time from header (we may want to add it again later, but for now it messes up my test suite). (_cairo_png_surface_destroy): Call copy_page if it hasn't been called already. (_cairo_png_surface_show_page): Add implementation. @ text @d12 1 @ 1.187 log @Corrected some confusing comments about the math used for radial gradients @ text @d1 12 @ 1.186 log @cairo_surface_t pointer to cairo_surface_set_matrix @ text @d1 5 @ 1.185 log @ * src/cairo_gstate.c (_cairo_gstate_set_pattern): Don't set pattern_offset by the current point. Perhaps we can eliminate pattern_offset altogether now? @ text @d1 5 @ 1.184 log @Updated linear and radial patterns @ text @d1 6 @ 1.183 log @Support compositing with mask surface when mask is solid or multi-texturing is available @ text @d1 25 @ 1.182 log @Fixed conversion of pixman_box16_t to glitz_rectangle_t @ text @d1 8 @ 1.181 log @Converted shading routines to use fixed point values. @ text @d3 3 @ 1.180 log @ * src/cairoint.h: * src/cairo_surface.c (_cairo_surface_composite): * src/cairo_gstate.c (_cairo_gstate_current_fill_rule): Fixed several function prototype mismatches between internal header file and implementation (thanks to Carlos Romero and gcc-3.4). @ text @d1 31 @ 1.179 log @Fixed pattern source offset @ text @d1 8 @ 1.178 log @Fixed missing limits.h includes @ text @d1 10 @ 1.177 log @ * NEWS: Added notes for snapshot 0.1.22. * configure.in: Now depends on libpixman 0.1.1. Bump version to 0.1.22. @ text @d1 11 @ 1.176 log @ * src/cairo_image_surface.c (_create_pixman_format): Track pixman fixes to PIXMAN_FORMAT_NAME_*. * src/cairo_png_surface.c (cairo_png_surface_create): Explicitly add cases for all enum values to eliminate compiler warnings. * src/cairo.h: Remove proposal for surface_clip interface as cairo_clip should be able to cover this case now. * BUGS: Added bug concerning negative ref_counts. @ text @d3 5 @ 1.175 log @Bump version to 0.1.21 @ text @d1 13 @ 1.174 log @Added OpenGL surface backend @ text @d3 4 @ 1.173 log @Automatically detect available backends @ text @d3 12 @ 1.172 log @ * NEWS: Added notes for snapshot 0.1.20. * RELEASING: Added new RELEASING file. @ text @d1 4 @ 1.171 log @Added new pattern API @ text @d1 6 @ 1.170 log @ * src/cairo.h: Move weight after slant to match the order in cairo_select_font. * TODO: Added notes on DPI for image-based backends and on proposal for new cairo_text_glyphs function. * BUGS: Added BUG about cairo_show_text not advancing the current point. @ text @d1 82 @ 1.169 log @ * src/Makefile.am (libcairo_la_LIBADD): Add -lz. @ text @d1 11 @ 1.168 log @ * configure.in: Add checks for Xrender.h in xrender.pc is not found. Remove AC_HELP_STRING to be compatible with older versions of autoconf (thanks to Bill Spitzak ). @ text @d3 4 @ 1.167 log @ * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Add question on semantics with empty region. Fix missing return value. * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Export for internal use. (_cairo_image_abstract_surface_set_clip_region): Add silly wrapper to match the backend interface. * src/cairo_gstate.c (_cairo_gstate_init_clip): Remove unused variables. @ text @d3 4 @ 1.166 log @ * src/cairo.h: Add proposal for cairo_xlib_surface_set_size. * BUGS: Added note about problem with cairo_scale_font. @ text @d3 12 @ 1.165 log @2004-03-23 Olivier Andrieu * src/cairo_ps_surface.c (_cairo_ps_surface_set_clip_region) * src/cairo_png_surface.c (_cairo_png_surface_set_clip_region): Implement _set_clip_region by delegating it to the image backend. * src/cairo_xcb_surface.c (_cairo_xcb_surface_set_clip_region): Add a stub. * src/cairo.h: Add missing (?) cairo_init_clip @ text @d1 6 @ 1.164 log @ * configure.in: Move the PNG_CFLAGS/_LIBS substitutes outside the conditional, to match what is already done for XCB. Do the same for XRENDER_CFLAGS/LIBS. @ text @d1 11 @ 1.163 log @ * configure.in: Substitute PNG_CFLAGS, PNG_LIBS on the configure path when use_png is not enabled to prevent the substituions being undefined. @ text @d3 4 @ 1.162 log @2004-03-19 Graydon Hoare * src/cairo.c (cairo_init_clip): Add. * src/cairo_gstate.c: Initialize, finalize and copy clip.region. Detect rectangular clips and push down to backend. * src/cairoint.h (cairo_surface_backend_t): Add set_clip_region slot. (cairo_clip_rec_t): Add region slot. (_cairo_gstate_init_clip) (_cairo_surface_set_clip_region): Prototype. * src/cairo_surface.c (_cairo_surface_set_clip_region): Add. * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region): Add. * src/cairo_image_surface.c (_cairo_image_surface_set_clip_region): Add. * src/cairo_ps_surface.c (_cairo_ps_surface_set_clip_region): Stub, not implemented. @ text @d1 6 @ 1.161 log @Fixed for latest XCB API. XCB headers can co-exist with Xlib headers now, so Cairo may be compiled with both backends in the same library. http://freedesktop.org/Software/XCBCompletedTasks#17_Mar_2004 @ text @d1 25 @ 1.160 log @Fix typo @ text @d1 10 @ 1.159 log @ * AUTHORS: Add Jordi and Olvier to the AUTHORS file. * src/cairo_ft_font.c (_utf8_to_ucs4): Fix broken return value for nchars (thanks to Jordi Mas ). @ text @d3 1 a3 1 * AUTHORS: Add Jordi and Olvier to the AUTHORS file. @ 1.158 log @PNG backend @ text @d1 7 @ 1.157 log @ * AUTHORS: Add attribution for many people who have made generous contributions to cairo. This list was generated by sifting through the ChangeLog. Please let me know if I have missed anyone. * NEWS: Add some historical notes on cairo development, prior to when we began to maintain this NEWS file. * README (http): Add pointer to cairographics.org. Fix to use cairo rather than Cairo when not at the beginning of a sentence. * TODO: Remove cairo_current_path, cairo_current_path_flat, cairo_text_extents, cairo_glyph_extents, cairo_text_path, and cairo_glyph_path from the TODO list as they have all been implemented now. @ text @d1 14 @ 1.156 log @ * src/cairo.h: Add comment indication cairo_copy will be going away at some point. Some indentation fixes. @ text @d1 18 @ 1.155 log @ * configure.in: Bump version to 0.1.18. Includes new functions cairo_current_path, cairo_current_path_flat, cairo_surface_get_filter. Support for XCB backend. Fixes for building in cygwin. Adds cairo_surface_get_filter. * src/cairo.h: * src/cairo.c (cairo_current_path): (cairo_current_path_flat): Add new path query functions. * src/cairo_gstate.c (_gpi_move_to): (_gpi_line_to): (_gpi_curve_to): (_gpi_close_path): (_cairo_gstate_interpret_path): Implement support for cairo_current_path and cairo_current_path_flat. These functions just provide an interface to _cairo_path_interpret and take care of mapping from device space back to user space. @ text @d3 3 @ 1.154 log @ * TODO: Add some notes from JG's TODO list on the wiki: http://cairographics.org/CairoToDoList. (Also testing automated mailing to cairo-commit list). @ text @d1 20 @ 1.153 log @ * src/cairo.h: Add typedefs for new callbacks to be used by cairo_current_path: cairo_move_to_func, cairo_line_to_func, cairo_curve_to_func, and cairo_close_path_func. * src/cairoint.h: cairo_path.last_move_point and cairo_path.current_point are now fixed-point not doubles for consistency. * src/cairo_path.c (_cairo_path_interpret): Now accept 4 explicit function pointers rather than a structure. Eliminate unnecessary done_path callback. * src/cairo_path_bounds.c (_cairo_path_bounds): * src/cairo_path_stroke.c (_cairo_path_stroke_to_traps): * src/cairo_path_fill.c (_cairo_path_fill_to_traps): Track change in _cairo_path_interpret. Code previously in done_path callback is now here immediately after call to _cairo_path_interpret. * src/cairo_path.c (_cairo_path_move_to): (_cairo_path_rel_move_to): (_cairo_path_line_to): (_cairo_path_rel_line_to): (_cairo_path_curve_to): (_cairo_path_rel_curve_to): (_cairo_path_current_point): Internal _cairo_path API modified to accept fixed-point data everywhere. Much cleaner this way. * src/cairo_gstate.c (_cairo_gstate_move_to): (_cairo_gstate_line_to): (_cairo_gstate_curve_to): (_cairo_gstate_rel_move_to): (_cairo_gstate_rel_line_to): (_cairo_gstate_rel_curve_to): (_cairo_gstate_current_point): (_cairo_gstate_show_text): (_cairo_gstate_text_path): Have to convert doubles to fixed-point to track changes in _cairo_path API. * src/cairo_ft_font.c (_move_to, _line_to, _conic_to, _cubic_to): Keep data in fixed-point rather than going through intermediate doubles. Track changes in _cairo_path API. * src/cairo_fixed.c (_cairo_fixed_from_26_6): New function to help when working with freetype. @ text @d1 6 @ 1.152 log @Ported the Xlib surface backend to XCB. @ text @d1 47 @ 1.151 log @2004-02-02 Graydon Hoare * src/cairo_xlib_surface.c (CAIRO_SURFACE_RENDER_HAS_FILTERS): New predicate. (_cairo_xlib_surface_set_filter): Skip filterless servers. (_cairo_xlib_surface_clone_similar): Fix typo. @ text @d1 9 @ 1.150 log @2004-01-27 Graydon Hoare * src/cairoint.h (cairo_surface): New "filter" field. * src/cairo_surface.c (cairo_surface_get_filter): New function. (cairo_surface_set_filter): Store filter in surface. * src/cairo.h (cairo_surface_get_filter): Declare. * src/cairo_xlib_surface.c (_cairo_xlib_surface_clone_similar): Copy filter setting. (_cairo_xlib_surface_set_filter): Use constants from Xrender.h @ text @d1 7 @ 1.149 log @ * src/cairo_path_stroke.c (_cairo_stroker_add_sub_edge): Fix to use tessellate_polygon instead of tessellate_rectangle as the matrix may have skewed the coordinates into a non-rectangular shape. @ text @d1 11 @ 1.148 log @ * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_filter): Add missing break statements to switch. @ text @d3 5 @ 1.147 log @ * src/Makefile.am: Add '-no-undefined' to end of libcairo_la_LDFLAGS to enable building shared library under cygwin. * src/cairo.h: Remove all 'extern ' and ' __external_linkage' (macro for __declspec(dllexport) and __declspec(dllimport)) from function declarations. These are no longer needed for cygwin. * src/cairo_traps.c: Changed type of _line_segs_intersect_ceil from 'static cairo_fixed_t' to 'static int' to match definition. This was necessary to compile under cygwin. @ text @d1 5 @ 1.146 log @ * src/cairo.h: Remove trailing commas from enums, (some compilers like to complain about them). @ text @d1 14 @ 1.145 log @ * README: Replace requiring libpixregion, libic with libpixman. @ text @d1 5 @ 1.144 log @ * NEWS: Add more notes culled from the ChangeLog. @ text @d1 4 @ 1.143 log @ * NEWS: Begin maintaining NEWS file. Add notes on 0.1.17. @ text @d1 4 @ 1.142 log @ * configure.in: Bump version to 0.1.17 for new functions: cairo_text_extents, cairo_glyph_extents, cairo_text_path, cairo_glyph_path. * src/cairo.h: * src/cairo.c (cairo_text_path): (cairo_glyph_path): Re-enable cairo_text_path and cairo_glyph_path. * src/cairo_gstate.c (_cairo_gstate_glyph_path): Add missing transformation. * src/cairo_ft_font.c (_move_to): (_line_to): (_conic_to): (_cubic_to): (_cairo_ft_font_glyph_path): Initial implementation of glyph_path. @ text @d3 2 @ 1.141 log @ * src/cairoint.h: Move all current_point state fields from cairo_gstate_t to cairo_path_t. * src/cairo_path.c (_cairo_path_init): (_cairo_path_init_copy): (_cairo_path_fini): (_cairo_path_move_to): (_cairo_path_line_to): (_cairo_path_curve_to): (_cairo_path_close_path): Add current_point state. (_cairo_path_current_point): New function. (_cairo_path_rel_move_to): (_cairo_path_rel_line_to): (_cairo_path_rel_curve_to): New functions. * src/cairo_gstate.c (_cairo_gstate_init): (_cairo_gstate_new_path): (_cairo_gstate_move_to): (_cairo_gstate_line_to): (_cairo_gstate_curve_to): (_cairo_gstate_rel_move_to): (_cairo_gstate_rel_line_to): (_cairo_gstate_rel_curve_to): (_cairo_gstate_close_path): (_cairo_gstate_current_point): Eliminate current_point state. (_cairo_gstate_show_text): (_cairo_gstate_text_path): Use new _cairo_path_current_point. @ text @d3 19 @ 1.140 log @ * src/cairo_ft_font.c (_cairo_ft_font_glyph_path): (_cairo_ft_font_text_path): A couple of changes missed in the last batch of commits (reordering so that path is final argument). @ text @d3 31 @ 1.139 log @ * src/cairoint.h: Change cairo_font_backend_t to use a void * for the abstract font. Put create, copy, and destroy as the first functions in the list. Fix text_path and glyph_path so that the path to be returned is the last argument. Add x,y arguments to text_path. * src/cairo_gstate.c (_cairo_gstate_text_path): Compute x,y now needed by cairo_font_text_path. (_cairo_gstate_glyph_path): Track change in cairo_font_text/glyph_path (path argument is now last). * src/cairo_ft_font.c: Switch to new macro-based mechanism for including freetype headers. (cairo_ft_font_face): (cairo_ft_font_pattern): Minor cleanup. (_cairo_ft_font_copy): (_cairo_ft_font_destroy): (_utf8_to_glyphs): (_cairo_ft_font_font_extents): (_cairo_ft_font_glyph_extents): (_cairo_ft_font_text_extents): (_cairo_ft_font_show_glyphs): (_cairo_ft_font_show_text): Track changes to cairo_font_backend_t interface. * src/cairo_font.c (_cairo_font_text_path): (_cairo_font_glyph_path): Track changes to cairo_font_backend_t interface. @ text @d3 4 @ 1.138 log @ * TODO: Change instances of Cairo to cairo where necessary. Add note about broken dashing on splines. @ text @d3 31 @ 1.137 log @ * src/cairo_gstate.c (_cairo_gstate_text_extents): (_cairo_gstate_glyph_extents): * src/cairo_ft_font.c (_cairo_ft_font_glyph_extents): (_cairo_ft_font_glyph_extents): * src/cairo.h: Rename cairo_text_exextents_t fields: left_side_bearing -> x_bearing ascent -> y_bearing right_side_bearing (replaced by) width descent (replaced by) height @ text @d1 5 @ 1.136 log @ * src/cairo_gstate.c (_cairo_gstate_text_extents): (_cairo_gstate_glyph_extents): Need to divide out the scale factor to return user-space extents. (_cairo_gstate_glyph_extents): Don't transform glyph locations as they're not relevant to extents. * src/cairo_ft_font.c (_cairo_ft_font_font_extents): Clean up implementation. (_cairo_ft_font_glyph_extents): Initial implementation. Thanks to John Ellson for most of the work on this function. (_cairo_ft_font_show_text): Clean to use num_glyphs not nglyphs. * src/cairo.h: * src/cairo.c (cairo_text_extents): (cairo_glyph_extents): Re-enable cairo_text/glyph_extents. @ text @d3 12 @ 1.135 log @ * src/cairo_matrix.c (_cairo_matrix_compute_scale_factors): Move this function from cairo_ft_font.c (_get_scale_factors). @ text @d3 19 @ 1.134 log @ * src/cairo_ft_font.c (DOUBLE_TO_16_16): Fix minor errors in fixed/floating-point conversion. @ text @d3 3 @ 1.133 log @ * src/cairoint.h: font->show_glyphs no longer accepts an offset point. * src/cairo_ft_font.c (_utf8_to_glyphs): (_cairo_ft_font_text_extents): (_cairo_ft_font_show_text): (_cairo_ft_font_text_path): _utf8_to_glyphs now accepts a point by which each glyph should be offset. (cairo_ft_font_backend): Remove evil void * casts on function pointers. * src/cairo_font.c (_cairo_font_show_glyphs): Fix to not require a current point. * src/cairo_gstate.c (_cairo_gstate_show_text): (setup_text_rendering_context): Move initialization of current device-space point from setup_text_rendering_context to _cairo_gstate_show_text. (_cairo_gstate_show_glyphs): Fix to not reference current point. @ text @d3 3 @ 1.132 log @ * src/Makefile.am: Add compatibility defines FONTCONFIG_LIBS, X_LIBS, XRENDER_LIBS to keep automake happy - they look like automake variable names. @ text @d1 22 @ 1.131 log @ * src/cairo_font.c (_cairo_font_create): Add comment about building in a font. * src/cairo_ft_font.c (_cairo_ft_font_create): Check for NULL return value from cairo_ft_font_create. @ text @d1 6 @ 1.130 log @ * src/cairo.h: * src/cairo-features.h.in: * src/Makefile.am (libcairo_ps_sources): Add conditionals for ps_surface functions, etc. * configure.in: Get rid of AC_PATH_XTRA. Instead, find X includes/libraries only via pkg-config xrender. Switch option from --without-x to --disable-xlib Add option --disable-ps * cairo.pc.in (Libs): Add -lz only if ps_surface backend is compiled. @ text @d3 6 @ 1.129 log @ * src/cairo.h (__external_linkage): Add missing definitions from slim_import.h. @ text @d3 12 @ 1.128 log @ * src/cairoint.h: Rename surface->ic_image to surface->pixman_image. * src/cairo_image_surface.c (_cairo_image_surface_create_for_pixman_image): (_cairo_image_surface_create_with_masks): (_create_pixman_format): (cairo_image_surface_create): (cairo_image_surface_create_for_data): (_cairo_image_abstract_surface_destroy): (_cairo_image_surface_set_matrix): (_cairo_image_surface_set_filter): (_cairo_image_surface_set_repeat): (_pixman_operator): (_cairo_image_surface_fill_rectangles): (_cairo_image_surface_composite_trapezoids): Rename functions and indentifiers with ic_ in the name that were missed by the recent renaming. Fix indentation problems left by the recent renaming. * Shift everything over from libic/libpixregion/slim to libpixman. Many thanks to Dave Beckett for all of the heavy lifting with this renaming effort. @ text @d1 5 @ 1.127 log @ * src/cairoint.h (slim_hidden_proto1): Directly fold in slim stuff rather than depending on it from an external package. * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): * src/cairo_image_surface.c: Switch from libic to libpixman. * src/cairo.h: Include pixman.h not ic.h. (__external_linkage): Directly fold in slim stuff rather than depending on it from an external package. * configure.in (PKG_CHECK_MODULES): * cairo.pc.in (Requires): Look for libpixman instead of libic and slim. @ text @d3 24 @ 1.126 log @cairo_select_font: _cairo_font_create: _cairo_gstate_select_font: cairo_ft_font_create: change char * family to const char * family @ text @d1 16 @ 1.125 log @ * src/cairo_xlib_surface.c (_cairo_xlib_surface_set_image): Replace mysterious image->depth == 32 ? 24 : image->depth with simply image->depth. @ text @d1 8 @ 1.124 log @ * cairo.pc.in (Requires): * configure.in: Add xrender to cairo.pc Renders line if needed. @ text @d1 6 @ 1.123 log @ * src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Fix to use shifts and masks for endianness-correct PS image generation. Rename bgr to rgb now that the byte order issues are clear. @ text @d3 5 @ 1.122 log @ * src/cairo_path_bounds.c (_cairo_path_bounder_move_to): (_cairo_path_bounder_line_to): (_cairo_path_bounder_curve_to): (_cairo_path_bounder_close_path): Track change in cairo_path_callbacks interface. @ text @d1 7 @ 1.121 log @ * src/cairoint.h: * src/cairo_path_stroke.c: * src/cairo_path_fill.c: * src/cairo_path.c: Clean up cairo_path_callbacks to have move_to, line_to, curve_to, abd close_path instead of add_edge, add_spline, and done_sub_path. Much, much nicer. * src/cairo_polygon.c (_cairo_polygon_move_to): Provide cairo_polygon_move_to and cairo_polygon_line_to instead of cairo_polygon_add_point. * src/cairo_pen.c (_cairo_pen_stroke_spline_half): Track change in cairo_polygon interface. @ text @d3 6 @ 1.120 log @ * configure.in: Bump version to 0.1.16 since it actually has a hope of building, (due to fix for broken cairo-xlib.h includes). @ text @d3 16 @ 1.119 log @ * src/cairo_xlib_surface.c: Don't include obsolete cairo-xlib.h. @ text @d1 5 @ 1.118 log @ * autogen.sh (AUTOCONF): Allow names of all autofoo programs to be overridden via environment variables. @ text @d3 2 @ 1.117 log @ * configure.in: Bump version to 0.1.15 for new CAIRO_HAS_XLIB_SURFACE macro. * src/cairo.h: Add missing #include * Rename cairo-config.h to cairo-features.h. * configure.in: Rename XLIB_BACKEND_DEFINE to XLIB_SURFACE_FEATURE. Rename AM_CONDITIONAL HAVE_XLIB_BACKEND to CAIRO_HAS_XLIB_SURFACE. Rename user-visibile macro CAIRO_HAS_XLIB_BACKEND to CAIRO_HAS_XLIB_SURFACE. @ text @d3 3 @ 1.116 log @ * configure.in: Bumped version to 0.1.14 to indicate dropped cairo-xlib.h and new cairo-config.h. * New support for "./configure --without-x" to compile without the xlib backend. Many thanks to Sasha V. . * configure.in: We do three things here: Make the pkg-config check for xrender conditional, set XLIB_BACKEND_DEFINE to either CAIRO_HAS_XLIB_BACKEND or CAIRO_HAS_NO_XLIB_BACKEND to be substituted into cairo-config.h, and set an AM_CONDITIONAL for HAVE_XLIB_BACKEND to enable conditional compilation of cairo_xlib_surface.c. Perhaps that could be simplified a tad, but it's what we have working now. Also split up various PKG_CHECK_MODULES into separate checks. * src/cairo_gstate.c: Remove errant reference to cairo_gstate_set_drawable. * src/cairo.h: Move xlib-specific calls in from old cairo-xlib.h, now guarded in #ifdef CAIRO_HAS_XLIB_BACKEND. * src/Makefile.am (libcairo_xlib_sources): Make compilation of cairo_xlib_surface.c conditional. (INCLUDES, libcairo_la_LIBADD): Add the new variables from splitting up the PKG_CHECK_MODULES calls. @ text @d1 14 @ 1.115 log @ * cairo.pc.in (Libs): Add -lz for the compress function used in the PS backend. @ text @d3 28 @ 1.114 log @ * TODO: Add note about degenerate path caps being broken @ text @d1 5 @ 1.113 log @ * src/cairo_polygon.c (_cairo_polygon_add_edge): Use 0 and 1 not False and True, (to avoid false dependency on X headers). * src/cairo_path_stroke.c (_compute_face): Use cairo_point_double_t not XPointDouble, (to avoid false dependency on X headers). Thanks to "Sasha V." for pointing these out. @ text @d1 5 @ 1.112 log @ * configure.in: Bump version to 0.1.13 for new freetype header compatibility. Fix comments regarding freetype version checking. @ text @d1 10 @ 1.111 log @2003-11-18 James Henstridge * cairo.pc.in (Cflags): add FREETYPE_CFLAGS/LIBS to Libs/Cflags rather than requiring "freetype2", which doesn't exist in anything but the most recent version of freetype. * configure.in (FREETYPE_LIBS): add freetype cflags/libs substitutions. @ text @d1 6 @ 1.110 log @ * src/cairo.h: Fix build for new freetype header include mechanism, (thanks to Christof Petig ) @ text @d1 9 @ 1.109 log @ * Remove infinite looping when stroking with a line width at or close to 0.0. Thanks to Rob Buis and Noah Levitt for providing in-the-wild examples of SVG files with stroke-width:0 that demonstrated the problem, (cowboy.svg and albania.svg). * src/cairo_pen.c (_cairo_pen_stroke_spline): Do nothing if the pen is a degenerate, single point. This happens when the line width is a very small, non-zero value. * src/cairo_gstate.c (_cairo_gstate_stroke): Do nothing when asked to stroke a path with a line_width of 0.0. Previously, this would lead to an infinite loop. * src/cairo.c (cairo_set_line_width): Force negative line width to 0.0. * TODO: Updated TODO list. @ text @d1 5 @ 1.108 log @ * configure.in: Fix typo (thanks to John Ellson ) * TODO: Add TODO items for intersection problem, programmatic patterns, missing text functions. @ text @d1 21 @ 1.107 log @ * src/cairo.c (cairo_current_font): Move declaration to beginning of function to avoid requiring a C99-compatible compiler. @ text @d1 8 @ 1.106 log @ * configure.in (CAIRO_VERSION): Bumped version to 0.1.12 for new cairo_in_stroke and cairo_in_fill functions. * src/cairo.h: * src/cairo.c (cairo_in_stroke): (cairo_in_fill): Added new cairo_in_stroke and cairo_in_fill. * src/cairo_traps.c (_cairo_trap_contains): (_cairo_traps_contain): * src/cairo_gstate.c (_cairo_gstate_in_stroke): (_cairo_gstate_in_fill): New functions to support for cairo_in_stroke and cairo_in_fill. Many thanks to Thomas Hunger for the initial implementation which demonstrated how easy this would be and pushed me to go and write it already. * src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids): * src/cairo_traps.c (_line_segs_intersect_ceil): * src/cairo_path.c (_cairo_path_move_to): (_cairo_path_line_to): (_cairo_path_curve_to): Fixed to use _cairo_fixed_from_double instead of XDoubleToFixed. @ text @d28 3 @ 1.105 log @ * src/cairo.h: Add comment pondering memory management semantics of cairo_current_target_surface. * src/cairo_pen.c (_cairo_pen_fini): NULL out pen->vertices after free. * src/cairo_image_surface.c (_cairo_image_abstract_surface_destroy): NULL out durface->data after free. @ text @d1 25 @ 1.104 log @Enable cairo_set_target_surface (cr, NULL) to work. This can be useful to force the current target surface to be finalized. @ text @d1 12 @ 1.103 log @Add explicit fontconfig and freetype2 dependencies that were implicitly dropped along with Xft. @ text @d3 4 @ 1.102 log @TODO: Note that cairo_show_page, cairo_copy_page, PostScript backend, real text API, and text support for the image backend have now all been implemented. @ text @d1 6 @ 1.101 log @Fix configure.in and cairo.pc.in now that cairo no longer depends on Xft. @ text @d1 6 @ 1.100 log @Add support for cairo_copy_page. Fixes so PS output can be more than one page. Bump version to 0.1.11 for new cairo_copy_page. @ text @d1 6 @ 1.99 log @Add several missing checks for out of memory @ text @d3 23 @ 1.98 log @Added __external_linkage to a few functions that were missing it. @ text @d1 14 @ 1.97 log @Fix misplacement of PS origin, (was translating vertically by width instead of height). @ text @d1 5 @ 1.96 log @Implemented preliminary PostScript output support. Added cairo_show_page. Bumped version number to 0.1.10 @ text @d3 4 @ 1.95 log @Do nothing when radius <= 0.0, (which is much better than the current infinite loop). @ text @d1 29 @ 1.94 log @Moved all libic-related drawing into cairo_image_surface.c @ text @d3 6 @ 1.93 log @Fixed a few memory leaks @ text @d1 66 @ 1.92 log @* src/cairo_ft_font.c: A set of changes to eliminate the static FT_Library field, (which could introduce nasty problems with respect to threading). With the new code, each font created with the toy API will own its own FT_Library. Meanwhile, cairo_ft_font_create now accepts an FT_Library parameter. Bumped version number to 0.1.9 @ text @d3 8 @ 1.91 log @A few cleanups to eliminate a memory leak. @ text @d3 24 @ 1.90 log @A few cleanups to eliminate a memory leak. @ text @d3 2 @ 1.89 log @Updated stale text in README @ text @d1 20 @ 1.88 log @Rename gstate->ppm to gstate->pixels_per_inch. Add new pixels_per_inch to the surface backend. @ text @d3 5 @ 1.87 log @Drop cairo_surface_create_similar_solid @ text @d3 12 @ 1.86 log @Fix bug from previous commit. Must check for NULL backend function pointers before calling them. @ text @d3 15 @ 1.85 log @Cleanup of surface->backend interface. Better type-safety and more consistent return-value handling. @ text @d1 8 @ 1.84 log @Default to normal slant/weight on out-of-range values. Add missing include of fontconfig/fcfreetype.h @ text @d3 26 @ 1.83 log @ * src/cairo_ft_font.c: (_cairo_ft_font_show_glyphs): A HORRIBLE KLUDGE to repad glyph images from freetype to meet libic requirements. @ text @d1 6 @ 1.82 log @Fixes to eliminate a few compiler warnings. Bump version to 0.1.8 for recent font API changes. @ text @d1 6 @ 1.81 log @Create a font by default. Remove bogus NULL_POINTER status errors leaking to the outside. @ text @d3 19 @ 1.80 log @2003-10-23 Graydon Hoare * src/cairo_ft_font.c: New file. * src/Makefile.am: Add cairo_ft_font.c * src/cairo.c: * src/cairo.h: * src/cairo_font.c: * src/cairo_gstate.c: * src/cairo_xlib_surface.c: * src/cairoint.h: Change to virtual font interface. @ text @d1 21 @ 1.79 log @Updated TODO file @ text @d1 11 @ 1.78 log @Fixed copyright attribution to refer to "University of Southern California @ text @d3 5 @ 1.77 log @Add extern "C" stuff to cairo-xlib.h @ text @d1 6 @ 1.76 log @Stub out NULL_POINTER error so drawing to off-screen memory still works even though text does not yet. @ text @d1 5 @ 1.75 log @Generate convex hull of pen before stroking. @ text @d1 6 @ 1.74 log @Remove abbreviation of "point" as "pt". Fix cairo_destrot, cairo_set_target_surface, and cairo_set_target_image to act appropriately in the face of non-zero status. @ text @d3 8 @ 1.73 log @Fix to gracefully handle a NULL pointer for gstate->font @ text @d1 12 @ 1.72 log @Virtualized the font and surface backend implementations. @ text @d1 15 @ 1.71 log @Don't copy a gstate if src->status != 0 @ text @d1 7 @ 1.70 log @Fixed horribly botched implementation of cairo_copy. @ text @d3 2 @ 1.69 log @Changed cairo_copy to copy graphics state from one cairo_t to another rather than allocating a new cairo_t. @ text @d3 7 @ 1.68 log @Fix to delay XFreePixmap until cairo_surface_destroy. @ text @d3 7 @ 1.67 log @Bugfix from Graydon Hoare. @ text @d1 6 @ 1.66 log @Added cairo_arc and cairo_arc_negative. @ text @d1 8 @ 1.65 log @Removed two _print_svg headers that had been included accidentally. @ text @d1 20 a20 1 2003-09-27 Carl Worth @ 1.64 log @Fixed some internal enums that had been mistakenly converted to lowercase at some point. @ text @d7 3 a9 1 @ 1.63 log @Removed support for cairo_path_t and related functions. Bumped version to 0.1.5 @ text @d1 7 @ 1.62 log @Expose a cairo_path_t object with related functions: cairo_set_path, cairo_current_path, cairo_path_move_to, cairo_path_line_to, etc. @ text @d3 7 @ 1.61 log @Fixed massive pixmap leak @ text @d1 35 @ 1.60 log @Add cairo_reference and cairo_surface_reference @ text @d3 3 @ 1.59 log @Force explicit dependency on Xrender >= 0.6. Make _cairo_x11_surface_put_image static. @ text @d1 15 @ 1.58 log @Fix for invalid restore from keithp. Began adding notes on arc support. @ text @d1 6 @ 1.57 log @Don't try to create depth-32 pixmaps on non-Render servers. Fix massive memory leask in _cairo_surface_push_image. @ text @d1 6 @ 1.56 log @Updated calls to slim_hidden_def to track changes in slim 0.2.0 @ text @d1 6 @ 1.55 log @Preliminary support for running Cairo with X servers without the Render extension. This is still horribly slow. Removed many uses of X-specific macros, (eg. XDoubleToFixed) @ text @d1 5 @ 1.54 log @ * src/cairo_path_stroke.c: comment face computations, check for reflecting transformation to select correct face orientations * src/cairo_pen.c: check for reflecting transform when computing pen to ensure consistent pen orientation @ text @d1 34 @ 1.53 log @Added cairo_copy. Bumbed version to 0.1.2. @ text @d1 8 @ 1.52 log @Fix crash in show_text due to missing call to ensure_source. @ text @d1 14 d20 6 @ 1.51 log @Fixed bugs if cairo_stroke/fill called before cairo_set_rgb_color or cairo_set_target. Also fixed bug when cairo_set_rgb_color is called before cairo_set_target. @ text @d1 5 @ 1.50 log @ * src/cairo_path_stroke.c: added comments describing miter join code and miter limit computation. Replace XFoo with cairo_foo for double and fixed * src/cairoint.h: add cairo_fixed_to_double and cairo_double_to_fixed Carl says he's got similar code, so he'll have to fix things if I get this committed quickly enough. @ text @d1 23 @ 1.49 log @Added cairo-api-update script. @ text @d1 10 @ 1.48 log @Changed names of all cairo_get_* functions to cairo_current_*. Added magic DEPRECATE macro so that using the old names will give useful warnings/errors. Bumped version number to 0.1.1 @ text @d3 3 @ 1.47 log @Add implementation of cairo_get_matrix @ text @d1 18 @ 1.46 log @Optimized _cairo_surface_composite for compositing local memory surface with an X11 server surface. @ text @d1 7 @ 1.45 log @Fixed to use fabs not abs. Added pointer to Hobby's intersection paper. @ text @d1 7 @ 1.44 log @font pixel size is always non-negative @ text @d1 9 @ 1.43 log @Added missing underscores to several internal functions. @ text @d1 3 @ 1.42 log @Fixed anchoring/transformation of pattern for stroke/fill. @ text @d3 12 @ 1.41 log @ * src/cairo_color.c (CAIRO_COLOR_DEFAULT): Mark const. * src/cairo_matrix.c (CAIRO_MATRIX_IDENTITY): Likewise. * src/cairo_path.c (num_args): Likewise. * src/cairo_path_bounds.c (_cairo_path_bounds): Likewise for cb. @ text @d1 7 @ 1.40 log @ * cairo.pc.in: Depend on slim. * configure.in: Check for slim. * src/cairo.h: Include slim_{export,import}.h as needed; mark all symbols __external_linkage. * src/cairoint.h: Include slim_internal.h; mark all symbols __internal_linkage. Provide slim_hidden_proto symbols as needed. * src/cairo.c, src/cairo_matrix.c, src/cairo_surface.c, Provide slim_hidden_def symbols as needed. * src/cairo_traps.c (cairo_traps_add_trap): Mark static. (cairo_traps_add_trap_from_points): Likewise. @ text @d3 7 @ 1.39 log @fixed some typos in the libic PKG_CHECK @ text @d1 14 @ 1.38 log @Fixed a disagreement over whether some internal cairo_gstate_t functions had an '_' prefix or not. @ text @d3 3 @ 1.37 log @Made all changes necessary to abandon the Xc library, (sucking the functionality up into cairo_surface_t instead). Eliminated most of the remaining X datatypes (XFixed, XPointFixed, XLineFixed, XTrapezoid). Fixed some numerical problems relating to pen initialization and intersection calculation. @ text @d3 4 @ 1.36 log @Fix error correction on intersection test to avoid needless spinning. @ text @d1 71 @ 1.35 log @Massive cleanup of polygon tessellation @ text @d1 6 @ 1.34 log @Introduced cairo_fixed_*_t types. Converted several functions from floating to fixed point. @ text @d1 6 @ 1.33 log @Better fix for the previous bug. More complete and more efficient. @ text @d1 18 @ 1.32 log @Fixed some inconsistent tag/typedef names I missed the first time. @ text @d1 9 @ 1.31 log @Renamed everything from Xr* to cairo_* @ text @d1 5 @ 1.30 log @Added XrMatrixGetAffine @ text @d1 7 @ 1.29 log @Added XrGetRGBColor and XrGetAlpha @ text @d3 3 @ 1.28 log @Scaling by 0 now causes an InvalidMatrix error @ text @d1 5 @ 1.27 log @Added XrSurfacePutImage. Fixed missing translation of clip region. @ text @d1 5 @ 1.26 log @Changed default matrix to be 3780 user units per 1 meter physical device @ text @d1 10 @ 1.25 log @Added XrSetTargetImage. Removed _XrGStateSetTargetDrawable, (now implemented as a convenience function in xr.c) @ text @d1 14 @ 1.24 log @Added toplevel functions for setting surface matrix, filter. Introduced new XrMatrix object. Fixed to properly hint scaled fonts. @ text @d1 8 @ 1.23 log @Added XrSetPattern @ text @d1 31 @ 1.22 log @XrStroke and XrFill now both go through the same clipping. Cleaned up the three path interpreters (stroke, fill, and bounds), to each be in their own files @ text @d3 2 @ 1.21 log @Changed XrFormatRGB32 to XrFormatRGB24 @ text @d1 16 @ 1.20 log @Added several query functions. Experimental clip support (still incomplete) @ text @d1 8 @ 1.19 log @Fixed libtool versioning @ text @d1 36 @ 1.18 log @Switched to autotools. Dropped XrPush/PopGroup. Supports non-X Xc rendering. @ text @d1 4 @ 1.17 log @Fixed transformed images to not be 1 pixel too big @ text @d1 17 @ 1.16 log @Fixed algebra used by XrPenVerticesNeeded to avoid sqrt() of negative numbers. @ text @d1 5 @ 1.15 log @Added round caps/joins. Fixed initial cap. Fixed disabling of dashing. @ text @d1 6 @ 1.14 log @Added triangle tessellation. Converted bevel joins from polygons to triangles. @ text @d1 22 @ 1.13 log @Fixed miter limit handling. Added local.def @ text @d1 8 @ 1.12 log @Fixed holes in self-intersecting splines, (from change to winding rule parameter interface) @ text @d1 9 @ 1.11 log @Fixes for transformed images @ text @d1 10 @ 1.10 log @Added group support. @ text @d1 20 @ 1.9 log @Fix memory leak of image pixmap @ text @d1 31 @ 1.8 log @Partial image support. @ text @d1 5 @ 1.7 log @Moved Xft/fontconfig code up from Xc to Xr. Added XrTextExtents @ text @d1 24 @ 1.6 log @Added basic font support @ text @d1 12 @ 1.5 log @Added XrStatusInvalidRestore. Fixed XrSurface memory leak. @ text @d1 9 @ 1.4 log @Moved current point state to XrGState and dropped relative operators from XrPath. This is all in preparation for XrShowText, (which needs access to the current point) @ text @d1 9 @ 1.3 log @Added XrSetFillRule @ text @d1 52 a52 1 2002-10-24 Carl Worth d56 1 a56 1 2002-10-23 Carl Worth d61 1 a61 1 2002-07-16 Carl Worth @ 1.2 log @Fix for paths with multiple polygons disjoint in Y @ text @d1 4 @ 1.1 log @Added ChangeLog @ text @d1 5 @