Skip to content
Tcl Source Code Artifact [7007dbc553]
Login

Artifact [7007dbc553]

Artifact 7007dbc553cc4f2fa861de2df02ee01919e8cf71:

Ticket change [7007dbc553] - New ticket [185712c86116912e|185712c861] <i>Font height calculation seems to be wrong</i>. by anonymous on 2017-01-18 10:11:21.
D 2017-01-18T10:11:21.463
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\spriority\sshould\spossibly\sbe\sset\sto\ssomething\sthat\swould\scorrespond\sto\s"annoying!".\r\n\r\nProblem\sdescription:\r\nThe\slower\sfew\spoints\sof\sfonts\sare\smissing,\sat\sleast\sfor\ssome\s(fonts\sand)\ssizes.\r\n\r\nFont\sused:\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sDejaVu\sSans\sMono\r\nProblem\svisible\sat\ssizes:\s\s\s\s\s\s4,\s7,\s10\r\nLower\sline(s)\sdisappear\sfor:\s\s\s'_',\snot\sso\svisible\sfor\sg,j,p,q\sand\sy\s\r\n\r\nOS:\s\s\sLinux/Ubuntu\s16.10\s(I\sdo\snot\sthink\sthe\sproblem\swas\spresent\sin\sthe\s16.04\sversion)\r\nHW:\s\s\sLenovo\sy70-70\sTouch\r\n\r\nThe\simpact\sis\sless\sfor\slarge\sfonts\sas\sthere\sare\smore\spoints\savailable.\r\n\r\nI\shave\sconfirmed\sthat\swish\sitself\s(or\ssub-functionality)\sand\snot\sgit-gui\sis\sto\sblame\susing\sthe\sconsole.tcl\sfound\sat\s<http://wiki.tcl.tk/786>\sreferenced\sfrom\s<http://wiki.tcl.tk/36843>.\s\sI\shave\salso\sverified\sthat\sthe\sproblem\sis\snot\sfound\sin\sLibre\sOffice\sWriter\sfor\sthe\ssame\sfonts\sand\ssizes.\s\r\n\r\nPreliminay\sanalysis:\r\nIt\sseems\sthat\sthe\slower\sline(s)\sare\smissing\swhen\sthe\sfont\ssize,\sn,\sdevided\sby\s3\sgives\sm\s+\s1/3\sand\sis\srounded\sdown\sto\sm.\s(integer\sdivision).\s\sIf\sthe\svalue\shad\sbeen\srounded\sup,\sthe\sproblem\swould\sprobably\snot\sappear/exist.\r\n\r\nWorkaround\salternatives:\r\n-\sChange\sfont.\r\n-\sChange\sfont\ssize.\r\n-\sStop\susing\sunderscores.\r\n\r\nDiscovery:\r\nI\shave\sbeen\susing\swish\sthrough\sgit-gui\sfor\ssome\syears.\s\sWhen\scomparing\sversions\susing\sgit-gui\sI\snoticed\sthat\sthe\sunderscores\swere\smissing\sand\sthe\scode\slooked\svery\sstrange.\s\sIf\sthis\shad\sbeen\snormal\stexts\s(like\sfrom\sa\sbook\setc)\sthe\sproblem\swould\snot\sbe\sso\ssevere.\s\sBut\sas\sI\sam\sa\sC\sprogrammer,\sunderscores\s(_)\sare\soften\sused\sto\sseparate\swords\sin\sa\svariable\sor\sfunction\sname\setc.\s\sThis\swould\stherefore\sapply\sto\sother\sC\sprogrammers\sas\swell.\r\n\r\nI\sbelieve\sthe\sproblem\sappeared\swhen\schanging\sfrom\sUbuntu\s16.04\sto\sUbuntu\s16.10.
J foundin 8.6
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact d3e8c75ed2c619c7c59e6c4e2d9cb99db1625718
J resolution None
J severity Cosmetic
J status Open
J submitter anonymous
J subsystem None
J title Font\sheight\scalculation\sseems\sto\sbe\swrong
J type Bug
K 185712c86116912ee9b853ee2e1ec9f39365d8ad
U anonymous
Z 20cf1891d22986c96631b5549fd2edac