How can I manage css and php gd2 font size?

Tags: css,image-processing,php-gd

Problem :

Font size of php gd2 and css is different.

How can I manage it?
Any formula to manage it?

Because when I send a string with font size in css it prints much larger in php gd2 than css font.

Please tell me some ideas to manage it.

Solution :

in different versions of php_GD there different types of fonts. if you are using php-gd2 font type is used pt (point) not px. and in first php-gd i think px is font unit.

    CSS Howto..

    How to achieve this diagonal drop down effect with CSS?

    How to change the background color of a span/div WITHOUT CSS [closed]

    how to organize all js, css, php and html code?

    How to addClass() at RANDOM to an element in jQuery?

    CSS: How do I select CSS for all the
  • elements that do have not been styled yet?
  • How to create a HTML and CSS “Try it yourself” Editor [closed]

    with Box-Shadow = 6 cicles. How it works?

    CSS/JQuery: how to create submenu for table row that stays visible mousing from row onto menu?

    Showcase Image and Carousel Caption

    How does displays/hides an element through Css?

    How to disable CSS Class on particular DIV

    How to force or bring vertical scroll bar to front in html css

    In a responsive layout how can I get divs to shrink uniformly?

    Where do I put my CSS, how do I link to it from the master page?

    How can I change the text decoration on numbers only on my web page?

    .show() not working on page load

    How to detect all events added on a div

    How to dynamically change the value of a CSS property inside a stylesheet?

    How to scroll through a div before the page scrolls?

    How to show a div thats hidden by css on button click

    How to make jQuery show() stay on page

    How to remove blue border around the button in Firefox?

    How to add css to form elements if attribute class is already being used in Jquery

    How I can center a menu bar with ul

    How to reset CSS3 *-transform: translate(…)?

    How to change div border automatically when more children are added to it

    How to filter and show only applied CSS in Chrome Developer Tools (like Firebug in Firefox)

    How to target items

    How to Set Banner-Like Background Image With CSS

    How to achieve multi column layout with inline images