# Can someone try to find this library in Processing?

**URL:** <https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488>\
**Category:** Libraries\
**Created:** [July 4, 2018, 4:21am UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488 "2018-07-04T04:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![apratt](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@apratt](https://discourse.processing.org/u/apratt)\
**Post date:** [July 4, 2018, 2:06pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488/9 "2018-07-04T14:06:55Z")

</div>

> [@kfrajer](#):
>
> On a side note. I tested the library using **linearCorrelation.pde** and it works. However, other provide exaples fail. The solution for most of them is easy. I tried **UniqueExample.pde** to show you what you need to do. You need to make sure all the PFonts are created inside `setup()` . The second change is to move the `size()` function from `setup()` to 'settings()`. After you implement these changes, everything should run smooth. So for instance (pseudo-code):
> 
> ```auto
> // font
> PFont titleFont = createFont("Helvetica", 15, true);
> PFont smallFont = createFont("Helvetica", 12, true);
> PFont tinyFont = createFont("Helvetica", 9, true);
> 
> [...] //Other fields
> 
> void setup() {
> size(500, (int)yTop+(int)yHeight+60);
> 
> [...] //Other setup commands
> 
> ```
> 
> Should be rewritten like this:
> 
> ```auto
> // font
> PFont titleFont;
> PFont smallFont;
> PFont tinyFont;
> 
> [...]
> 
> void settings(){
> 
> ```

Thanks for the help. The code runs fine on my Mac. I get exactly what I want and the new window pops up clean, but I get an error when I run it on my Windows 7 PC. Not sure why that is. Its the same code, everything is in the same location. I posted a picture below to show the error I get. Anyone know why that is and a solution?

 ![2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/7226453b618f735473c3ca9ebafd22418810804a.png)

---

_[View the full topic](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488)._
