{"_id":"@autoit-gui-skeleton/ags-wrapper-string-size","_rev":"3-63dffa78d57c5929b80a8ec3fd7db5df","name":"@autoit-gui-skeleton/ags-wrapper-string-size","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@autoit-gui-skeleton/ags-wrapper-string-size","version":"1.0.0","description":"AGS package for the library StringSize.au3, created by Melba23. This library takes a text string and calculates the size of label required to hold it as well as formatting the string to fit.","author":{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"},"contributors":[{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"}],"license":"MIT","keywords":["AGS","AutoIt","AutoIt-GUI-Skeleton","AGS-wrapper","StringSize"],"homepage":"https://autoit-gui-skeleton.github.io/","repository":{"url":"git+https://github.com/autoit-gui-skeleton/ags-wrapper-string-size.git","type":"git"},"bugs":{"url":"https://github.com/autoit-gui-skeleton/ags-wrapper-string-size/issues"},"AGS":{"framework":{"version":"1.0.0"},"AutoIt":{"version":"3.3.14.5"},"wrapper":{"main":"StringSize.au3"}},"gitHead":"1e13c30709979f411931819f2b2aa419e42eeb12","_id":"@autoit-gui-skeleton/ags-wrapper-string-size@1.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-dBsLc8jA/yNAzJORRlEPBmUwDDCEWKj0py+bAHf4qz4PtQqSr/R2CzrTMKJszzSxv6vu+qfWAfhKJMLQyrtLWA==","shasum":"56fad933ce4bcf0558a156afcb0d761072a0e553","tarball":"https://registry.npmjs.org/@autoit-gui-skeleton/ags-wrapper-string-size/-/ags-wrapper-string-size-1.0.0.tgz","fileCount":3,"unpackedSize":19398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm5snCRA9TVsSAnZWagAAFOAP/03Czm8EkixOirBv6vXo\nXfV50V4C7uB9s1lI8DAzA3YVZmMGBEDFE0of3TpguphG5938aTTBEd05ox6v\nKlk1MF0aN3AJz5ngdxrpWOF9rodHhDYJVvzMGsr+Nxvphz6ELWF+nG9jpTg5\n0n4fQwiWOLh46N2SxPun4yDTNwVvh5615hr+kVXmZ9q/W34mSQDj3pFhJuxB\nPKQdMS2GkBiGx8vyoxV3bcjWqj8Wy6u7kH2bDDpAKlarJSI22d/nYo8bNgQJ\nbxFR10/dziFiWjRW0nX88R2FmazGVK5k1tVlntB5vg19xNUFaFqcsXOt6paR\n/tv2gNX+Q5btKvMdzp566ge/MM9hrgQ0BgG0cWRezKUy/2VnyQTQwfOYLEUY\nucExfJWvwXPqQYmdXLrwQb7Zdc2XzzJTmlCYaSOw4BiG3tZUs1NKHxrjpEn1\nOSyfDaxHVorriLzkDkhNdAp1v3UyT+c9VokFz/Pp4a91LGpok7n1VIQqNAU8\nZ9zcIZ45/dq3Xf5cm09yhMhhZ9DuYTKmpWqnu9x5pUMsJIrGrP1Sc0TabIfW\nuEdw0yBGAXFOOvxXcCDOqBdceJb7S9kxzPx58g/AKJjPuNRA34J/T0qsF/sv\nhhPRV1RRd8AvWyfmt9WVh/59NhYu6L/PQPG0jbWPQXs/2YWmHg0xVPD8fKur\ntPWu\r\n=afTt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmbOEjbelhDWYXpAnaIA3xwLp2yaxWMh2IEEfApfi4bAiBhF71rZZa/QtzAPBgHaUZgu/HwfsSM/AG4vc3B+p2Bhg=="}]},"_npmUser":{"name":"v20100v","email":"vb20100bv@gmail.com"},"directories":{},"maintainers":[{"name":"v20100v","email":"vb20100bv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ags-wrapper-string-size_1.0.0_1637587751460_0.4155716645379721"},"_hasShrinkwrap":false},"1.0.1":{"name":"@autoit-gui-skeleton/ags-wrapper-string-size","version":"1.0.1","description":"AGS package for the library StringSize.au3, created by Melba23. This library takes a text string and calculates the size of label required to hold it as well as formatting the string to fit.","author":{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"},"contributors":[{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"}],"license":"MIT","keywords":["AGS","AutoIt","AutoIt-GUI-Skeleton","AGS-wrapper","StringSize"],"homepage":"https://autoit-gui-skeleton.github.io/","repository":{"url":"git+https://github.com/autoit-gui-skeleton/ags-wrapper-string-size.git","type":"git"},"bugs":{"url":"https://github.com/autoit-gui-skeleton/ags-wrapper-string-size/issues"},"AGS":{"framework":{"version":"1.0.0"},"AutoIt":{"version":"3.3.14.5"},"wrapper":{"main":"StringSize.au3"}},"gitHead":"0b83b4d4a4e8319c612831e866815ef8678c9022","_id":"@autoit-gui-skeleton/ags-wrapper-string-size@1.0.1","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-8/6RoH0l4Qf/oLcAmW4m0d38shXk7+K2qCwZy3JCsaEqxICdAXYOcImM9ypqWTx/5OnqLRHjSyUErJFRNXBxUQ==","shasum":"6a7a7ad457df695e7db429614f72c95d642ecb42","tarball":"https://registry.npmjs.org/@autoit-gui-skeleton/ags-wrapper-string-size/-/ags-wrapper-string-size-1.0.1.tgz","fileCount":3,"unpackedSize":19413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm5yICRA9TVsSAnZWagAAHooP/isiVIuIHsQfP7zHLIAu\n3cxNED+pzqB75AmcrM5/hkCIyWk4kl3ZhDR0y6RVkwBH0DV39Mf3g7NjGy0q\nykOUvr2lwWGvF9ncsQVFGLsAJjPfbirAxxYNXtkoVZyf+cIbR1mY1IkAMgVS\n4uzzMCdqR3HpBLcuiojrX/ZmgtnldB3kR9d4VkzcZTGqZbLS5cHKVQLQE3mL\n7RRuuBai0kacrwP0h9Tdw85Y3mlZlOwmNcxmapYHrE/TD4H2aGlCihK0gUnp\nwM8I0AgMU/jK8BBXzgp7a+7JpTVwIKfXpKd0rgwo/Tc7UVwxm0q47dULpsEF\n3Zk0j/BdxnA1gBEbx9RVPS4fj07n8m5hIfgK2mEuZpZRYD1F7jbLallTcy5x\nTT5DZFYVQwjmwDETQ1P7jVLk+Uc0eHTlpf0Y2e9fKUAFCEIEjsWEMH/dqpTh\ndQM2egaJi3DuMbrLGca1T9I7KTKkS1s3VWGkBChzKjfrAioAChMQz3XHEAy3\n0MTRR698AgpxFsnNvUhuRNGUL4tTfFnoGWi+IaAMWMGHGjarwy8LDMtxFv1z\n3Q/hICyhsFcN98U5V7uGu7NYniY4ewFgKvZCrq0UaY8fOTHmKSsEy82vqBc3\nbAznWWxLSzW8b8AWVm/SUxC4q9K9J5NnQRP8ieFbF3pHwWV8rgZfaFmvrJCa\nBDZZ\r\n=n6+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdpJtRGW6jSQL3iP+KpvV+6N4eCJdaj09d7mHgVYe9OAiAW/lSO4OFGAf9JMXwAN5vc4UvWPKAHsUqNK8xqy0HRag=="}]},"_npmUser":{"name":"v20100v","email":"vb20100bv@gmail.com"},"directories":{},"maintainers":[{"name":"v20100v","email":"vb20100bv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ags-wrapper-string-size_1.0.1_1637588104172_0.13328620010315562"},"_hasShrinkwrap":false},"1.0.2":{"name":"@autoit-gui-skeleton/ags-wrapper-string-size","version":"1.0.2","description":"AGS package for the library StringSize.au3, created by Melba23. This library takes a text string and calculates the size of label required to hold it as well as formatting the string to fit.","author":{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"},"contributors":[{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"}],"license":"MIT","keywords":["AGS","AutoIt","AutoIt-GUI-Skeleton","AGS-wrapper","StringSize"],"homepage":"https://autoit-gui-skeleton.github.io/","repository":{"url":"git+https://github.com/autoit-gui-skeleton/ags-wrapper-string-size.git","type":"git"},"bugs":{"url":"https://github.com/autoit-gui-skeleton/ags-wrapper-string-size/issues"},"AGS":{"framework":{"version":"1.0.0"},"AutoIt":{"version":"3.3.14.5"},"wrapper":{"main":"StringSize.au3"}},"gitHead":"bbe0dc8fa3b1c1527875797730ba3235e9e78b87","_id":"@autoit-gui-skeleton/ags-wrapper-string-size@1.0.2","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-m0bqUe5mxIrcY84uES+bEEf0oZ9CkCB0PjrSr81xoS4q5xgbYywSR39VOm9iCoazPA8Z7M8P2CcDT27zNUkoqQ==","shasum":"76b1f0b4f2dd14453e924ae145e8a8fa585d96e9","tarball":"https://registry.npmjs.org/@autoit-gui-skeleton/ags-wrapper-string-size/-/ags-wrapper-string-size-1.0.2.tgz","fileCount":3,"unpackedSize":19320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnfQHCRA9TVsSAnZWagAADI8QAJkXUWnAl4HObaJMVaYt\nS+M2wpLHVEGXadnGviZPm/g6wMKkwDkDDuxrCI65xAPPxL9+uZVLFFEzjKvz\nrQl/tZ7r+DA2XBQ0FdwQLFMitLbd3tyGRYAPqmrTYkkY1f7O04FqC7Lssk8+\no+JdRmcMBuCRozzxd619PcLvwBF0hoOJW3PKarBkUT9pXNeL9rQOxkCGaprv\nl+hxA43k6UnIxpVsKZNpBghxoV/Hc0tJo5/d+RYYlRZ23IKaEWEcoH1Jm1/T\nBa4mHng0LXX4Ql7ruNtecoXzKxytiUWiwlzno5xBwZmXOxWFaBgGMnF2Y1g3\nWnt0vqAix4z8BLLbL38wHcQF/zbXrDNto/oOp0nMz+02JjpgHT4wtXKXJcu6\nS63vxs53a5Ik/gn3+EYc1qIL4EErAlTtQfIsWuiIZVnsgLZWEapu8mxZdzTW\n9OxlOZXYrbBfbe2af+nTGL1FURQNAMVPYZSBOQenJj7NKyypJZKB03lhnv6y\nwHOlt20RdCsP44Md/qQuXIHag7P3hM6P/KyXVTjMENheqopuHTY8glDQwgq8\nFjFgLqktUpJsygCLy4MZPVmu1LdHsGKjXwFdarkWrKbR+ttAD3aIpmgE02ii\nAQ1xFU09X6X+AFGvjQhEF2yhjf6UueklOBOJROgWSXCf1S3KnL6DsK+fuhBz\nt5ov\r\n=O4QM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEIrhl7JHbw15KpxdkW8kPB8I53tMEdOndfOEG8iC2wxAiEAmBn9bRYt3MNl91zJ14ScCJB8eY0pV9b2QVGPXQktO2s="}]},"_npmUser":{"name":"v20100v","email":"vb20100bv@gmail.com"},"directories":{},"maintainers":[{"name":"v20100v","email":"vb20100bv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ags-wrapper-string-size_1.0.2_1637741575163_0.269667193359878"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-22T13:29:11.412Z","1.0.0":"2021-11-22T13:29:11.608Z","modified":"2022-04-04T16:37:27.060Z","1.0.1":"2021-11-22T13:35:04.346Z","1.0.2":"2021-11-24T08:12:55.309Z"},"maintainers":[{"name":"v20100v","email":"vb20100bv@gmail.com"}],"description":"AGS package for the library StringSize.au3, created by Melba23. This library takes a text string and calculates the size of label required to hold it as well as formatting the string to fit.","homepage":"https://autoit-gui-skeleton.github.io/","keywords":["AGS","AutoIt","AutoIt-GUI-Skeleton","AGS-wrapper","StringSize"],"repository":{"url":"git+https://github.com/autoit-gui-skeleton/ags-wrapper-string-size.git","type":"git"},"contributors":[{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"}],"author":{"name":"v20100v","email":"vb20100bv@gmail.com","url":"https://github.com/v20100v"},"bugs":{"url":"https://github.com/autoit-gui-skeleton/ags-wrapper-string-size/issues"},"license":"MIT","readme":"AGS-wrapper-string-size\r\n=======================\r\n\r\n> [AutoIt Gui Skeleton](https://autoit-gui-skeleton.github.io/) package for wrapping the library [StringSize.au3](https://www.autoitscript.com/forum/topic/148114-a-non-strict-json-udf-jsmn/) created by Melba23 (thanks to tranxexx for the default DC code). See this package on [npmjs.com](https://www.npmjs.com/package/@autoit-gui-skeleton/ags-wrapper-string-size/)\r\n\r\n\r\n\r\n<br/>\r\n\r\n## StringSize\r\n\r\nThe StringSize library takes a text string and calculates the size of label required to hold it as well as formatting the string to fit.\r\n\r\n```autoit\r\nLocal $stringSize = _StringSize($text, $fontsize, $fontweight, $fontattribute, $fontfamily, $GUI_width - $marginLeftRight*2)\r\n\r\nIf(Not @error) Then\r\n      $label_TEXT_reformated = $stringSize[0]\r\n      $label_WIDTH_calculated = $stringSize[2] ; ($stringSize[2] / $dpi)\r\n      $label_HEIGHT_calculated = $stringSize[3] ; ($stringSize[3] / $dpi)\r\n    \r\n      GUISetFont($fontsize, $fontweight, $fontattribute, $fontfamily)\r\n      GUICtrlSetData($label_ID, $label_TEXT_reformated)\r\n      GUICtrlSetPos($label_ID, $marginLeftRight, $top, $label_WIDTH_calculated, $label_HEIGHT_calculated)\r\nEndIf\r\n```\r\n\r\n<br/>\r\n\r\n## How to install AGS-wrapper-wrapper-string-size ?\r\n\r\nWe assume that you have already install [Node.js](https://nodejs.org/) and [Yarn](https://yarnpkg.com/lang/en/), for example by taking a [Chocolatey](https://chocolatey.org/). AGS framework use Yarn for manage dependencies.\r\n\r\nTo add this package into your AutoIt project, just type in the root folder of your AGS project where the `package.json` is stored. You can also modify the `dependencies` property of this json file and use the yarn [install](https://yarnpkg.com/en/docs/usage) command. It is easier to use the add command :\r\n\r\n```\r\nλ  yarn add @autoit-gui-skeleton/ags-wrapper-string-size --modules-folder vendor\r\n```\r\n\r\nThe property `dependencies` of the  `package.json` file is updated consequently, and all package dependencies, as well as daughter dependencies of parent dependencies, are installed in the `./vendor/@autoit-gui-skeleton/` directory. Note that with an AGS project, it is not necessary to explicitly write this option `--modules-folder vendor` on the command line, thanks to the `.yarnrc` file stored at the root of the project. Yarn automatically use `.yarnrc` file to add an additional configuration of options.\r\n\r\n```\r\n #./.yarnrc\r\n --modules-folder vendor\r\n ```\r\n\r\nFinally to use this library in your AutoIt program, you need to include this library in the main program. There is no need for additional configuration to use it.\r\n\r\n```autoit\r\n#include './vendor/@autoit-gui-skeleton/ags-wrapper-string-size/StringSize.au3'\r\n```\r\n\r\n\r\n\r\n<br/>\r\n\r\n## What is AGS (AutoIt Gui Skeleton) ?\r\n\r\n[AutoIt Gui Skeleton](https://autoit-gui-skeleton.github.io/) give an environment for developers, that makes it easy to build AutoIt applications. To do this AGS proposes to use conventions and a standardized architecture in order to simplify the code organization, and thus its maintainability. It also gives tools to help developers in recurring tasks specific to software engineering.\r\n\r\n> More information about [AGS framework](https://autoit-gui-skeleton.github.io/)\r\n\r\nAGS provides a dependency manager for AutoIt library. It uses the Node.js ecosystem and its dependency manager npm and its evolution Yarn. All AGS packages are hosted in npmjs.org repository belong to the [@autoit-gui-skeleton](https://www.npmjs.com/search?q=autoit-gui-skeleton) organization. And in AGS you can find two types of package :\r\n\r\n- An **AGS-component** is an AutoIt library, that you can easy use in your AutoIt project built with the AGS framework. It provides some features for application that can be implement without painless.\r\n- An **AGS-wrapper** is a simple wrapper for an another library created by another team/developer.\r\n\r\n> More information about [dependency manager for AutoIt in AGS](https://autoit-gui-skeleton.github.io//2018/07/10/ags_dependencies_manager_for_AutoIt.html)\r\n\r\n\r\n<br/>\r\n\r\n## About\r\n\r\n### Acknowledgments\r\n\r\nAcknowledgments for [Melba23](https://www.autoitscript.com/forum/topic/114034-stringsize-m23-new-version-16-aug-11/) work and its library StringSize.au3.\r\n\r\n\r\n### Contributing\r\n\r\nComments, pull-request & stars are always welcome !\r\n\r\n### License\r\n\r\nCopyright (c) 2018 by [v20100v](https://github.com/v20100v). Released under the MIT license.\r\n","readmeFilename":"README.md"}