Tk Source Code

Artifact [caf3fb47]
Login

Artifact caf3fb47e1dbbf4ff8efa47b23b593636783b5ac:

Ticket change [caf3fb47] - Ticket [434d294d] fix type mismatch in unix/tkUnixRFont.c status still Open with 3 other changes by yorwba 2017-02-23 07:55:48.
D 2017-02-23T07:55:48.345
J icomment I\snoticed\sthe\sbug\susing\sTkinter\sfrom\sPython,\sbut\sthen\sgrabbed\sthe\sTk\s8.6.6\starball\sto\sreproduce.\r\n\r\nOutput\sof\sunpatched\swish:\r\n%\sfont\sactual\s{times\s-12}\r\n-family\s{TeX\sGyre\sTermes}\s-size\s0\s-weight\snormal\s-slant\sroman\s-underline\s0\s-overstrike\s0\r\n\r\nPatched:\r\n%\sfont\sactual\s{times\s-12}\r\n-family\s{TeX\sGyre\sTermes}\s-size\s9\s-weight\snormal\s-slant\sroman\s-underline\s0\s-overstrike\s0\r\n\r\nWhile\smultiple\sfunctions\sof\sthe\sXftPattern*\sinterface\scan\sbe\sused,\r\neach\sproperty\smust\sbe\sset\swith\sthe\scorrect\stype.\r\nIf\syou\slook\sat\sthe\stable\sunder\r\nhttps://keithp.com/~keithp/talks/xtc2001/paper/xft.html#sec-xft-name\r\nyou\scan\ssee\sthat\sboth\ssize\sand\spixelsize\sare\ssupposed\sto\sbe\sdoubles.\r\n\r\nXft\s(actually\sfontconfig)\sdoesn't\sdo\sany\stype\sconversions\sat\sthe\sboundary\r\nwhen\syou\stry\sto\sset\sthe\spixel\ssize\sto\sthe\sinteger\svalue\s12.\r\nInstead\san\sinteger-valued\sunion\sfield\sis\sset\sand\swhen\sfontconfig\sconverts\r\nthe\spixel\ssize\sinto\sthe\spoint\ssize,\sit\sreads\sthe\sdouble\sfield,\swhich\shas\r\nvalue\s5.9287877500949585e-323.\sDuring\sconversion\sthis\svalue\sunderflows,\r\nyielding\sa\spoint\ssize\sof\s0.
J login yorwba
J mimetype text/plain
K 434d294df8b053246ee86e7898d06bc3a6d1d771
U yorwba
Z 25f93555da451643bd5c51e383b78d89