2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 using System.ComponentModel;
18 using System.Collections.Generic;
19 using Tizen.NUI.BaseComponents;
25 /// FontClient provides access to font information and resources.
27 /// <since_tizen> 5 </since_tizen>
28 public class FontClient : BaseHandle
30 private static readonly FontClient instance = FontClient.Get();
32 internal FontClient(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
36 internal FontClient() : this(Interop.FontClient.NewFontClient(), true)
38 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
41 internal static uint DefaultPointSize
45 uint ret = Interop.FontClient.DefaultPointSizeGet();
46 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52 /// Gets the singleton pattern of the FontClient object.
54 /// <since_tizen> 5 </since_tizen>
55 public static FontClient Instance
64 /// This is used to pre-cache FontConfig in order to improve the runtime performance of the application.
66 /// <param name="fallbackFamilyList">A list of fallback font families to be pre-cached.</param>
67 /// <param name="extraFamilyList">A list of additional font families to be pre-cached.</param>
68 /// <param name="localeFamily">A locale font family to be pre-cached.</param>
69 /// <param name="useThread">True if the font client should create thread and perform pre-caching, false otherwise.</param>
70 /// <param name="syncCreation">True if thread creation guarantees syncronization with the main thread, false async creation. Optional, the default value is true.</param>
71 [EditorBrowsable(EditorBrowsableState.Never)]
72 public static void PreCache(List<string> fallbackFamilyList, List<string> extraFamilyList, string localeFamily, bool useThread, bool syncCreation = true)
74 int fallbackFamilySize = fallbackFamilyList?.Count ?? 0;
75 int extraFamilySize = extraFamilyList?.Count ?? 0;
76 string[] fallbackFamilyArray = fallbackFamilySize > 0 ? fallbackFamilyList.ToArray() : null;
77 string[] extraFamilyArray = extraFamilySize > 0 ? extraFamilyList.ToArray() : null;
79 Interop.FontClient.PreCache(fallbackFamilyArray, fallbackFamilySize, extraFamilyArray, extraFamilySize, localeFamily, useThread, syncCreation);
80 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84 /// This is used to pre-load FreeType font face in order to improve the runtime performance of the application.
86 /// The fonts in the fontPathList perform FT_New_Face during pre-loading, which can provide some performace benefits.<br />
87 /// The fonts in the memoryFontPathList read the font file and cache the buffer in memory during pre-load.<br />
88 /// This enables the use of FT_New_Memory_Face during runtime and provides a performance boost.<br />
89 /// It requires memory equivalent to the size of each font file.
92 /// <param name="fontPathList">A list of font paths to be pre-loaded.</param>
93 /// <param name="memoryFontPathList">A list of memory font paths to be pre-loaded.</param>
94 /// <param name="useThread">True if the font client should create thread and perform font pre-loading, false otherwise.</param>
95 /// <param name="syncCreation">True if thread creation guarantees syncronization with the main thread, false async creation. Optional, the default value is true.</param>
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public static void FontPreLoad(List<string> fontPathList, List<string> memoryFontPathList, bool useThread, bool syncCreation = true)
99 int fontPathSize = fontPathList?.Count ?? 0;
100 int memoryFontPathSize = memoryFontPathList?.Count ?? 0;
101 string[] fontPathArray = fontPathSize > 0 ? fontPathList.ToArray() : null;
102 string[] memoryFontPathArray = memoryFontPathSize > 0 ? memoryFontPathList.ToArray() : null;
104 Interop.FontClient.FontPreLoad(fontPathArray, fontPathSize, memoryFontPathArray, memoryFontPathSize, useThread, syncCreation);
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109 /// Called when the user changes the system defaults.
111 /// <since_tizen> 5 </since_tizen>
112 public void ResetSystemDefaults()
114 Interop.FontClient.ResetSystemDefaults(SwigCPtr);
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119 /// Retrieves the font point size of a given font id.
121 /// <param name="id">The font identifier.</param>
122 /// <returns>The point size in 26.6 fractional points.</returns>
123 /// <since_tizen> 5 </since_tizen>
124 public uint GetPointSize(uint id)
126 uint ret = Interop.FontClient.GetPointSize(SwigCPtr, id);
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132 /// Whether the given character is supported by the font.
134 /// <param name="fontId">The id of the font.</param>
135 /// <param name="character">The character in a font.</param>
136 /// <returns>True if the character is supported by the font.</returns>
137 /// <since_tizen> 5 </since_tizen>
138 public bool IsCharacterSupportedByFont(uint fontId, uint character)
140 bool ret = Interop.FontClient.IsCharacterSupportedByFont(SwigCPtr, fontId, character);
141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146 /// Finds the default font for displaying a UTF-32 character.
148 /// <param name="charcode">The character for which a font is needed.</param>
149 /// <param name="requestedPointSize">The point size in 26.6 fractional points. The default point size is 12*64.</param>
150 /// <param name="preferColor">True if a color font is preferred.</param>
151 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
152 /// <since_tizen> 5 </since_tizen>
153 public uint FindDefaultFont(uint charcode, uint requestedPointSize, bool preferColor)
155 uint ret = Interop.FontClient.FindDefaultFont(SwigCPtr, charcode, requestedPointSize, preferColor);
156 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161 /// Find the default font for displaying a UTF-32 character.
163 /// <param name="charcode">The character for which a font is needed.</param>
164 /// <param name="requestedPointSize">The point size in 26.6 fractional points. The default point size is 12*64.</param>
165 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
166 /// <since_tizen> 5 </since_tizen>
167 public uint FindDefaultFont(uint charcode, uint requestedPointSize)
169 uint ret = Interop.FontClient.FindDefaultFont(SwigCPtr, charcode, requestedPointSize);
170 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175 /// Find the default font for displaying a UTF-32 character.
177 /// <param name="charcode">The character for which a font is needed.</param>
178 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
179 /// <since_tizen> 5 </since_tizen>
180 public uint FindDefaultFont(uint charcode)
182 uint ret = Interop.FontClient.FindDefaultFont(SwigCPtr, charcode);
183 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188 /// Retrieve the unique identifier for a font.
190 /// <param name="path">The path to a font file.</param>
191 /// <param name="requestedPointSize">The point size in 26.6 fractional points. The default point size is 12*64.</param>
192 /// <param name="faceIndex">The index of the font face.</param>
193 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
194 /// <since_tizen> 5 </since_tizen>
195 public uint GetFontId(string path, uint requestedPointSize, uint faceIndex)
197 uint ret = Interop.FontClient.GetFontId(SwigCPtr, path, requestedPointSize, faceIndex);
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 /// Retrieve the unique identifier for a font.
205 /// <param name="path">The path to a font file.</param>
206 /// <param name="requestedPointSize">The point size in 26.6 fractional points. The default point size is 12*64.</param>
207 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
208 /// <since_tizen> 5 </since_tizen>
209 public uint GetFontId(string path, uint requestedPointSize)
211 uint ret = Interop.FontClient.GetFontId(SwigCPtr, path, requestedPointSize);
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217 /// Retrieve the unique identifier for a font.
219 /// <param name="path">The path to a font file.</param>
220 /// <returns>A valid font identifier. Zero if the font does not exist.</returns>
221 /// <since_tizen> 5 </since_tizen>
222 public uint GetFontId(string path)
224 uint ret = Interop.FontClient.GetFontId(SwigCPtr, path);
225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
230 /// Check to see if a font is scalable.
232 /// <param name="path">The path where the font file is located.</param>
233 /// <returns>True if scalable.</returns>
234 /// <since_tizen> 5 </since_tizen>
235 public bool IsScalable(string path)
237 bool ret = Interop.FontClient.IsScalable(SwigCPtr, path);
238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
243 /// Adds custom fonts directory.
245 /// <param name="path">Path to the fonts directory.</param>
246 /// <returns>True if the fonts can be added.</returns>
247 /// <since_tizen> 5 </since_tizen>
248 public bool AddCustomFontDirectory(string path)
250 bool ret = Interop.FontClient.AddCustomFontDirectory(SwigCPtr, path);
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256 /// Retrieve the list of font info supported by the system.
258 /// <returns>The list of FontInfo</returns>
260 /// <see cref="Tizen.NUI.Text.FontInfo"/>
263 /// The following example demonstrates how to use the GetSystemFonts method.
265 /// var fontList = FontClient.Instance.GetSystemFonts();
266 /// foreach(Tizen.NUI.Text.FontInfo fontInfo in fontList)
268 /// string fontFamily = fontInfo.Family;
269 /// string fontPath = fontInfo.Path;
270 /// FontWidthType fontWidth = fontInfo.Style.Width;
271 /// FontWeightType fontWeight = fontInfo.Style.Weight;
272 /// FontSlantType fontSlant = fontInfo.Style.Slant;
276 [EditorBrowsable(EditorBrowsableState.Never)]
277 public List<FontInfo> GetSystemFonts()
279 using PropertyArray fontArray = new PropertyArray(Interop.FontClient.GetSystemFonts(SwigCPtr), true);
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
282 List<FontInfo> fontInfoList;
283 fontInfoList = TextUtils.GetFontInfoList(fontArray);
287 internal static FontClient Get()
289 global::System.IntPtr cPtr = Interop.FontClient.Get();
291 FontClient ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as FontClient;
294 object dummyObect = new object();
296 global::System.Runtime.InteropServices.HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(dummyObect, cPtr);
297 Interop.BaseHandle.DeleteBaseHandle(CPtr);
298 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
302 ret = new FontClient(cPtr, true);
305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
309 internal FontClient Assign(FontClient handle)
311 FontClient ret = new FontClient(Interop.FontClient.Assign(SwigCPtr, FontClient.getCPtr(handle)), false);
312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316 internal void SetDpi(uint horizontalDpi, uint verticalDpi)
318 Interop.FontClient.SetDpi(SwigCPtr, horizontalDpi, verticalDpi);
319 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 internal void GetDpi(SWIGTYPE_p_unsigned_int horizontalDpi, SWIGTYPE_p_unsigned_int verticalDpi)
324 Interop.FontClient.GetDpi(SwigCPtr, SWIGTYPE_p_unsigned_int.getCPtr(horizontalDpi), SWIGTYPE_p_unsigned_int.getCPtr(verticalDpi));
325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 internal int GetDefaultFontSize()
330 int ret = Interop.FontClient.GetDefaultFontSize(SwigCPtr);
331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
335 internal void GetDefaultFonts(SWIGTYPE_p_std__vectorT_Dali__TextAbstraction__FontDescription_t defaultFonts)
337 Interop.FontClient.GetDefaultFonts(SwigCPtr, SWIGTYPE_p_std__vectorT_Dali__TextAbstraction__FontDescription_t.getCPtr(defaultFonts));
338 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341 internal void GetDefaultPlatformFontDescription(FontDescription fontDescription)
343 Interop.FontClient.GetDefaultPlatformFontDescription(SwigCPtr, FontDescription.getCPtr(fontDescription));
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
347 internal void GetDescription(uint id, FontDescription fontDescription)
349 Interop.FontClient.GetDescription(SwigCPtr, id, FontDescription.getCPtr(fontDescription));
350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 internal uint FindFallbackFont(uint charcode, FontDescription preferredFontDescription, uint requestedPointSize, bool preferColor)
355 uint ret = Interop.FontClient.FindFallbackFont(SwigCPtr, charcode, FontDescription.getCPtr(preferredFontDescription), requestedPointSize, preferColor);
356 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 internal uint FindFallbackFont(uint charcode, FontDescription preferredFontDescription, uint requestedPointSize)
362 uint ret = Interop.FontClient.FindFallbackFont(SwigCPtr, charcode, FontDescription.getCPtr(preferredFontDescription), requestedPointSize);
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
367 internal uint FindFallbackFont(uint charcode, FontDescription preferredFontDescription)
369 uint ret = Interop.FontClient.FindFallbackFont(SwigCPtr, charcode, FontDescription.getCPtr(preferredFontDescription));
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 internal uint GetFontId(FontDescription preferredFontDescription, uint requestedPointSize, uint faceIndex)
376 uint ret = Interop.FontClient.GetFontId(SwigCPtr, FontDescription.getCPtr(preferredFontDescription), requestedPointSize, faceIndex);
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381 internal uint GetFontId(FontDescription preferredFontDescription, uint requestedPointSize)
383 uint ret = Interop.FontClient.GetFontId(SwigCPtr, FontDescription.getCPtr(preferredFontDescription), requestedPointSize);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 internal uint GetFontId(FontDescription preferredFontDescription)
390 uint ret = Interop.FontClient.GetFontId(SwigCPtr, FontDescription.getCPtr(preferredFontDescription));
391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
395 internal bool IsScalable(FontDescription fontDescription)
397 bool ret = Interop.FontClient.IsScalable(SwigCPtr, FontDescription.getCPtr(fontDescription));
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 internal void GetFixedSizes(string path, SWIGTYPE_p_Dali__VectorT_uint32_t_TypeTraitsT_uint32_t_t__IS_TRIVIAL_TYPE__true_t sizes)
404 Interop.FontClient.GetFixedSizes(SwigCPtr, path, SWIGTYPE_p_Dali__VectorT_uint32_t_TypeTraitsT_uint32_t_t__IS_TRIVIAL_TYPE__true_t.getCPtr(sizes));
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408 internal void GetFixedSizes(FontDescription fontDescription, SWIGTYPE_p_Dali__VectorT_uint32_t_TypeTraitsT_uint32_t_t__IS_TRIVIAL_TYPE__true_t sizes)
410 Interop.FontClient.GetFixedSizes(SwigCPtr, FontDescription.getCPtr(fontDescription), SWIGTYPE_p_Dali__VectorT_uint32_t_TypeTraitsT_uint32_t_t__IS_TRIVIAL_TYPE__true_t.getCPtr(sizes));
411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 internal void GetFontMetrics(uint fontId, FontMetrics metrics)
416 Interop.FontClient.GetFontMetrics(SwigCPtr, fontId, FontMetrics.getCPtr(metrics));
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 internal uint GetGlyphIndex(uint fontId, uint charcode)
422 uint ret = Interop.FontClient.GetGlyphIndex(SwigCPtr, fontId, charcode);
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427 internal bool GetGlyphMetrics(GlyphInfo array, uint size, GlyphType type, bool horizontal)
429 bool ret = Interop.FontClient.GetGlyphMetrics(SwigCPtr, GlyphInfo.getCPtr(array), size, (int)type, horizontal);
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 internal bool GetGlyphMetrics(GlyphInfo array, uint size, GlyphType type)
436 bool ret = Interop.FontClient.GetGlyphMetrics(SwigCPtr, GlyphInfo.getCPtr(array), size, (int)type);
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 internal void CreateBitmap(uint fontId, uint glyphIndex, bool softwareItalic, bool softwareBold, FontClient.GlyphBufferData data, int outlineWidth)
443 Interop.FontClient.CreateBitmap(SwigCPtr, fontId, glyphIndex, softwareItalic, softwareBold, FontClient.GlyphBufferData.getCPtr(data), outlineWidth);
444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 internal PixelData CreateBitmap(uint fontId, uint glyphIndex, int outlineWidth)
449 PixelData ret = new PixelData(Interop.FontClient.CreateBitmap(SwigCPtr, fontId, glyphIndex, outlineWidth), true);
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454 internal void CreateVectorBlob(uint fontId, uint glyphIndex, SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob blob, SWIGTYPE_p_unsigned_int blobLength, SWIGTYPE_p_unsigned_int nominalWidth, SWIGTYPE_p_unsigned_int nominalHeight)
456 Interop.FontClient.CreateVectorBlob(SwigCPtr, fontId, glyphIndex, SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob.getCPtr(blob), SWIGTYPE_p_unsigned_int.getCPtr(blobLength), SWIGTYPE_p_unsigned_int.getCPtr(nominalWidth), SWIGTYPE_p_unsigned_int.getCPtr(nominalHeight));
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460 internal GlyphInfo GetEllipsisGlyph(uint requestedPointSize)
462 GlyphInfo ret = new GlyphInfo(Interop.FontClient.GetEllipsisGlyph(SwigCPtr, requestedPointSize), false);
463 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467 internal bool IsColorGlyph(uint fontId, uint glyphIndex)
469 bool ret = Interop.FontClient.IsColorGlyph(SwigCPtr, fontId, glyphIndex);
470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474 internal class GlyphBufferData : Disposable
476 public GlyphBufferData() : this(Interop.FontClient.NewFontClientGlyphBufferData(), true)
478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
481 internal GlyphBufferData(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
485 /*public byte[] Buffer
489 Interop.FontClient.GlyphBufferDataBufferSet(swigCPtr, value);
490 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 global::System.IntPtr cPtr = Interop.FontClient.GlyphBufferDataBufferGet(swigCPtr);
495 SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 Interop.FontClient.GlyphBufferDataWidthSet(SwigCPtr, value);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510 uint ret = Interop.FontClient.GlyphBufferDataWidthGet(SwigCPtr);
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 Interop.FontClient.GlyphBufferDataHeightSet(SwigCPtr, value);
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 uint ret = Interop.FontClient.GlyphBufferDataHeightGet(SwigCPtr);
526 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 public PixelFormat Format
535 Interop.FontClient.GlyphBufferDataFormatSet(SwigCPtr, (int)value);
536 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
540 PixelFormat ret = (PixelFormat)Interop.FontClient.GlyphBufferDataFormatGet(SwigCPtr);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546 /// This will not be public opened.
547 [EditorBrowsable(EditorBrowsableState.Never)]
548 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
550 Interop.FontClient.DeleteFontClientGlyphBufferData(swigCPtr);