Commit 6fea16a
authored
Added outline property to pygame.font.Font (#3597)
* Added outline property to pygame.font.Font
* Updated font outline formatting.
* Improved version checks when in font outline tests.
* Expanded font outline documentation to better explain effects of values.
* Deduplicated font outline getter and setter logic.
* Font outline code formatting.
* Changed return Py_None to Py_RETURN_NONE.
* Changed use of RAISE to PyErr_SetString for consistency.
* font.c formatting.
* Removed Font outline getters/setters.
Preferring properties for new values.
* font test formatting fix.
* Removed checks for SDL_TTF < 2.0.12 in outline code.
We depend on SDL_TTF >= 2.0.15, so this is not needed.
* Improved font outline docs.
Specify that the thickness is in pixels, and added example to render
outlined text.
* Updated version note for Font.outline to 2.5.7.
2.5.6 released while this was still in review.1 parent 4b7f812 commit 6fea16a
File tree
5 files changed
+128
-1
lines changed- buildconfig/stubs/pygame
- docs/reST/ref
- src_c
- doc
- test
5 files changed
+128
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
309 | 347 | | |
310 | 348 | | |
311 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
904 | 945 | | |
905 | 946 | | |
906 | 947 | | |
| |||
1168 | 1209 | | |
1169 | 1210 | | |
1170 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
1171 | 1214 | | |
1172 | 1215 | | |
1173 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
691 | 722 | | |
692 | 723 | | |
693 | 724 | | |
| |||
936 | 967 | | |
937 | 968 | | |
938 | 969 | | |
| 970 | + | |
939 | 971 | | |
940 | 972 | | |
941 | 973 | | |
| |||
1023 | 1055 | | |
1024 | 1056 | | |
1025 | 1057 | | |
| 1058 | + | |
1026 | 1059 | | |
1027 | 1060 | | |
1028 | 1061 | | |
| |||
1099 | 1132 | | |
1100 | 1133 | | |
1101 | 1134 | | |
| 1135 | + | |
1102 | 1136 | | |
1103 | 1137 | | |
1104 | 1138 | | |
| |||
1109 | 1143 | | |
1110 | 1144 | | |
1111 | 1145 | | |
1112 | | - | |
| 1146 | + | |
1113 | 1147 | | |
1114 | 1148 | | |
1115 | 1149 | | |
| |||
1123 | 1157 | | |
1124 | 1158 | | |
1125 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
1126 | 1162 | | |
1127 | 1163 | | |
1128 | 1164 | | |
1129 | 1165 | | |
1130 | 1166 | | |
| 1167 | + | |
1131 | 1168 | | |
1132 | 1169 | | |
1133 | 1170 | | |
1134 | 1171 | | |
1135 | 1172 | | |
1136 | 1173 | | |
1137 | 1174 | | |
| 1175 | + | |
1138 | 1176 | | |
1139 | 1177 | | |
1140 | 1178 | | |
| |||
1176 | 1214 | | |
1177 | 1215 | | |
1178 | 1216 | | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1179 | 1220 | | |
1180 | 1221 | | |
1181 | 1222 | | |
0 commit comments