Hi Everybody, I hope someone can help with this, it's taken so long to get this close but I just can't figure out the last small (but show stopping) detail. I start with a string of text and a font-face entered/selected via a form. I am using imagettfbbox to determine the overall dimensions and the descent (height below the baseline) value of the string using the selected font. Then I create an image using those dimensions and create the same text in that image using the same font (again, using imagettfbbox). I position the imagettfbbox at x = 0 and …

Member Avatar
Member Avatar
+1 forum 3

Is there something wrong with this code i wrote? i get the feeling i made a mistake and cant quite recall what, its quite frustrating. The function is supposed to determine the dimensions of a matrix and if it is, or is not, a valid matrix ( for example, if a row in the matrix isn't equal to another, and such) [CODE] def matrixDimensions(m): z = [] ms = len(str(m).split('[')) - 2 for x in range(ms): z.append(len(m[x])) if z[0] == z[1]: return "This is a %dx%d matrix." % ((len(z)),z[0]) else: return "This is not a valid matrix." [/CODE] im sure …

Member Avatar
Member Avatar
+0 forum 2

hi everyone this is my first post and yes, im just starting with cpp im using devc++ so i have this homework which i could get done for its due date but still it would really help me to understand more about cpp if i could get it done but i cant so if someone could help me with this one i would really appreciate it the program should do the following tasks *print in screen the data from a matrix stored in a txt file *the first two numbers from the txt represent the size of the matrix * …

Member Avatar
Member Avatar
+0 forum 3

Hi, When I set width and height properties in the <iframe> tag, it sets the width and height respectively, however, the "src" page inside the iframe is still small and has a scroll bar. Is there a way to set the src to be equal to the iframe dimensions? Thanks, Ashton.

Member Avatar
Member Avatar
+0 forum 2

Hi, I would like to set the dimensions of an iFrame according to the content inside. Please bare in mind that the content inside will be based on ajax, so it will change without the page reloading. Thanks, Ashton.

Member Avatar
+0 forum 0

The End.