Search Results

Search results 1-20 of 1,000. There are more results available, please enhance your search parameters.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Try the code below. The font gets created within the parent window of a button. The font data and the handle to the file needs to be valid as long as the button uses the font. Therefore the variables are declared static. On delete of the window (which does not occur in this example) the button gets also deleted (automatically). At this point the font is not used anymore and can be deleted, too. Although, the window never gets deleted in this example it should show how to make sure a font sta…

  • Hi, Quote from Mark_C: “Is it OK like this or is it necessary to make some other setting? ” This is the only location where you need to configure the memory used by emWin. Any emWin operation which needs a piece of memory uses this memory block. The only exception is the GUIDRV_Lin driver. Its framebuffer needs to be allocated by the user. Regards, Sven

  • Hi, I don't really understand what you are trying to do... please specify. Quote from LXW: “I wanted to use the pre-stored 4bit bitmap data ” Which 4bit bitmap? GUI_DrawPixel() is pretty in efficient for drawing more than one pixel. You should use the GUI_FillRect() function. Regards, Sven

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, No, it's the same procedure. Create a font, e.g. by calling GUI_XBF_CreateFont((GUI_FONT*)&Font, &Data, GUI_XBF_TYPE_PROP_AA4_EXT, _GetData, pFile), and use the initialized GUI_FONT structure for your widget. Just make sure it stays valid as long as any object uses the font. Regards, Sven

  • XBF fonts mismatch

    SEGGER - Schoenen - - emWin related

    Post

    Hi, How do you create the font within your application? Make sure the third parameter matches the xbf file: C Source Code (1 line) Here you will find an example regarding XBF fonts: wiki.segger.com/Set_external_XBF_font_(Sample) Or is the Font Converter you are using a demo version? Earlier demo version produced a non usable output. Under the link below you will find the latest demo version of the Font Converter (no limitation in regards of functionality, you're not allowed to use it in a commer…

  • Hi, how much memory did you spend for emWin (function call of GUI_ALLOC_AssignMemory())? I can't say why it is crashing. On my end it is working just fine. Regards, Sven

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, 1. This depends on the languages and the fonts. Lets say the languages are German, English and Chinese and the font contains the code points for Latin languages you would be able to display English and German. Obviously you couldn't display Chinese and you would need to use another font for Chinese. If your font contains also the desired Chinese characters you could display all three languages. With the Font Converter it is also possible to merge two fonts. Just refer to chapter '8.4.10 Merg…

  • Hi, Can you post some example code which allows me to reproduce the behavior? Regards, Sven

  • plot graph from (0,0)

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Try C Source Code (1 line)Regards, Sven

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, Here is an example on how to use an external XBF font: wiki.segger.com/Set_external_XBF_font_(Sample) It is written to be used either with the Windows FS API in the emWin simulation or with our FS emFile. Of course, it shouldn't be much work to change the example for any other FS. If you are using an external font you have to make sure that the font being created with GUI_XBF_CreateFont() stays valid as long as it is used by an object. Regards, Sven

  • Iconview spacing

    SEGGER - Schoenen - - emWin related

    Post

    Hi, This behavior was fixed with the emWin V6.14. Now items are getting selected only if the icon really has been clicked. You can either wait for your silicon vendor to release this version for their devices or you purchase a source code upgrade: segger.com/products/user-inter…win/emwin-source-upgrade/ This upgrade entitles you to get get access to the source code of emWin and you will get frequent updates to the latest version. Unfortunately, there is no easy way of changing this behavior. You…

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, for example google fonts are for free use (as far is I understand): fonts.google.com/ Second question under FAQ: developers.google.com/fonts/faq2 Quote from bio_med: “Could you please point me in the direction of finding the list of fonts explicitly to be used in a commercial product? ” Google does this better than me Regards, Sven

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, 1. You can use a pattern file. - Create a text file with Unicode encoding (in Notepad++ it is under 'Encoding' -> 'Encode in UCS-2 Little Endian') - Write the strings used in your application into this file - Open a font with the Font Converter. - Go to 'Edit' -> 'Disable all characters' - Go to 'Edit' -> 'Read pattern file...' and open the pattern file created before Now all unused characters of the font are grayed out. 2. Good question. Unfortunately, I have no idea how to proceed here. I …

  • Hi Alexis, Quote from alexis.marquet: “That led me to try this with the screens order the "original way", and again, load time was decreased by about 10seconds, from 2 minutes 40s down to 2 min 30s. ” This seems to be way too long. Unfortunately, I have no idea why this might take that long. The only thing I could imagine right now is the image format. Quote from alexis.marquet: “2. the chosen cpu specs seems too low, considering the 800x480 ” Yes, an MCU running with 90MHz seems to be slow for …

  • Hi, The memory allocated with the function GUI_ALLOC_AssignMemory() in GUI_X_Config() is used to allocate memory for anything emWin needs memory for. This can be: Windows Widgets Memory Devices Driver memory (except the frame buffer of GUIDRV_Lin) Driver context structure QR codes Any special devices (Rotation, Alpha, ...) I'm pretty sure I have forgot something but it should give you an idea about which things need memory from this memory pool. You could increase the memory that everything is r…

  • Hi, When receiving a WM_NOTIFY_PARENT message a widget has send it to its parent. In this case pMsg->Data.v contains the notification code the widget has send. The ID is just to distinguish between the child windows/widgets a window/widget can have. Quote from daveb4: “If I start the app id_value = 801 and n_value = 8 ” The child widget with ID 801 has send a WM_NOTIFICATION_GOT_FOCUS (8) message. Quote from daveb4: “If I click my button id_value = 801 and n_value = 1 ” Same widget has send a WM…

  • Create chinese font

    SEGGER - Schoenen - - emWin related

    Post

    Hi, All widgets which can have a text set have a default font. As long as you don't reference these widgets it shouldn't be linked to the application. Also emWin uses a default font GUI_Font6x8 which can not be changed when using a precompiled library. If you have access to the source code you can remove all default fonts. With the source code you would also have other options to reduce the footprint by removing unneeded features and set other preprocessor options. For users of emWin provided by…

  • Hi, Unfortunately, there is no such list available. In chapter '6.1.2.1 Rendering using callbacks' you will find a description which give an idea about what kind of functions shouldn't be called. In general you should simply avoid calling function which create something (windows, widgtes, memory devices, ..). Also you shouldn't set any properties within a paint event. The problem is that you can not always how often a WM_PAINT message gets send to a window. Just image you would call a BUTTON_Cre…

  • Hi, Indeed this seems to be pretty slow. I could imagine that the image format has a big impact on the performance. Try the following: Click on the Image button in the lower left corner of the AppWizard. This will open the Images dialog. In the 'Format' column the format of the bitmaps is set to 'Auto'. You can change this. If an image uses 32bpp but the target uses only 16bpp the AppWizard converts the images into an 16bpp format which has also one additional byte for alpha values. Unfortunatel…

  • Hi, if you are using the default look of a button you can do the following: Source Code (5 lines)Please note that this can be globally for all buttons. You could alos overwrite the callback functon and draw the button only with one state. The same is true for setting a custom skinning function. Here is an example on how to overwrite the callback function: wiki.segger.com/BUTTON_-_Custom_(Sample) This one shows how to set a skinning routine: wiki.segger.com/Skinning_routine_(Sample) Regards, Sven